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/globals.h" // Needed here to get TARGET_ARCH_ARM. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM. |
6 #if defined(TARGET_ARCH_ARM) | 6 #if defined(TARGET_ARCH_ARM) |
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 6590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6601 | 6601 |
6602 | 6602 |
6603 LocationSummary* GotoInstr::MakeLocationSummary(Zone* zone, | 6603 LocationSummary* GotoInstr::MakeLocationSummary(Zone* zone, |
6604 bool opt) const { | 6604 bool opt) const { |
6605 return new(zone) LocationSummary(zone, 0, 0, LocationSummary::kNoCall); | 6605 return new(zone) LocationSummary(zone, 0, 0, LocationSummary::kNoCall); |
6606 } | 6606 } |
6607 | 6607 |
6608 | 6608 |
6609 void GotoInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 6609 void GotoInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
6610 if (!compiler->is_optimizing()) { | 6610 if (!compiler->is_optimizing()) { |
6611 if (FLAG_emit_edge_counters) { | 6611 if (FLAG_reorder_basic_blocks) { |
6612 compiler->EmitEdgeCounter(block()->preorder_number()); | 6612 compiler->EmitEdgeCounter(block()->preorder_number()); |
6613 } | 6613 } |
6614 // Add a deoptimization descriptor for deoptimizing instructions that | 6614 // Add a deoptimization descriptor for deoptimizing instructions that |
6615 // may be inserted before this instruction. | 6615 // may be inserted before this instruction. |
6616 compiler->AddCurrentDescriptor(RawPcDescriptors::kDeopt, | 6616 compiler->AddCurrentDescriptor(RawPcDescriptors::kDeopt, |
6617 GetDeoptId(), | 6617 GetDeoptId(), |
6618 TokenPosition::kNoSource); | 6618 TokenPosition::kNoSource); |
6619 } | 6619 } |
6620 if (HasParallelMove()) { | 6620 if (HasParallelMove()) { |
6621 compiler->parallel_move_resolver()->EmitNativeCode(parallel_move()); | 6621 compiler->parallel_move_resolver()->EmitNativeCode(parallel_move()); |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6824 1, | 6824 1, |
6825 locs()); | 6825 locs()); |
6826 __ Drop(1); | 6826 __ Drop(1); |
6827 __ Pop(result); | 6827 __ Pop(result); |
6828 } | 6828 } |
6829 | 6829 |
6830 | 6830 |
6831 } // namespace dart | 6831 } // namespace dart |
6832 | 6832 |
6833 #endif // defined TARGET_ARCH_ARM | 6833 #endif // defined TARGET_ARCH_ARM |
OLD | NEW |