Ignore:
Timestamp:
Dec 12, 2008, 1:31:33 PM (16 years ago)
Author:
[email protected]
Message:

2008-12-12 Sam Weinig <[email protected]>

Reviewed by Geoffrey Garen.

Change exception information accessors to take offsets into the bytecode
instruction buffer instead of pointers so that they can work even even
if the bytecode buffer is purged.

  • bytecode/CodeBlock.cpp: (JSC::instructionOffsetForNth): (JSC::CodeBlock::handlerForBytecodeOffset): (JSC::CodeBlock::lineNumberForBytecodeOffset): (JSC::CodeBlock::expressionRangeForBytecodeOffset):
  • bytecode/CodeBlock.h:
  • bytecode/SamplingTool.cpp: (JSC::SamplingTool::dump):
  • interpreter/Interpreter.cpp: (JSC::Interpreter::throwException): (JSC::Interpreter::privateExecute): (JSC::Interpreter::retrieveLastCaller):
  • jit/JIT.cpp: (JSC::JIT::privateCompileMainPass):
  • runtime/ExceptionHelpers.cpp: (JSC::createUndefinedVariableError): (JSC::createInvalidParamError): (JSC::createNotAConstructorError): (JSC::createNotAFunctionError): (JSC::createNotAnObjectError):
File:
1 edited

Legend:

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

    r39229 r39252  
    225225        }
    226226
    227         int expressionRangeForVPC(const Instruction*, int& divot, int& startOffset, int& endOffset);
    228         int lineNumberForVPC(const Instruction* vPC);
    229         HandlerInfo* handlerForVPC(const Instruction* vPC);
     227        HandlerInfo* handlerForBytecodeOffset(unsigned bytecodeOffset);
     228        int lineNumberForBytecodeOffset(unsigned bytecodeOffset);
     229        int expressionRangeForBytecodeOffset(unsigned bytecodeOffset, int& divot, int& startOffset, int& endOffset);
    230230
    231231#if ENABLE(JIT)
Note: See TracChangeset for help on using the changeset viewer.