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

Side by Side Diff: runtime/vm/intermediate_language_mips.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_ia32.cc ('k') | runtime/vm/intermediate_language_x64.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_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
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
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
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language_ia32.cc ('k') | runtime/vm/intermediate_language_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698