| 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_MIPS. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_MIPS. |
| 6 #if defined(TARGET_ARCH_MIPS) | 6 #if defined(TARGET_ARCH_MIPS) |
| 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 5365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5376 | 5376 |
| 5377 LocationSummary* GotoInstr::MakeLocationSummary(Zone* zone, | 5377 LocationSummary* GotoInstr::MakeLocationSummary(Zone* zone, |
| 5378 bool opt) const { | 5378 bool opt) const { |
| 5379 return new(zone) LocationSummary(zone, 0, 0, LocationSummary::kNoCall); | 5379 return new(zone) LocationSummary(zone, 0, 0, LocationSummary::kNoCall); |
| 5380 } | 5380 } |
| 5381 | 5381 |
| 5382 | 5382 |
| 5383 void GotoInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 5383 void GotoInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
| 5384 __ Comment("GotoInstr"); | 5384 __ Comment("GotoInstr"); |
| 5385 if (!compiler->is_optimizing()) { | 5385 if (!compiler->is_optimizing()) { |
| 5386 if (FLAG_emit_edge_counters) { | 5386 if (FLAG_reorder_basic_blocks) { |
| 5387 compiler->EmitEdgeCounter(block()->preorder_number()); | 5387 compiler->EmitEdgeCounter(block()->preorder_number()); |
| 5388 } | 5388 } |
| 5389 // Add a deoptimization descriptor for deoptimizing instructions that | 5389 // Add a deoptimization descriptor for deoptimizing instructions that |
| 5390 // may be inserted before this instruction. | 5390 // may be inserted before this instruction. |
| 5391 compiler->AddCurrentDescriptor(RawPcDescriptors::kDeopt, | 5391 compiler->AddCurrentDescriptor(RawPcDescriptors::kDeopt, |
| 5392 GetDeoptId(), | 5392 GetDeoptId(), |
| 5393 TokenPosition::kNoSource); | 5393 TokenPosition::kNoSource); |
| 5394 } | 5394 } |
| 5395 if (HasParallelMove()) { | 5395 if (HasParallelMove()) { |
| 5396 compiler->parallel_move_resolver()->EmitNativeCode(parallel_move()); | 5396 compiler->parallel_move_resolver()->EmitNativeCode(parallel_move()); |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5598 1, | 5598 1, |
| 5599 locs()); | 5599 locs()); |
| 5600 __ lw(result, Address(SP, 1 * kWordSize)); | 5600 __ lw(result, Address(SP, 1 * kWordSize)); |
| 5601 __ addiu(SP, SP, Immediate(2 * kWordSize)); | 5601 __ addiu(SP, SP, Immediate(2 * kWordSize)); |
| 5602 } | 5602 } |
| 5603 | 5603 |
| 5604 | 5604 |
| 5605 } // namespace dart | 5605 } // namespace dart |
| 5606 | 5606 |
| 5607 #endif // defined TARGET_ARCH_MIPS | 5607 #endif // defined TARGET_ARCH_MIPS |
| OLD | NEW |