| OLD | NEW |
| 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 Loading... |
| 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 3376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4608 Report::MessageF(Report::kBailout, | 4608 Report::MessageF(Report::kBailout, |
| 4609 Script::Handle(function.script()), | 4609 Script::Handle(function.script()), |
| 4610 function.token_pos(), | 4610 function.token_pos(), |
| 4611 "FlowGraphBuilder Bailout: %s %s", | 4611 "FlowGraphBuilder Bailout: %s %s", |
| 4612 String::Handle(function.name()).ToCString(), | 4612 String::Handle(function.name()).ToCString(), |
| 4613 reason); | 4613 reason); |
| 4614 UNREACHABLE(); | 4614 UNREACHABLE(); |
| 4615 } | 4615 } |
| 4616 | 4616 |
| 4617 } // namespace dart | 4617 } // namespace dart |
| OLD | NEW |