Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(244)

Unified Diff: runtime/vm/ast.h

Issue 1087383002: Add support for debug break in Dart source. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/vm/ast_printer.cc » ('j') | runtime/vm/parser.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/ast.h
===================================================================
--- runtime/vm/ast.h (revision 45190)
+++ runtime/vm/ast.h (working copy)
@@ -34,6 +34,7 @@
V(DoWhile) \
V(For) \
V(Jump) \
+ V(Stop) \
V(ArgumentList) \
V(Array) \
V(Closure) \
@@ -1143,6 +1144,27 @@
};
+class StopNode : public AstNode {
+ public:
+ StopNode(intptr_t token_pos, const char* message)
+ : AstNode(token_pos),
+ message_(message) {
+ ASSERT(message != NULL);
+ }
+
+ const char* message() const { return message_; }
+
+ virtual void VisitChildren(AstNodeVisitor* visitor) const { }
+
+ DECLARE_COMMON_NODE_FUNCTIONS(StopNode);
+
+ private:
+ const char* message_;
+
+ DISALLOW_IMPLICIT_CONSTRUCTORS(StopNode);
+};
+
+
class LoadLocalNode : public AstNode {
public:
LoadLocalNode(intptr_t token_pos, const LocalVariable* local)
« no previous file with comments | « no previous file | runtime/vm/ast_printer.cc » ('j') | runtime/vm/parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698