From bdf1ff47ee983ef4b0943c5fc89d69aa0c372010 Mon Sep 17 00:00:00 2001 From: Landry Breuil Date: Tue, 15 Apr 2014 13:46:07 +0200 Subject: [PATCH] Bug 990154: move the enum CodeKind definition outside #if ENABLE_ASSEMBLER to unbreak non-asm platforms r=jandem --- js/src/assembler/jit/ExecutableAllocator.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/js/src/assembler/jit/ExecutableAllocator.h b/js/src/assembler/jit/ExecutableAllocator.h index 0abd3dbff7d..4616e563b02 100644 --- a/js/src/assembler/jit/ExecutableAllocator.h +++ b/js/src/assembler/jit/ExecutableAllocator.h @@ -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 {