Changeset 36973 in webkit for trunk/JavaScriptCore/VM/Machine.cpp


Ignore:
Timestamp:
Sep 26, 2008, 3:43:16 PM (17 years ago)
Author:
[email protected]
Message:

2008-09-26 Geoffrey Garen <[email protected]>

Reviewed by Darin Adler.


Reverted the part of r36614 that used static data because static data
is not thread-safe.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/VM/Machine.cpp

    r36972 r36973  
    505505    exceptionValue = createUndefinedVariableError(exec, ident, vPC, codeBlock);
    506506    return false;
    507 }
    508 
    509 #if HAVE(COMPUTED_GOTO)
    510 Opcode Machine::s_opcodeTable[numOpcodeIDs];
    511 #endif
    512 
    513 Opcode Machine::getOpcode(OpcodeID id)
    514 {
    515     #if HAVE(COMPUTED_GOTO)
    516         return s_opcodeTable[id];
    517     #else
    518         return id;
    519     #endif
    520507}
    521508
     
    14291416    if (flag == InitializeAndReturn) {
    14301417        #if HAVE(COMPUTED_GOTO)
    1431             #define ADD_OPCODE(id) s_opcodeTable[id] = &&id;
     1418            #define ADD_OPCODE(id) m_opcodeTable[id] = &&id;
    14321419                FOR_EACH_OPCODE_ID(ADD_OPCODE);
    14331420            #undef ADD_OPCODE
Note: See TracChangeset for help on using the changeset viewer.