Changeset 34351 in webkit for trunk/JavaScriptCore/kjs/nodes.h


Ignore:
Timestamp:
Jun 3, 2008, 3:48:52 PM (17 years ago)
Author:
[email protected]
Message:

Bug 12983: Web Inspector break on the debugger keyword
<https://bugs.webkit.org/show_bug.cgi?id=12983>

Reviewed by Tim

Added a DebuggerStatementNode to handle codegen, and added a new
DidReachBreakPoint debug event (which will hopefully be useful
if we ever move breakpoint management into JSC proper). Also
added didReachBreakpoint to Debugger to allow us to actually respond
to this event.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/nodes.h

    r34319 r34351  
    26392639        virtual bool isEmptyStatement() const KJS_FAST_CALL { return true; }
    26402640    };
     2641   
     2642    class DebuggerStatementNode : public StatementNode {
     2643    public:
     2644        DebuggerStatementNode() KJS_FAST_CALL
     2645        {
     2646        }
     2647       
     2648        virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;
     2649
     2650        virtual void streamTo(SourceStream&) const KJS_FAST_CALL;
     2651        virtual JSValue* execute(OldInterpreterExecState*) KJS_FAST_CALL;
     2652    };
    26412653
    26422654    class ExprStatementNode : public StatementNode {
Note: See TracChangeset for help on using the changeset viewer.