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

Unified Diff: runtime/vm/flow_graph_builder.cc

Issue 23960003: Disentangle AstNode::Name and AstNode::ShortName. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Incorporated review comments. Created 7 years, 3 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_printer.cc ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_builder.cc
diff --git a/runtime/vm/flow_graph_builder.cc b/runtime/vm/flow_graph_builder.cc
index 46f98b376b7e2e415cc156f7c14eddb4e6dac316..1cc588200a67479c3cba80186755aaf1fd4a6da8 100644
--- a/runtime/vm/flow_graph_builder.cc
+++ b/runtime/vm/flow_graph_builder.cc
@@ -993,7 +993,7 @@ void EffectGraphVisitor::VisitBinaryOpNode(BinaryOpNode* node) {
new ZoneGrowableArray<PushArgumentInstr*>(2);
arguments->Add(push_left);
arguments->Add(push_right);
- const String& name = String::ZoneHandle(Symbols::New(node->Name()));
+ const String& name = String::ZoneHandle(Symbols::New(node->TokenName()));
const intptr_t kNumArgsChecked = 2;
InstanceCallInstr* call = new InstanceCallInstr(node->token_pos(),
name,
@@ -1438,7 +1438,7 @@ void EffectGraphVisitor::VisitComparisonNode(ComparisonNode* node) {
ASSERT(Token::IsRelationalOperator(node->kind()));
InstanceCallInstr* comp =
new InstanceCallInstr(node->token_pos(),
- String::ZoneHandle(Symbols::New(node->Name())),
+ String::ZoneHandle(Symbols::New(node->TokenName())),
node->kind(),
arguments,
Object::null_array(),
@@ -1473,7 +1473,7 @@ void EffectGraphVisitor::VisitUnaryOpNode(UnaryOpNode* node) {
arguments->Add(push_value);
InstanceCallInstr* call =
new InstanceCallInstr(node->token_pos(),
- String::ZoneHandle(Symbols::New(node->Name())),
+ String::ZoneHandle(Symbols::New(node->TokenName())),
node->kind(),
arguments,
Object::null_array(),
« no previous file with comments | « runtime/vm/ast_printer.cc ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698