| 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_ARM. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM. |
| 6 #if defined(TARGET_ARCH_ARM) | 6 #if defined(TARGET_ARCH_ARM) |
| 7 | 7 |
| 8 #include "vm/intermediate_language.h" | 8 #include "vm/intermediate_language.h" |
| 9 | 9 |
| 10 #include "vm/cpu.h" | 10 #include "vm/cpu.h" |
| (...skipping 2851 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2862 return summary; | 2862 return summary; |
| 2863 } | 2863 } |
| 2864 | 2864 |
| 2865 | 2865 |
| 2866 class CheckStackOverflowSlowPath : public SlowPathCode { | 2866 class CheckStackOverflowSlowPath : public SlowPathCode { |
| 2867 public: | 2867 public: |
| 2868 explicit CheckStackOverflowSlowPath(CheckStackOverflowInstr* instruction) | 2868 explicit CheckStackOverflowSlowPath(CheckStackOverflowInstr* instruction) |
| 2869 : instruction_(instruction) { } | 2869 : instruction_(instruction) { } |
| 2870 | 2870 |
| 2871 virtual void EmitNativeCode(FlowGraphCompiler* compiler) { | 2871 virtual void EmitNativeCode(FlowGraphCompiler* compiler) { |
| 2872 if (FLAG_use_osr) { | 2872 if (FLAG_use_osr && osr_entry_label()->IsLinked()) { |
| 2873 uword flags_address = Isolate::Current()->stack_overflow_flags_address(); | 2873 uword flags_address = Isolate::Current()->stack_overflow_flags_address(); |
| 2874 const Register value = instruction_->locs()->temp(0).reg(); | 2874 const Register value = instruction_->locs()->temp(0).reg(); |
| 2875 __ Comment("CheckStackOverflowSlowPathOsr"); | 2875 __ Comment("CheckStackOverflowSlowPathOsr"); |
| 2876 __ Bind(osr_entry_label()); | 2876 __ Bind(osr_entry_label()); |
| 2877 __ LoadImmediate(IP, flags_address); | 2877 __ LoadImmediate(IP, flags_address); |
| 2878 __ LoadImmediate(value, Isolate::kOsrRequest); | 2878 __ LoadImmediate(value, Isolate::kOsrRequest); |
| 2879 __ str(value, Address(IP)); | 2879 __ str(value, Address(IP)); |
| 2880 } | 2880 } |
| 2881 __ Comment("CheckStackOverflowSlowPath"); | 2881 __ Comment("CheckStackOverflowSlowPath"); |
| 2882 __ Bind(entry_label()); | 2882 __ Bind(entry_label()); |
| (...skipping 4001 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6884 1, | 6884 1, |
| 6885 locs()); | 6885 locs()); |
| 6886 __ Drop(1); | 6886 __ Drop(1); |
| 6887 __ Pop(result); | 6887 __ Pop(result); |
| 6888 } | 6888 } |
| 6889 | 6889 |
| 6890 | 6890 |
| 6891 } // namespace dart | 6891 } // namespace dart |
| 6892 | 6892 |
| 6893 #endif // defined TARGET_ARCH_ARM | 6893 #endif // defined TARGET_ARCH_ARM |
| OLD | NEW |