From 715be629d51174233403237bfc563cf150087dc8 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Tue, 25 Sep 2012 13:02:02 +0200 Subject: Imported WebKit commit ce614b0924ba46f78d4435e28ff93c8525fbb7cc (http://svn.webkit.org/repository/webkit/trunk@129485) New snapshot that includes MingW build fixes --- Source/JavaScriptCore/interpreter/Interpreter.h | 36 +++---------------------- 1 file changed, 4 insertions(+), 32 deletions(-) (limited to 'Source/JavaScriptCore/interpreter/Interpreter.h') diff --git a/Source/JavaScriptCore/interpreter/Interpreter.h b/Source/JavaScriptCore/interpreter/Interpreter.h index 464056bc1..f27ae8206 100644 --- a/Source/JavaScriptCore/interpreter/Interpreter.h +++ b/Source/JavaScriptCore/interpreter/Interpreter.h @@ -204,27 +204,14 @@ namespace JSC { OpcodeID getOpcodeID(Opcode opcode) { ASSERT(m_initialized); -#if ENABLE(COMPUTED_GOTO_OPCODES) -#if ENABLE(LLINT) - ASSERT(isOpcode(opcode)); - return m_opcodeIDTable.get(opcode); -#elif ENABLE(COMPUTED_GOTO_CLASSIC_INTERPRETER) +#if ENABLE(COMPUTED_GOTO_OPCODES) && ENABLE(LLINT) ASSERT(isOpcode(opcode)); - if (!m_classicEnabled) - return static_cast(bitwise_cast(opcode)); - return m_opcodeIDTable.get(opcode); -#endif // ENABLE(COMPUTED_GOTO_CLASSIC_INTERPRETER) -#else // !ENABLE(COMPUTED_GOTO_OPCODES) +#else return opcode; -#endif // !ENABLE(COMPUTED_GOTO_OPCODES) +#endif } - bool classicEnabled() - { - return m_classicEnabled; - } - bool isOpcode(Opcode); JSValue execute(ProgramExecutable*, CallFrame*, JSObject* thisObj); @@ -260,15 +247,6 @@ namespace JSC { void endRepeatCall(CallFrameClosure&); JSValue execute(CallFrameClosure&); -#if ENABLE(CLASSIC_INTERPRETER) - NEVER_INLINE JSScope* createNameScope(CallFrame*, const Instruction* vPC); - - void tryCacheGetByID(CallFrame*, CodeBlock*, Instruction*, JSValue baseValue, const Identifier& propertyName, const PropertySlot&); - void uncacheGetByID(CodeBlock*, Instruction* vPC); - void tryCachePutByID(CallFrame*, CodeBlock*, Instruction*, JSValue baseValue, const PutPropertySlot&); - void uncachePutByID(CodeBlock*, Instruction* vPC); -#endif // ENABLE(CLASSIC_INTERPRETER) - NEVER_INLINE bool unwindCallFrame(CallFrame*&, JSValue, unsigned& bytecodeOffset, CodeBlock*&); static ALWAYS_INLINE CallFrame* slideRegisterWindowForCall(CodeBlock*, RegisterFile*, CallFrame*, size_t registerOffset, int argc); @@ -291,20 +269,14 @@ namespace JSC { RegisterFile m_registerFile; -#if ENABLE(COMPUTED_GOTO_OPCODES) -#if ENABLE(LLINT) +#if ENABLE(COMPUTED_GOTO_OPCODES) && ENABLE(LLINT) Opcode* m_opcodeTable; // Maps OpcodeID => Opcode for compiling HashMap m_opcodeIDTable; // Maps Opcode => OpcodeID for decompiling -#elif ENABLE(COMPUTED_GOTO_CLASSIC_INTERPRETER) - Opcode m_opcodeTable[numOpcodeIDs]; // Maps OpcodeID => Opcode for compiling - HashMap m_opcodeIDTable; // Maps Opcode => OpcodeID for decompiling #endif -#endif // ENABLE(COMPUTED_GOTO_OPCODES) #if !ASSERT_DISABLED bool m_initialized; #endif - bool m_classicEnabled; }; // This value must not be an object that would require this conversion (WebCore's global object). -- cgit v1.2.1