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


Ignore:
Timestamp:
Sep 24, 2008, 3:19:05 PM (17 years ago)
Author:
[email protected]
Message:

2008-09-24 Kevin McCullough <[email protected]>

Reviewed by Geoff.

Bug 21031: Breakpoints in the condition of loops only breaks the first
time

  • kjs/nodes.cpp: (JSC::statementListEmitCode): We don't want to blindly emit a debug hook at the first line of loops, instead let the loop emit the debug hooks. (JSC::DoWhileNode::emitCode): (JSC::WhileNode::emitCode): (JSC::ForNode::emitCode): (JSC::ForInNode::emitCode):
  • kjs/nodes.h: (JSC::StatementNode::): (JSC::DoWhileNode::): (JSC::WhileNode::): (JSC::ForInNode::):
File:
1 edited

Legend:

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

    r36809 r36871  
    235235
    236236        virtual bool isBlock() const JSC_FAST_CALL { return false; }
    237         virtual bool isDoWhile() const JSC_FAST_CALL { return false; }
     237        virtual bool isLoop() const JSC_FAST_CALL { return false; }
    238238    protected:
    239239        LabelStack m_labelStack;
     
    19381938        virtual void streamTo(SourceStream&) const JSC_FAST_CALL;
    19391939
    1940         virtual bool isDoWhile() const JSC_FAST_CALL { return true; }
     1940        virtual bool isLoop() const JSC_FAST_CALL { return true; }
    19411941    private:
    19421942        RefPtr<StatementNode> m_statement;
     
    19561956        virtual void streamTo(SourceStream&) const JSC_FAST_CALL;
    19571957
     1958        virtual bool isLoop() const JSC_FAST_CALL { return true; }
    19581959    private:
    19591960        RefPtr<ExpressionNode> m_expr;
     
    19771978        virtual void streamTo(SourceStream&) const JSC_FAST_CALL;
    19781979
     1980        virtual bool isLoop() const JSC_FAST_CALL { return true; }
    19791981    private:
    19801982        RefPtr<ExpressionNode> m_expr1;
     
    19931995        virtual void streamTo(SourceStream&) const JSC_FAST_CALL;
    19941996
     1997        virtual bool isLoop() const JSC_FAST_CALL { return true; }
    19951998    private:
    19961999        Identifier m_ident;
Note: See TracChangeset for help on using the changeset viewer.