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/dart_entry.h" | 10 #include "vm/dart_entry.h" |
(...skipping 5390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5401 | 5401 |
5402 LocationSummary* GotoInstr::MakeLocationSummary(Zone* zone, | 5402 LocationSummary* GotoInstr::MakeLocationSummary(Zone* zone, |
5403 bool opt) const { | 5403 bool opt) const { |
5404 return new(zone) LocationSummary(zone, 0, 0, LocationSummary::kNoCall); | 5404 return new(zone) LocationSummary(zone, 0, 0, LocationSummary::kNoCall); |
5405 } | 5405 } |
5406 | 5406 |
5407 | 5407 |
5408 void GotoInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 5408 void GotoInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
5409 if (!compiler->is_optimizing()) { | 5409 if (!compiler->is_optimizing()) { |
5410 if (FLAG_emit_edge_counters) { | 5410 if (FLAG_emit_edge_counters) { |
5411 compiler->EmitEdgeCounter(); | 5411 compiler->EmitEdgeCounter(block()->preorder_number()); |
5412 } | 5412 } |
5413 // Add a deoptimization descriptor for deoptimizing instructions that | 5413 // Add a deoptimization descriptor for deoptimizing instructions that |
5414 // may be inserted before this instruction. On ARM64 this descriptor | 5414 // may be inserted before this instruction. |
5415 // points after the edge counter code so that we can reuse the same | |
5416 // pattern matching code as at call sites, which matches backwards from | |
5417 // the end of the pattern. | |
5418 compiler->AddCurrentDescriptor(RawPcDescriptors::kDeopt, | 5415 compiler->AddCurrentDescriptor(RawPcDescriptors::kDeopt, |
5419 GetDeoptId(), | 5416 GetDeoptId(), |
5420 Scanner::kNoSourcePos); | 5417 Scanner::kNoSourcePos); |
5421 } | 5418 } |
5422 if (HasParallelMove()) { | 5419 if (HasParallelMove()) { |
5423 compiler->parallel_move_resolver()->EmitNativeCode(parallel_move()); | 5420 compiler->parallel_move_resolver()->EmitNativeCode(parallel_move()); |
5424 } | 5421 } |
5425 | 5422 |
5426 // We can fall through if the successor is the next block in the list. | 5423 // We can fall through if the successor is the next block in the list. |
5427 // Otherwise, we need a jump. | 5424 // Otherwise, we need a jump. |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5625 1, | 5622 1, |
5626 locs()); | 5623 locs()); |
5627 __ Drop(1); | 5624 __ Drop(1); |
5628 __ Pop(result); | 5625 __ Pop(result); |
5629 } | 5626 } |
5630 | 5627 |
5631 | 5628 |
5632 } // namespace dart | 5629 } // namespace dart |
5633 | 5630 |
5634 #endif // defined TARGET_ARCH_ARM64 | 5631 #endif // defined TARGET_ARCH_ARM64 |
OLD | NEW |