Changeset 36809 in webkit for trunk/JavaScriptCore/kjs
- Timestamp:
- Sep 23, 2008, 11:37:18 AM (17 years ago)
- Location:
- trunk/JavaScriptCore/kjs
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/nodes.cpp
r36794 r36809 1085 1085 for (StatementVector::iterator it = statements.begin(); it != end; ++it) { 1086 1086 StatementNode* n = it->get(); 1087 generator.emitDebugHook(WillExecuteStatement, n-> firstLine(), n->lastLine());1087 generator.emitDebugHook(WillExecuteStatement, n->isDoWhile() ? n->lastLine() : n->firstLine(), n->lastLine()); 1088 1088 generator.emitNode(dst, n); 1089 1089 } -
trunk/JavaScriptCore/kjs/nodes.h
r36794 r36809 235 235 236 236 virtual bool isBlock() const JSC_FAST_CALL { return false; } 237 virtual bool isDoWhile() const JSC_FAST_CALL { return false; } 237 238 protected: 238 239 LabelStack m_labelStack; … … 1937 1938 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 1938 1939 1940 virtual bool isDoWhile() const JSC_FAST_CALL { return true; } 1939 1941 private: 1940 1942 RefPtr<StatementNode> m_statement;
Note:
See TracChangeset
for help on using the changeset viewer.