Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(375)

Side by Side Diff: runtime/vm/intermediate_language_arm64.cc

Issue 1088963003: Emit OSR check stub only if needed. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/intermediate_language_arm.cc ('k') | runtime/vm/intermediate_language_ia32.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language_arm.cc ('k') | runtime/vm/intermediate_language_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698