Ignore:
Timestamp:
Jul 10, 2010, 6:14:47 PM (15 years ago)
Author:
[email protected]
Message:

2010-07-10 Oliver Hunt <[email protected]>

Reviewed by Maciej Stachowiak.

HAVE_COMPUTED_GOTO is dependent on the interpreter being enabled
https://bugs.webkit.org/show_bug.cgi?id=42039

Separate the existence of computed goto support in the compiler
from whether or not we are using the interpreter. All the current
HAVE(COMPUTED_GOTO) guards are for the interpreter, but I'd like
the option of using it elsewhere. The interpreter now uses
ENABLE(COMPUTED_GOTO_INTERPRETER)

  • bytecode/Instruction.h: (JSC::Instruction::Instruction):
  • bytecode/Opcode.h:
  • interpreter/Interpreter.cpp: (JSC::Interpreter::Interpreter): (JSC::Interpreter::isOpcode): (JSC::Interpreter::privateExecute):
  • interpreter/Interpreter.h: (JSC::Interpreter::getOpcode): (JSC::Interpreter::getOpcodeID):
  • wtf/Platform.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/interpreter/Interpreter.h

    r62612 r63056  
    7676        Opcode getOpcode(OpcodeID id)
    7777        {
    78             #if HAVE(COMPUTED_GOTO)
     78            #if ENABLE(COMPUTED_GOTO_INTERPRETER)
    7979                return m_opcodeTable[id];
    8080            #else
     
    8585        OpcodeID getOpcodeID(Opcode opcode)
    8686        {
    87             #if HAVE(COMPUTED_GOTO)
     87            #if ENABLE(COMPUTED_GOTO_INTERPRETER)
    8888                ASSERT(isOpcode(opcode));
    8989                return m_opcodeIDTable.get(opcode);
     
    160160        RegisterFile m_registerFile;
    161161       
    162 #if HAVE(COMPUTED_GOTO)
     162#if ENABLE(COMPUTED_GOTO_INTERPRETER)
    163163        Opcode m_opcodeTable[numOpcodeIDs]; // Maps OpcodeID => Opcode for compiling
    164164        HashMap<Opcode, OpcodeID> m_opcodeIDTable; // Maps Opcode => OpcodeID for decompiling
Note: See TracChangeset for help on using the changeset viewer.