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/bytecompiler/BytecodeGenerator.cpp

    r58902 r58907  
    16321632void BytecodeGenerator::emitDebugHook(DebugHookID debugHookID, int firstLine, int lastLine)
    16331633{
     1634#if ENABLE(DEBUG_WITH_BREAKPOINT)
     1635    if (debugHookID != DidReachBreakpoint)
     1636        return;
     1637#else
    16341638    if (!m_shouldEmitDebugHooks)
    16351639        return;
     1640#endif
    16361641    emitOpcode(op_debug);
    16371642    instructions().append(debugHookID);
Note: See TracChangeset for help on using the changeset viewer.