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 2685 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2696 return summary; | 2696 return summary; |
2697 } | 2697 } |
2698 | 2698 |
2699 | 2699 |
2700 class CheckStackOverflowSlowPath : public SlowPathCode { | 2700 class CheckStackOverflowSlowPath : public SlowPathCode { |
2701 public: | 2701 public: |
2702 explicit CheckStackOverflowSlowPath(CheckStackOverflowInstr* instruction) | 2702 explicit CheckStackOverflowSlowPath(CheckStackOverflowInstr* instruction) |
2703 : instruction_(instruction) { } | 2703 : instruction_(instruction) { } |
2704 | 2704 |
2705 virtual void EmitNativeCode(FlowGraphCompiler* compiler) { | 2705 virtual void EmitNativeCode(FlowGraphCompiler* compiler) { |
2706 if (FLAG_use_osr) { | 2706 if (FLAG_use_osr && osr_entry_label()->IsLinked()) { |
2707 uword flags_address = Isolate::Current()->stack_overflow_flags_address(); | 2707 uword flags_address = Isolate::Current()->stack_overflow_flags_address(); |
2708 Register value = instruction_->locs()->temp(0).reg(); | 2708 Register value = instruction_->locs()->temp(0).reg(); |
2709 __ Comment("CheckStackOverflowSlowPathOsr"); | 2709 __ Comment("CheckStackOverflowSlowPathOsr"); |
2710 __ Bind(osr_entry_label()); | 2710 __ Bind(osr_entry_label()); |
2711 __ LoadImmediate(TMP, flags_address); | 2711 __ LoadImmediate(TMP, flags_address); |
2712 __ LoadImmediate(value, Isolate::kOsrRequest); | 2712 __ LoadImmediate(value, Isolate::kOsrRequest); |
2713 __ sw(value, Address(TMP)); | 2713 __ sw(value, Address(TMP)); |
2714 } | 2714 } |
2715 __ Comment("CheckStackOverflowSlowPath"); | 2715 __ Comment("CheckStackOverflowSlowPath"); |
2716 __ Bind(entry_label()); | 2716 __ Bind(entry_label()); |
(...skipping 2910 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5627 1, | 5627 1, |
5628 locs()); | 5628 locs()); |
5629 __ lw(result, Address(SP, 1 * kWordSize)); | 5629 __ lw(result, Address(SP, 1 * kWordSize)); |
5630 __ addiu(SP, SP, Immediate(2 * kWordSize)); | 5630 __ addiu(SP, SP, Immediate(2 * kWordSize)); |
5631 } | 5631 } |
5632 | 5632 |
5633 | 5633 |
5634 } // namespace dart | 5634 } // namespace dart |
5635 | 5635 |
5636 #endif // defined TARGET_ARCH_MIPS | 5636 #endif // defined TARGET_ARCH_MIPS |
OLD | NEW |