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


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.h

    r36972 r36973  
    7575        RegisterFile& registerFile() { return m_registerFile; }
    7676       
    77         static Opcode getOpcode(OpcodeID id);
     77        Opcode getOpcode(OpcodeID id)
     78        {
     79            #if HAVE(COMPUTED_GOTO)
     80                return m_opcodeTable[id];
     81            #else
     82                return id;
     83            #endif
     84        }
    7885
    7986        OpcodeID getOpcodeID(Opcode opcode)
     
    290297
    291298#if HAVE(COMPUTED_GOTO)
    292         static Opcode s_opcodeTable[numOpcodeIDs]; // Maps OpcodeID => Opcode for compiling
     299        Opcode m_opcodeTable[numOpcodeIDs]; // Maps OpcodeID => Opcode for compiling
    293300        HashMap<Opcode, OpcodeID> m_opcodeIDTable; // Maps Opcode => OpcodeID for decompiling
    294301#endif
Note: See TracChangeset for help on using the changeset viewer.