| 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/dart_entry.h" | 10 #include "vm/dart_entry.h" |
| (...skipping 4613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4624 } | 4624 } |
| 4625 | 4625 |
| 4626 | 4626 |
| 4627 void GraphEntryInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 4627 void GraphEntryInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
| 4628 if (!compiler->CanFallThroughTo(normal_entry())) { | 4628 if (!compiler->CanFallThroughTo(normal_entry())) { |
| 4629 __ b(compiler->GetJumpLabel(normal_entry())); | 4629 __ b(compiler->GetJumpLabel(normal_entry())); |
| 4630 } | 4630 } |
| 4631 } | 4631 } |
| 4632 | 4632 |
| 4633 | 4633 |
| 4634 void TargetEntryInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | |
| 4635 __ Bind(compiler->GetJumpLabel(this)); | |
| 4636 if (!compiler->is_optimizing()) { | |
| 4637 if (compiler->NeedsEdgeCounter(this)) { | |
| 4638 compiler->EmitEdgeCounter(); | |
| 4639 } | |
| 4640 // On MIPS the deoptimization descriptor points after the edge counter | |
| 4641 // code so that we can reuse the same pattern matching code as at call | |
| 4642 // sites, which matches backwards from the end of the pattern. | |
| 4643 compiler->AddCurrentDescriptor(RawPcDescriptors::kDeopt, | |
| 4644 deopt_id_, | |
| 4645 Scanner::kNoSourcePos); | |
| 4646 } | |
| 4647 if (HasParallelMove()) { | |
| 4648 compiler->parallel_move_resolver()->EmitNativeCode(parallel_move()); | |
| 4649 } | |
| 4650 } | |
| 4651 | |
| 4652 | |
| 4653 LocationSummary* GotoInstr::MakeLocationSummary(Isolate* isolate, | 4634 LocationSummary* GotoInstr::MakeLocationSummary(Isolate* isolate, |
| 4654 bool opt) const { | 4635 bool opt) const { |
| 4655 return new(isolate) LocationSummary(isolate, 0, 0, LocationSummary::kNoCall); | 4636 return new(isolate) LocationSummary(isolate, 0, 0, LocationSummary::kNoCall); |
| 4656 } | 4637 } |
| 4657 | 4638 |
| 4658 | 4639 |
| 4659 void GotoInstr::EmitNativeCode(FlowGraphCompiler* compiler) { | 4640 void GotoInstr::EmitNativeCode(FlowGraphCompiler* compiler) { |
| 4660 __ TraceSimMsg("GotoInstr"); | 4641 __ TraceSimMsg("GotoInstr"); |
| 4661 if (!compiler->is_optimizing()) { | 4642 if (!compiler->is_optimizing()) { |
| 4662 if (FLAG_emit_edge_counters) { | 4643 if (FLAG_emit_edge_counters) { |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4829 compiler->GenerateCall(token_pos(), &label, stub_kind_, locs()); | 4810 compiler->GenerateCall(token_pos(), &label, stub_kind_, locs()); |
| 4830 #if defined(DEBUG) | 4811 #if defined(DEBUG) |
| 4831 __ LoadImmediate(S4, kInvalidObjectPointer); | 4812 __ LoadImmediate(S4, kInvalidObjectPointer); |
| 4832 __ LoadImmediate(S5, kInvalidObjectPointer); | 4813 __ LoadImmediate(S5, kInvalidObjectPointer); |
| 4833 #endif | 4814 #endif |
| 4834 } | 4815 } |
| 4835 | 4816 |
| 4836 } // namespace dart | 4817 } // namespace dart |
| 4837 | 4818 |
| 4838 #endif // defined TARGET_ARCH_MIPS | 4819 #endif // defined TARGET_ARCH_MIPS |
| OLD | NEW |