Changeset 59777 in webkit for trunk/JavaScriptCore/bytecode


Ignore:
Timestamp:
May 19, 2010, 11:28:54 AM (15 years ago)
Author:
[email protected]
Message:

Standardized naming: "bytecode offset" wins; "bytecode index" loses.

Reviewed by Gavin Barraclough.

Also renamed getBytecodeOffset to bytecodeOffset, to match the WebKit
naming style.

  • bytecode/CodeBlock.h:

(JSC::CallReturnOffsetToBytecodeOffset::CallReturnOffsetToBytecodeOffset):
(JSC::getCallReturnOffset):
(JSC::CodeBlock::bytecodeOffset):
(JSC::CodeBlock::callReturnIndexVector):

  • interpreter/Interpreter.cpp:

(JSC::bytecodeOffsetForPC):

  • jit/JIT.cpp:

(JSC::JIT::JIT):
(JSC::JIT::privateCompileMainPass):
(JSC::JIT::privateCompileLinkPass):
(JSC::JIT::privateCompileSlowCases):
(JSC::JIT::privateCompile):

  • jit/JIT.h:

(JSC::CallRecord::CallRecord):
(JSC::JumpTable::JumpTable):
(JSC::SwitchRecord::SwitchRecord):

  • jit/JITCall.cpp:

(JSC::JIT::compileOpCallVarargsSlowCase):
(JSC::JIT::compileOpCall):

  • jit/JITInlineMethods.h:

(JSC::JIT::emitNakedCall):
(JSC::JIT::addSlowCase):
(JSC::JIT::addJump):
(JSC::JIT::emitJumpSlowToHot):
(JSC::JIT::isLabeled):
(JSC::JIT::map):
(JSC::JIT::unmap):
(JSC::JIT::isMapped):
(JSC::JIT::getMappedPayload):
(JSC::JIT::getMappedTag):
(JSC::JIT::emitGetVirtualRegister):

  • jit/JITOpcodes.cpp:

(JSC::JIT::emit_op_switch_imm):
(JSC::JIT::emit_op_switch_char):
(JSC::JIT::emit_op_switch_string):
(JSC::JIT::emit_op_new_error):

  • jit/JITOpcodes32_64.cpp:

(JSC::JIT::emit_op_mov):
(JSC::JIT::emit_op_get_global_var):
(JSC::JIT::emit_op_put_global_var):
(JSC::JIT::emit_op_get_scoped_var):
(JSC::JIT::emit_op_put_scoped_var):
(JSC::JIT::emit_op_to_primitive):
(JSC::JIT::emit_op_resolve_global):
(JSC::JIT::emit_op_to_jsnumber):
(JSC::JIT::emit_op_catch):
(JSC::JIT::emit_op_switch_imm):
(JSC::JIT::emit_op_switch_char):
(JSC::JIT::emit_op_switch_string):
(JSC::JIT::emit_op_new_error):
(JSC::JIT::emit_op_convert_this):

  • jit/JITPropertyAccess.cpp:

(JSC::JIT::emit_op_method_check):
(JSC::JIT::emitSlow_op_method_check):

  • jit/JITPropertyAccess32_64.cpp:

(JSC::JIT::emit_op_method_check):
(JSC::JIT::emitSlow_op_method_check):
(JSC::JIT::emit_op_get_by_val):
(JSC::JIT::emit_op_get_by_id):
(JSC::JIT::emit_op_get_by_pname):

  • jit/JITStubCall.h:

(JSC::JITStubCall::call):

  • jit/JITStubs.cpp:

(JSC::DEFINE_STUB_FUNCTION):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/bytecode/CodeBlock.h

    r59742 r59777  
    110110        }
    111111
    112         unsigned bytecodeIndex;
     112        unsigned bytecodeOffset;
    113113        CodeLocationNearCall callReturnLocation;
    114114        CodeLocationDataLabelPtr hotPathBegin;
     
    192192    // the bytecode index of the corresponding bytecode operation.
    193193    // This is then used to look up the corresponding handler.
    194     struct CallReturnOffsetToBytecodeIndex {
    195         CallReturnOffsetToBytecodeIndex(unsigned callReturnOffset, unsigned bytecodeIndex)
     194    struct CallReturnOffsetToBytecodeOffset {
     195        CallReturnOffsetToBytecodeOffset(unsigned callReturnOffset, unsigned bytecodeOffset)
    196196            : callReturnOffset(callReturnOffset)
    197             , bytecodeIndex(bytecodeIndex)
     197            , bytecodeOffset(bytecodeOffset)
    198198        {
    199199        }
    200200
    201201        unsigned callReturnOffset;
    202         unsigned bytecodeIndex;
     202        unsigned bytecodeOffset;
    203203    };
    204204
     
    220220    }
    221221
    222     inline unsigned getCallReturnOffset(CallReturnOffsetToBytecodeIndex* pc)
     222    inline unsigned getCallReturnOffset(CallReturnOffsetToBytecodeOffset* pc)
    223223    {
    224224        return pc->callReturnOffset;
     
    268268
    269269#if ENABLE(JIT)
    270         Vector<CallReturnOffsetToBytecodeIndex> m_callReturnIndexVector;
     270        Vector<CallReturnOffsetToBytecodeOffset> m_callReturnIndexVector;
    271271#endif
    272272    };
     
    350350        }
    351351
    352         unsigned getBytecodeIndex(CallFrame* callFrame, ReturnAddressPtr returnAddress)
     352        unsigned bytecodeOffset(CallFrame* callFrame, ReturnAddressPtr returnAddress)
    353353        {
    354354            reparseForExceptionInfoIfNecessary(callFrame);
    355             return binaryChop<CallReturnOffsetToBytecodeIndex, unsigned, getCallReturnOffset>(callReturnIndexVector().begin(), callReturnIndexVector().size(), getJITCode().offsetOf(returnAddress.value()))->bytecodeIndex;
     355            return binaryChop<CallReturnOffsetToBytecodeOffset, unsigned, getCallReturnOffset>(callReturnIndexVector().begin(), callReturnIndexVector().size(), getJITCode().offsetOf(returnAddress.value()))->bytecodeOffset;
    356356        }
    357357       
     
    451451
    452452#if ENABLE(JIT)
    453         Vector<CallReturnOffsetToBytecodeIndex>& callReturnIndexVector() { ASSERT(m_exceptionInfo); return m_exceptionInfo->m_callReturnIndexVector; }
     453        Vector<CallReturnOffsetToBytecodeOffset>& callReturnIndexVector() { ASSERT(m_exceptionInfo); return m_exceptionInfo->m_callReturnIndexVector; }
    454454#endif
    455455
Note: See TracChangeset for help on using the changeset viewer.