Bug 1218652 - IonMonkey: MIPS: Add mips-shared in check macroassembler style. r=arai

---
 config/check_macroassembler_style.py | 2 +-
 js/src/jit/MacroAssembler.h          | 5 ++++-
 2 files changed, 5 insertions(+), 2 deletions(-)
This commit is contained in:
Heiher 2015-10-28 07:35:06 +08:00
parent f0c0411180
commit 07dd40e3c6
2 changed files with 5 additions and 2 deletions

View File

@ -31,7 +31,7 @@ from check_utils import get_all_toplevel_filenames
architecture_independent = set([ 'generic' ])
all_architecture_names = set([ 'x86', 'x64', 'arm', 'arm64', 'mips32' ])
all_shared_architecture_names = set([ 'x86_shared', 'arm', 'arm64', 'mips32' ])
all_shared_architecture_names = set([ 'x86_shared', 'mips_shared', 'arm', 'arm64' ])
reBeforeArg = "(?<=[(,\s])"
reArgType = "(?P<type>[\w\s:*&]+)"

View File

@ -63,7 +63,7 @@
// PER_SHARED_ARCH.
# define ALL_ARCH mips32, arm, arm64, x86, x64
# define ALL_SHARED_ARCH mips32, arm, arm64, x86_shared
# define ALL_SHARED_ARCH arm, arm64, x86_shared, mips_shared
// * How this macro works:
//
@ -107,6 +107,7 @@
# define DEFINED_ON_arm
# define DEFINED_ON_arm64
# define DEFINED_ON_mips32
# define DEFINED_ON_mips_shared
# define DEFINED_ON_none
// Specialize for each architecture.
@ -129,6 +130,8 @@
#elif defined(JS_CODEGEN_MIPS32)
# undef DEFINED_ON_mips32
# define DEFINED_ON_mips32 define
# undef DEFINED_ON_mips_shared
# define DEFINED_ON_mips_shared define
#elif defined(JS_CODEGEN_NONE)
# undef DEFINED_ON_none
# define DEFINED_ON_none crash