OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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/globals.h" // Needed here to get TARGET_ARCH_ARM64. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM64. |
6 #if defined(TARGET_ARCH_ARM64) | 6 #if defined(TARGET_ARCH_ARM64) |
7 | 7 |
8 #include "vm/intermediate_language.h" | 8 #include "vm/intermediate_language.h" |
9 | 9 |
10 #include "vm/compiler.h" | 10 #include "vm/compiler.h" |
(...skipping 5349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5360 | 5360 |
5361 | 5361 |
5362 LocationSummary* GotoInstr::MakeLocationSummary(Zone* zone, | 5362 LocationSummary* GotoInstr::MakeLocationSummary(Zone* zone, |
5363 bool opt) const { | 5363 bool opt) const { |
5364 return new(zone) LocationSummary(zone, 0, 0, LocationSummary::kNoCall); | 5364 return new(zone) LocationSummary(zone, 0, 0, LocationSummary::kNoCall); |
5365 } | 5365 } |
5366 | 5366 |
5367 | 5367 |
5368 void GotoInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 5368 void GotoInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
5369 if (!compiler->is_optimizing()) { | 5369 if (!compiler->is_optimizing()) { |
5370 if (FLAG_emit_edge_counters) { | 5370 if (FLAG_reorder_basic_blocks) { |
5371 compiler->EmitEdgeCounter(block()->preorder_number()); | 5371 compiler->EmitEdgeCounter(block()->preorder_number()); |
5372 } | 5372 } |
5373 // Add a deoptimization descriptor for deoptimizing instructions that | 5373 // Add a deoptimization descriptor for deoptimizing instructions that |
5374 // may be inserted before this instruction. | 5374 // may be inserted before this instruction. |
5375 compiler->AddCurrentDescriptor(RawPcDescriptors::kDeopt, | 5375 compiler->AddCurrentDescriptor(RawPcDescriptors::kDeopt, |
5376 GetDeoptId(), | 5376 GetDeoptId(), |
5377 TokenPosition::kNoSource); | 5377 TokenPosition::kNoSource); |
5378 } | 5378 } |
5379 if (HasParallelMove()) { | 5379 if (HasParallelMove()) { |
5380 compiler->parallel_move_resolver()->EmitNativeCode(parallel_move()); | 5380 compiler->parallel_move_resolver()->EmitNativeCode(parallel_move()); |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5582 1, | 5582 1, |
5583 locs()); | 5583 locs()); |
5584 __ Drop(1); | 5584 __ Drop(1); |
5585 __ Pop(result); | 5585 __ Pop(result); |
5586 } | 5586 } |
5587 | 5587 |
5588 | 5588 |
5589 } // namespace dart | 5589 } // namespace dart |
5590 | 5590 |
5591 #endif // defined TARGET_ARCH_ARM64 | 5591 #endif // defined TARGET_ARCH_ARM64 |
OLD | NEW |