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_X64. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_X64. |
6 #if defined(TARGET_ARCH_X64) | 6 #if defined(TARGET_ARCH_X64) |
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 6112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6123 | 6123 |
6124 | 6124 |
6125 LocationSummary* GotoInstr::MakeLocationSummary(Zone* zone, | 6125 LocationSummary* GotoInstr::MakeLocationSummary(Zone* zone, |
6126 bool opt) const { | 6126 bool opt) const { |
6127 return new(zone) LocationSummary(zone, 0, 0, LocationSummary::kNoCall); | 6127 return new(zone) LocationSummary(zone, 0, 0, LocationSummary::kNoCall); |
6128 } | 6128 } |
6129 | 6129 |
6130 | 6130 |
6131 void GotoInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 6131 void GotoInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
6132 if (!compiler->is_optimizing()) { | 6132 if (!compiler->is_optimizing()) { |
6133 if (FLAG_emit_edge_counters) { | 6133 if (FLAG_reorder_basic_blocks) { |
6134 compiler->EmitEdgeCounter(block()->preorder_number()); | 6134 compiler->EmitEdgeCounter(block()->preorder_number()); |
6135 } | 6135 } |
6136 // Add a deoptimization descriptor for deoptimizing instructions that | 6136 // Add a deoptimization descriptor for deoptimizing instructions that |
6137 // may be inserted before this instruction. | 6137 // may be inserted before this instruction. |
6138 compiler->AddCurrentDescriptor(RawPcDescriptors::kDeopt, | 6138 compiler->AddCurrentDescriptor(RawPcDescriptors::kDeopt, |
6139 GetDeoptId(), | 6139 GetDeoptId(), |
6140 TokenPosition::kNoSource); | 6140 TokenPosition::kNoSource); |
6141 } | 6141 } |
6142 if (HasParallelMove()) { | 6142 if (HasParallelMove()) { |
6143 compiler->parallel_move_resolver()->EmitNativeCode(parallel_move()); | 6143 compiler->parallel_move_resolver()->EmitNativeCode(parallel_move()); |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6397 __ Drop(1); | 6397 __ Drop(1); |
6398 __ popq(result); | 6398 __ popq(result); |
6399 } | 6399 } |
6400 | 6400 |
6401 | 6401 |
6402 } // namespace dart | 6402 } // namespace dart |
6403 | 6403 |
6404 #undef __ | 6404 #undef __ |
6405 | 6405 |
6406 #endif // defined TARGET_ARCH_X64 | 6406 #endif // defined TARGET_ARCH_X64 |
OLD | NEW |