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

Unified Diff: runtime/vm/ast.cc

Issue 9592031: Eliminate IncrOpStaticFieldNode, replace a set of nodes. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 9 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 | « runtime/vm/ast.h ('k') | runtime/vm/ast_printer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/ast.cc
===================================================================
--- runtime/vm/ast.cc (revision 5046)
+++ runtime/vm/ast.cc (working copy)
@@ -319,19 +319,6 @@
}
-const char* IncrOpStaticFieldNode::Name() const {
- switch (kind_) {
- case Token::kINCR:
- return prefix_ ? "static_field_pre_++" : "static_field_post_++";
- case Token::kDECR:
- return prefix_ ? "static_field_pre_--" : "static_field_post_--";
- default:
- UNREACHABLE();
- return NULL;
- }
-}
-
-
const char* JumpNode::Name() const {
return Token::Str(kind_);
}
@@ -376,7 +363,8 @@
AstNode* LoadStaticFieldNode::MakeIncrOpNode(intptr_t token_index,
Token::Kind kind,
bool is_prefix) {
- return new IncrOpStaticFieldNode(token_index, kind, is_prefix, field());
+ UNIMPLEMENTED();
+ return NULL;
}
@@ -420,11 +408,8 @@
AstNode* StaticGetterNode::MakeIncrOpNode(intptr_t token_index,
Token::Kind kind,
bool is_prefix) {
- return new IncrOpStaticFieldNode(token_index,
- kind,
- is_prefix,
- cls(),
- field_name());
+ UNIMPLEMENTED();
+ return NULL;
}
« no previous file with comments | « runtime/vm/ast.h ('k') | runtime/vm/ast_printer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698