| 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/dart_entry.h" | 10 #include "vm/dart_entry.h" |
| (...skipping 6163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6174 | 6174 |
| 6175 LocationSummary* GotoInstr::MakeLocationSummary(Zone* zone, | 6175 LocationSummary* GotoInstr::MakeLocationSummary(Zone* zone, |
| 6176 bool opt) const { | 6176 bool opt) const { |
| 6177 return new(zone) LocationSummary(zone, 0, 0, LocationSummary::kNoCall); | 6177 return new(zone) LocationSummary(zone, 0, 0, LocationSummary::kNoCall); |
| 6178 } | 6178 } |
| 6179 | 6179 |
| 6180 | 6180 |
| 6181 void GotoInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 6181 void GotoInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
| 6182 if (!compiler->is_optimizing()) { | 6182 if (!compiler->is_optimizing()) { |
| 6183 if (FLAG_emit_edge_counters) { | 6183 if (FLAG_emit_edge_counters) { |
| 6184 compiler->EmitEdgeCounter(); | 6184 compiler->EmitEdgeCounter(block()->preorder_number()); |
| 6185 } | 6185 } |
| 6186 // Add a deoptimization descriptor for deoptimizing instructions that | 6186 // Add a deoptimization descriptor for deoptimizing instructions that |
| 6187 // may be inserted before this instruction. This descriptor points | 6187 // may be inserted before this instruction. |
| 6188 // after the edge counter for uniformity with ARM and MIPS, where we can | |
| 6189 // reuse pattern matching that matches backwards from the end of the | |
| 6190 // pattern. | |
| 6191 compiler->AddCurrentDescriptor(RawPcDescriptors::kDeopt, | 6188 compiler->AddCurrentDescriptor(RawPcDescriptors::kDeopt, |
| 6192 GetDeoptId(), | 6189 GetDeoptId(), |
| 6193 Scanner::kNoSourcePos); | 6190 Scanner::kNoSourcePos); |
| 6194 } | 6191 } |
| 6195 if (HasParallelMove()) { | 6192 if (HasParallelMove()) { |
| 6196 compiler->parallel_move_resolver()->EmitNativeCode(parallel_move()); | 6193 compiler->parallel_move_resolver()->EmitNativeCode(parallel_move()); |
| 6197 } | 6194 } |
| 6198 | 6195 |
| 6199 // We can fall through if the successor is the next block in the list. | 6196 // We can fall through if the successor is the next block in the list. |
| 6200 // Otherwise, we need a jump. | 6197 // Otherwise, we need a jump. |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6441 __ Drop(1); | 6438 __ Drop(1); |
| 6442 __ popq(result); | 6439 __ popq(result); |
| 6443 } | 6440 } |
| 6444 | 6441 |
| 6445 | 6442 |
| 6446 } // namespace dart | 6443 } // namespace dart |
| 6447 | 6444 |
| 6448 #undef __ | 6445 #undef __ |
| 6449 | 6446 |
| 6450 #endif // defined TARGET_ARCH_X64 | 6447 #endif // defined TARGET_ARCH_X64 |
| OLD | NEW |