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

Side by Side Diff: runtime/vm/intermediate_language_x64.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_mips.cc ('k') | no next file » | 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_X64. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_X64.
6 #if defined(TARGET_ARCH_X64) 6 #if defined(TARGET_ARCH_X64)
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 5711 matching lines...) Expand 10 before | Expand all | Expand 10 after
5722 } 5722 }
5723 5723
5724 // We can fall through if the successor is the next block in the list. 5724 // We can fall through if the successor is the next block in the list.
5725 // Otherwise, we need a jump. 5725 // Otherwise, we need a jump.
5726 if (!compiler->CanFallThroughTo(successor())) { 5726 if (!compiler->CanFallThroughTo(successor())) {
5727 __ jmp(compiler->GetJumpLabel(successor())); 5727 __ jmp(compiler->GetJumpLabel(successor()));
5728 } 5728 }
5729 } 5729 }
5730 5730
5731 5731
5732 LocationSummary* CurrentContextInstr::MakeLocationSummary(Isolate* isolate,
5733 bool opt) const {
5734 return LocationSummary::Make(isolate,
5735 0,
5736 Location::RequiresRegister(),
5737 LocationSummary::kNoCall);
5738 }
5739
5740
5741 void CurrentContextInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
5742 __ MoveRegister(locs()->out(0).reg(), CTX);
5743 }
5744
5745
5746 LocationSummary* StrictCompareInstr::MakeLocationSummary(Isolate* isolate, 5732 LocationSummary* StrictCompareInstr::MakeLocationSummary(Isolate* isolate,
5747 bool opt) const { 5733 bool opt) const {
5748 const intptr_t kNumInputs = 2; 5734 const intptr_t kNumInputs = 2;
5749 const intptr_t kNumTemps = 0; 5735 const intptr_t kNumTemps = 0;
5750 if (needs_number_check()) { 5736 if (needs_number_check()) {
5751 LocationSummary* locs = new(isolate) LocationSummary( 5737 LocationSummary* locs = new(isolate) LocationSummary(
5752 isolate, kNumInputs, kNumTemps, LocationSummary::kCall); 5738 isolate, kNumInputs, kNumTemps, LocationSummary::kCall);
5753 locs->set_in(0, Location::RegisterLocation(RAX)); 5739 locs->set_in(0, Location::RegisterLocation(RAX));
5754 locs->set_in(1, Location::RegisterLocation(RCX)); 5740 locs->set_in(1, Location::RegisterLocation(RCX));
5755 locs->set_out(0, Location::RegisterLocation(RAX)); 5741 locs->set_out(0, Location::RegisterLocation(RAX));
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
5927 __ movq(R10, Immediate(kInvalidObjectPointer)); 5913 __ movq(R10, Immediate(kInvalidObjectPointer));
5928 __ movq(RBX, Immediate(kInvalidObjectPointer)); 5914 __ movq(RBX, Immediate(kInvalidObjectPointer));
5929 #endif 5915 #endif
5930 } 5916 }
5931 5917
5932 } // namespace dart 5918 } // namespace dart
5933 5919
5934 #undef __ 5920 #undef __
5935 5921
5936 #endif // defined TARGET_ARCH_X64 5922 #endif // defined TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language_mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698