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/cpu.h" | 10 #include "vm/cpu.h" |
(...skipping 6627 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6638 | 6638 |
6639 LocationSummary* GotoInstr::MakeLocationSummary(Zone* zone, | 6639 LocationSummary* GotoInstr::MakeLocationSummary(Zone* zone, |
6640 bool opt) const { | 6640 bool opt) const { |
6641 return new(zone) LocationSummary(zone, 0, 0, LocationSummary::kNoCall); | 6641 return new(zone) LocationSummary(zone, 0, 0, LocationSummary::kNoCall); |
6642 } | 6642 } |
6643 | 6643 |
6644 | 6644 |
6645 void GotoInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 6645 void GotoInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
6646 if (!compiler->is_optimizing()) { | 6646 if (!compiler->is_optimizing()) { |
6647 if (FLAG_emit_edge_counters) { | 6647 if (FLAG_emit_edge_counters) { |
6648 compiler->EmitEdgeCounter(); | 6648 compiler->EmitEdgeCounter(block()->preorder_number()); |
6649 } | 6649 } |
6650 // Add a deoptimization descriptor for deoptimizing instructions that | 6650 // Add a deoptimization descriptor for deoptimizing instructions that |
6651 // may be inserted before this instruction. On ARM this descriptor | 6651 // may be inserted before this instruction. |
6652 // points after the edge counter code so that we can reuse the same | |
6653 // pattern matching code as at call sites, which matches backwards from | |
6654 // the end of the pattern. | |
6655 compiler->AddCurrentDescriptor(RawPcDescriptors::kDeopt, | 6652 compiler->AddCurrentDescriptor(RawPcDescriptors::kDeopt, |
6656 GetDeoptId(), | 6653 GetDeoptId(), |
6657 Scanner::kNoSourcePos); | 6654 Scanner::kNoSourcePos); |
6658 } | 6655 } |
6659 if (HasParallelMove()) { | 6656 if (HasParallelMove()) { |
6660 compiler->parallel_move_resolver()->EmitNativeCode(parallel_move()); | 6657 compiler->parallel_move_resolver()->EmitNativeCode(parallel_move()); |
6661 } | 6658 } |
6662 | 6659 |
6663 // We can fall through if the successor is the next block in the list. | 6660 // We can fall through if the successor is the next block in the list. |
6664 // Otherwise, we need a jump. | 6661 // Otherwise, we need a jump. |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6862 1, | 6859 1, |
6863 locs()); | 6860 locs()); |
6864 __ Drop(1); | 6861 __ Drop(1); |
6865 __ Pop(result); | 6862 __ Pop(result); |
6866 } | 6863 } |
6867 | 6864 |
6868 | 6865 |
6869 } // namespace dart | 6866 } // namespace dart |
6870 | 6867 |
6871 #endif // defined TARGET_ARCH_ARM | 6868 #endif // defined TARGET_ARCH_ARM |
OLD | NEW |