Ignore:
Timestamp:
May 6, 2010, 1:47:22 PM (15 years ago)
Author:
[email protected]
Message:

Add compile switch to make debugger keyword plant breakpoint instructions.

Reviewed by Oliver Hunt.

  • bytecompiler/BytecodeGenerator.cpp:

(JSC::BytecodeGenerator::emitDebugHook):

  • jit/JITOpcodes.cpp:

(JSC::JIT::emit_op_debug):

  • wtf/Platform.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/jit/JITOpcodes.cpp

    r58469 r58907  
    14311431void JIT::emit_op_debug(Instruction* currentInstruction)
    14321432{
     1433#if ENABLE(DEBUG_WITH_BREAKPOINT)
     1434    UNUSED_PARAM(currentInstruction);
     1435    breakpoint();
     1436#else
    14331437    JITStubCall stubCall(this, cti_op_debug);
    14341438    stubCall.addArgument(Imm32(currentInstruction[1].u.operand));
     
    14361440    stubCall.addArgument(Imm32(currentInstruction[3].u.operand));
    14371441    stubCall.call();
     1442#endif
    14381443}
    14391444
     
    27222727void JIT::emit_op_debug(Instruction* currentInstruction)
    27232728{
     2729#if ENABLE(DEBUG_WITH_BREAKPOINT)
     2730    UNUSED_PARAM(currentInstruction);
     2731    breakpoint();
     2732#else
    27242733    JITStubCall stubCall(this, cti_op_debug);
    27252734    stubCall.addArgument(Imm32(currentInstruction[1].u.operand));
     
    27272736    stubCall.addArgument(Imm32(currentInstruction[3].u.operand));
    27282737    stubCall.call();
     2738#endif
    27292739}
    27302740
Note: See TracChangeset for help on using the changeset viewer.