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

Side by Side Diff: vm/intermediate_language_x64.cc

Issue 10826097: Use explicit push-argument for InstanceSetter instruction. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Fix syntax error Created 8 years, 4 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
« vm/intermediate_language.h ('K') | « vm/intermediate_language.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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 "lib/error.h" 10 #include "lib/error.h"
(...skipping 2132 matching lines...) Expand 10 before | Expand all | Expand 10 after
2143 LocationSummary* locs = 2143 LocationSummary* locs =
2144 new LocationSummary(kNumInputs, kNumTemps, LocationSummary::kCall); 2144 new LocationSummary(kNumInputs, kNumTemps, LocationSummary::kCall);
2145 locs->set_in(0, Location::RegisterLocation(RAX)); 2145 locs->set_in(0, Location::RegisterLocation(RAX));
2146 locs->set_in(1, Location::RegisterLocation(RCX)); 2146 locs->set_in(1, Location::RegisterLocation(RCX));
2147 locs->set_temp(0, Location::RegisterLocation(RDX)); 2147 locs->set_temp(0, Location::RegisterLocation(RDX));
2148 return locs; 2148 return locs;
2149 } 2149 }
2150 // Otherwise polymorphic dispatch. 2150 // Otherwise polymorphic dispatch.
2151 } 2151 }
2152 // Call. 2152 // Call.
2153 LocationSummary* result = new LocationSummary(0, 0, LocationSummary::kCall); 2153 return Computation::MakeCallSummary();
srdjan 2012/08/01 16:53:31 What about IA32? Let's try to keep it in sync when
Florian Schneider 2012/08/02 10:06:59 Oops. Thanks, I forgot about IA32.
2154 result->set_out(Location::RegisterLocation(RAX));
2155 return result;
2156 } 2154 }
2157 2155
2158 2156
2159 void BranchInstr::EmitNativeCode(FlowGraphCompiler* compiler) { 2157 void BranchInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
2160 if ((kind() == Token::kEQ_STRICT) || (kind() == Token::kNE_STRICT)) { 2158 if ((kind() == Token::kEQ_STRICT) || (kind() == Token::kNE_STRICT)) {
2161 Register left = locs()->in(0).reg(); 2159 Register left = locs()->in(0).reg();
2162 Register right = locs()->in(1).reg(); 2160 Register right = locs()->in(1).reg();
2163 __ cmpq(left, right); 2161 __ cmpq(left, right);
2164 Condition cond = (kind() == Token::kEQ_STRICT) ? EQUAL : NOT_EQUAL; 2162 Condition cond = (kind() == Token::kEQ_STRICT) ? EQUAL : NOT_EQUAL;
2165 EmitBranchOnCondition(compiler, cond); 2163 EmitBranchOnCondition(compiler, cond);
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
2206 ASSERT(locs()->out().reg() == RAX); 2204 ASSERT(locs()->out().reg() == RAX);
2207 __ CompareObject(locs()->out().reg(), compiler->bool_true()); 2205 __ CompareObject(locs()->out().reg(), compiler->bool_true());
2208 EmitBranchOnCondition(compiler, branch_condition); 2206 EmitBranchOnCondition(compiler, branch_condition);
2209 } 2207 }
2210 2208
2211 } // namespace dart 2209 } // namespace dart
2212 2210
2213 #undef __ 2211 #undef __
2214 2212
2215 #endif // defined TARGET_ARCH_X64 2213 #endif // defined TARGET_ARCH_X64
OLDNEW
« vm/intermediate_language.h ('K') | « vm/intermediate_language.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698