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 2575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2586 return summary; | 2586 return summary; |
2587 } | 2587 } |
2588 | 2588 |
2589 | 2589 |
2590 class CheckStackOverflowSlowPath : public SlowPathCode { | 2590 class CheckStackOverflowSlowPath : public SlowPathCode { |
2591 public: | 2591 public: |
2592 explicit CheckStackOverflowSlowPath(CheckStackOverflowInstr* instruction) | 2592 explicit CheckStackOverflowSlowPath(CheckStackOverflowInstr* instruction) |
2593 : instruction_(instruction) { } | 2593 : instruction_(instruction) { } |
2594 | 2594 |
2595 virtual void EmitNativeCode(FlowGraphCompiler* compiler) { | 2595 virtual void EmitNativeCode(FlowGraphCompiler* compiler) { |
2596 if (FLAG_use_osr) { | 2596 if (FLAG_use_osr && osr_entry_label()->IsLinked()) { |
2597 uword flags_address = Isolate::Current()->stack_overflow_flags_address(); | 2597 uword flags_address = Isolate::Current()->stack_overflow_flags_address(); |
2598 const Register value = instruction_->locs()->temp(0).reg(); | 2598 const Register value = instruction_->locs()->temp(0).reg(); |
2599 __ Comment("CheckStackOverflowSlowPathOsr"); | 2599 __ Comment("CheckStackOverflowSlowPathOsr"); |
2600 __ Bind(osr_entry_label()); | 2600 __ Bind(osr_entry_label()); |
2601 __ LoadImmediate(TMP, flags_address, PP); | 2601 __ LoadImmediate(TMP, flags_address, PP); |
2602 __ LoadImmediate(value, Isolate::kOsrRequest, PP); | 2602 __ LoadImmediate(value, Isolate::kOsrRequest, PP); |
2603 __ str(value, Address(TMP)); | 2603 __ str(value, Address(TMP)); |
2604 } | 2604 } |
2605 __ Comment("CheckStackOverflowSlowPath"); | 2605 __ Comment("CheckStackOverflowSlowPath"); |
2606 __ Bind(entry_label()); | 2606 __ Bind(entry_label()); |
(...skipping 3039 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5646 1, | 5646 1, |
5647 locs()); | 5647 locs()); |
5648 __ Drop(1); | 5648 __ Drop(1); |
5649 __ Pop(result); | 5649 __ Pop(result); |
5650 } | 5650 } |
5651 | 5651 |
5652 | 5652 |
5653 } // namespace dart | 5653 } // namespace dart |
5654 | 5654 |
5655 #endif // defined TARGET_ARCH_ARM64 | 5655 #endif // defined TARGET_ARCH_ARM64 |
OLD | NEW |