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

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

Issue 626523002: VM: Improve generated code for loading the current context. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 2 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 4766 matching lines...) Expand 10 before | Expand all | Expand 10 after
4777 } 4777 }
4778 4778
4779 // We can fall through if the successor is the next block in the list. 4779 // We can fall through if the successor is the next block in the list.
4780 // Otherwise, we need a jump. 4780 // Otherwise, we need a jump.
4781 if (!compiler->CanFallThroughTo(successor())) { 4781 if (!compiler->CanFallThroughTo(successor())) {
4782 __ b(compiler->GetJumpLabel(successor())); 4782 __ b(compiler->GetJumpLabel(successor()));
4783 } 4783 }
4784 } 4784 }
4785 4785
4786 4786
4787 LocationSummary* CurrentContextInstr::MakeLocationSummary(Isolate* isolate,
4788 bool opt) const {
4789 return LocationSummary::Make(isolate,
4790 0,
4791 Location::RequiresRegister(),
4792 LocationSummary::kNoCall);
4793 }
4794
4795
4796 void CurrentContextInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
4797 __ mov(locs()->out(0).reg(), CTX);
4798 }
4799
4800
4801 LocationSummary* StrictCompareInstr::MakeLocationSummary(Isolate* isolate, 4787 LocationSummary* StrictCompareInstr::MakeLocationSummary(Isolate* isolate,
4802 bool opt) const { 4788 bool opt) const {
4803 const intptr_t kNumInputs = 2; 4789 const intptr_t kNumInputs = 2;
4804 const intptr_t kNumTemps = 0; 4790 const intptr_t kNumTemps = 0;
4805 if (needs_number_check()) { 4791 if (needs_number_check()) {
4806 LocationSummary* locs = new(isolate) LocationSummary( 4792 LocationSummary* locs = new(isolate) LocationSummary(
4807 isolate, kNumInputs, kNumTemps, LocationSummary::kCall); 4793 isolate, kNumInputs, kNumTemps, LocationSummary::kCall);
4808 locs->set_in(0, Location::RegisterLocation(A0)); 4794 locs->set_in(0, Location::RegisterLocation(A0));
4809 locs->set_in(1, Location::RegisterLocation(A1)); 4795 locs->set_in(1, Location::RegisterLocation(A1));
4810 locs->set_out(0, Location::RegisterLocation(A0)); 4796 locs->set_out(0, Location::RegisterLocation(A0));
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
4931 compiler->GenerateCall(token_pos(), &label, stub_kind_, locs()); 4917 compiler->GenerateCall(token_pos(), &label, stub_kind_, locs());
4932 #if defined(DEBUG) 4918 #if defined(DEBUG)
4933 __ LoadImmediate(S4, kInvalidObjectPointer); 4919 __ LoadImmediate(S4, kInvalidObjectPointer);
4934 __ LoadImmediate(S5, kInvalidObjectPointer); 4920 __ LoadImmediate(S5, kInvalidObjectPointer);
4935 #endif 4921 #endif
4936 } 4922 }
4937 4923
4938 } // namespace dart 4924 } // namespace dart
4939 4925
4940 #endif // defined TARGET_ARCH_MIPS 4926 #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