Bug 990154: move the enum CodeKind definition outside #if ENABLE_ASSEMBLER to unbreak non-asm platforms r=jandem

This commit is contained in:
Landry Breuil 2014-04-15 13:46:07 +02:00
parent 1b5b838a7d
commit bdf1ff47ee

View File

@ -73,6 +73,10 @@ extern "C" void sync_instruction_memory(caddr_t v, u_int len);
#define INITIAL_PROTECTION_FLAGS (PROT_READ | PROT_WRITE | PROT_EXEC)
#endif
namespace JSC {
enum CodeKind { ION_CODE = 0, BASELINE_CODE, REGEXP_CODE, OTHER_CODE };
}
#if ENABLE_ASSEMBLER
//#define DEBUG_STRESS_JSC_ALLOCATOR
@ -85,8 +89,6 @@ namespace JSC {
class ExecutableAllocator;
enum CodeKind { ION_CODE = 0, BASELINE_CODE, REGEXP_CODE, OTHER_CODE };
// These are reference-counted. A new one starts with a count of 1.
class ExecutablePool {