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

Side by Side Diff: runtime/vm/intermediate_language_arm.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 | « no previous file | runtime/vm/intermediate_language_arm64.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) 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
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
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
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/intermediate_language_arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698