Changeset 39141 in webkit for trunk/JavaScriptCore/interpreter


Ignore:
Timestamp:
Dec 9, 2008, 11:19:04 AM (16 years ago)
Author:
[email protected]
Message:

2008-12-08 Judit Jasz <[email protected]>

Reviewed and tweaked by Cameron Zwarich.

Bug 22352: Annotate opcodes with their length
<https://bugs.webkit.org/show_bug.cgi?id=22352>

  • bytecode/Opcode.cpp:
  • bytecode/Opcode.h:
  • interpreter/Interpreter.cpp: (JSC::Interpreter::privateExecute):
  • jit/JIT.cpp: (JSC::JIT::privateCompileMainPass): (JSC::JIT::privateCompileSlowCases):
File:
1 edited

Legend:

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

    r39123 r39141  
    14621462    if (flag == InitializeAndReturn) {
    14631463        #if HAVE(COMPUTED_GOTO)
    1464             #define ADD_BYTECODE(id) m_opcodeTable[id] = &&id;
     1464            #define ADD_BYTECODE(id, length) m_opcodeTable[id] = &&id;
    14651465                FOR_EACH_OPCODE_ID(ADD_BYTECODE);
    14661466            #undef ADD_BYTECODE
    14671467
    1468             #define ADD_OPCODE_ID(id) m_opcodeIDTable.add(&&id, id);
     1468            #define ADD_OPCODE_ID(id, length) m_opcodeIDTable.add(&&id, id);
    14691469                FOR_EACH_OPCODE_ID(ADD_OPCODE_ID);
    14701470            #undef ADD_OPCODE_ID
Note: See TracChangeset for help on using the changeset viewer.