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

Side by Side Diff: runtime/vm/flow_graph_builder.cc

Issue 1576583003: More source position improvements and tests (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/flow_graph_builder.h" 5 #include "vm/flow_graph_builder.h"
6 6
7 #include "lib/invocation_mirror.h" 7 #include "lib/invocation_mirror.h"
8 #include "vm/ast_printer.h" 8 #include "vm/ast_printer.h"
9 #include "vm/bit_vector.h" 9 #include "vm/bit_vector.h"
10 #include "vm/compiler.h" 10 #include "vm/compiler.h"
(...skipping 1200 matching lines...) Expand 10 before | Expand all | Expand 10 after
1211 JoinEntryInstr* const join = new(Z) JoinEntryInstr( 1211 JoinEntryInstr* const join = new(Z) JoinEntryInstr(
1212 owner()->AllocateBlockId(), owner()->try_index()); 1212 owner()->AllocateBlockId(), owner()->try_index());
1213 owner()->await_joins()->Add(join); 1213 owner()->await_joins()->Add(join);
1214 exit_ = join; 1214 exit_ = join;
1215 } 1215 }
1216 } 1216 }
1217 1217
1218 1218
1219 // <Expression> ::= Literal { literal: Instance } 1219 // <Expression> ::= Literal { literal: Instance }
1220 void EffectGraphVisitor::VisitLiteralNode(LiteralNode* node) { 1220 void EffectGraphVisitor::VisitLiteralNode(LiteralNode* node) {
1221 ReturnDefinition(new(Z) ConstantInstr(node->literal())); 1221 ReturnDefinition(new(Z) ConstantInstr(node->literal(), node->token_pos()));
1222 } 1222 }
1223 1223
1224 1224
1225 // Type nodes are used when a type is referenced as a literal. Type nodes 1225 // Type nodes are used when a type is referenced as a literal. Type nodes
1226 // can also be used for the right-hand side of instanceof comparisons, 1226 // can also be used for the right-hand side of instanceof comparisons,
1227 // but they are handled specially in that context, not here. 1227 // but they are handled specially in that context, not here.
1228 void EffectGraphVisitor::VisitTypeNode(TypeNode* node) { 1228 void EffectGraphVisitor::VisitTypeNode(TypeNode* node) {
1229 return; 1229 return;
1230 } 1230 }
1231 1231
(...skipping 3381 matching lines...) Expand 10 before | Expand all | Expand 10 after
4613 Report::MessageF(Report::kBailout, 4613 Report::MessageF(Report::kBailout,
4614 Script::Handle(function.script()), 4614 Script::Handle(function.script()),
4615 function.token_pos(), 4615 function.token_pos(),
4616 "FlowGraphBuilder Bailout: %s %s", 4616 "FlowGraphBuilder Bailout: %s %s",
4617 String::Handle(function.name()).ToCString(), 4617 String::Handle(function.name()).ToCString(),
4618 reason); 4618 reason);
4619 UNREACHABLE(); 4619 UNREACHABLE();
4620 } 4620 }
4621 4621
4622 } // namespace dart 4622 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/flow_graph_builder_test.cc » ('j') | runtime/vm/flow_graph_builder_test.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698