| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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/intermediate_language.h" | 5 #include "vm/intermediate_language.h" |
| 6 | 6 |
| 7 #include "vm/bit_vector.h" | 7 #include "vm/bit_vector.h" |
| 8 #include "vm/dart_entry.h" | 8 #include "vm/dart_entry.h" |
| 9 #include "vm/flow_graph_allocator.h" | 9 #include "vm/flow_graph_allocator.h" |
| 10 #include "vm/flow_graph_builder.h" | 10 #include "vm/flow_graph_builder.h" |
| (...skipping 1318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1329 // is located in intermediate_language_<arch>.cc | 1329 // is located in intermediate_language_<arch>.cc |
| 1330 | 1330 |
| 1331 #define __ compiler->assembler()-> | 1331 #define __ compiler->assembler()-> |
| 1332 | 1332 |
| 1333 void GraphEntryInstr::PrepareEntry(FlowGraphCompiler* compiler) { | 1333 void GraphEntryInstr::PrepareEntry(FlowGraphCompiler* compiler) { |
| 1334 // Nothing to do. | 1334 // Nothing to do. |
| 1335 } | 1335 } |
| 1336 | 1336 |
| 1337 | 1337 |
| 1338 void JoinEntryInstr::PrepareEntry(FlowGraphCompiler* compiler) { | 1338 void JoinEntryInstr::PrepareEntry(FlowGraphCompiler* compiler) { |
| 1339 __ Bind(compiler->GetBlockLabel(this)); | 1339 __ Bind(compiler->GetJumpLabel(this)); |
| 1340 if (HasParallelMove()) { | 1340 if (HasParallelMove()) { |
| 1341 compiler->parallel_move_resolver()->EmitNativeCode(parallel_move()); | 1341 compiler->parallel_move_resolver()->EmitNativeCode(parallel_move()); |
| 1342 } | 1342 } |
| 1343 } | 1343 } |
| 1344 | 1344 |
| 1345 | 1345 |
| 1346 void TargetEntryInstr::PrepareEntry(FlowGraphCompiler* compiler) { | 1346 void TargetEntryInstr::PrepareEntry(FlowGraphCompiler* compiler) { |
| 1347 __ Bind(compiler->GetBlockLabel(this)); | 1347 __ Bind(compiler->GetJumpLabel(this)); |
| 1348 if (IsCatchEntry()) { | 1348 if (IsCatchEntry()) { |
| 1349 compiler->AddExceptionHandler(catch_try_index(), | 1349 compiler->AddExceptionHandler(catch_try_index(), |
| 1350 try_index(), | 1350 try_index(), |
| 1351 compiler->assembler()->CodeSize(), | 1351 compiler->assembler()->CodeSize(), |
| 1352 catch_handler_types_); | 1352 catch_handler_types_); |
| 1353 } | 1353 } |
| 1354 if (HasParallelMove()) { | 1354 if (HasParallelMove()) { |
| 1355 compiler->parallel_move_resolver()->EmitNativeCode(parallel_move()); | 1355 compiler->parallel_move_resolver()->EmitNativeCode(parallel_move()); |
| 1356 } | 1356 } |
| 1357 } | 1357 } |
| (...skipping 928 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2286 default: | 2286 default: |
| 2287 UNREACHABLE(); | 2287 UNREACHABLE(); |
| 2288 } | 2288 } |
| 2289 return kPowRuntimeEntry; | 2289 return kPowRuntimeEntry; |
| 2290 } | 2290 } |
| 2291 | 2291 |
| 2292 | 2292 |
| 2293 #undef __ | 2293 #undef __ |
| 2294 | 2294 |
| 2295 } // namespace dart | 2295 } // namespace dart |
| OLD | NEW |