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_ia32.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: 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
« no previous file with comments | « vm/intermediate_language.cc ('k') | 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) 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_IA32. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32.
6 #if defined(TARGET_ARCH_IA32) 6 #if defined(TARGET_ARCH_IA32)
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 2125 matching lines...) Expand 10 before | Expand all | Expand 10 after
2136 LocationSummary* locs = 2136 LocationSummary* locs =
2137 new LocationSummary(kNumInputs, kNumTemps, LocationSummary::kCall); 2137 new LocationSummary(kNumInputs, kNumTemps, LocationSummary::kCall);
2138 locs->set_in(0, Location::RegisterLocation(EAX)); 2138 locs->set_in(0, Location::RegisterLocation(EAX));
2139 locs->set_in(1, Location::RegisterLocation(ECX)); 2139 locs->set_in(1, Location::RegisterLocation(ECX));
2140 locs->set_temp(0, Location::RegisterLocation(EDX)); 2140 locs->set_temp(0, Location::RegisterLocation(EDX));
2141 return locs; 2141 return locs;
2142 } 2142 }
2143 // Otherwise polymorphic dispatch. 2143 // Otherwise polymorphic dispatch.
2144 } 2144 }
2145 // Call. 2145 // Call.
2146 LocationSummary* result = new LocationSummary(0, 0, LocationSummary::kCall); 2146 return Computation::MakeCallSummary();
2147 result->set_out(Location::RegisterLocation(EAX));
2148 return result;
2149 } 2147 }
2150 2148
2151 2149
2152 void BranchInstr::EmitNativeCode(FlowGraphCompiler* compiler) { 2150 void BranchInstr::EmitNativeCode(FlowGraphCompiler* compiler) {
2153 if ((kind() == Token::kEQ_STRICT) || (kind() == Token::kNE_STRICT)) { 2151 if ((kind() == Token::kEQ_STRICT) || (kind() == Token::kNE_STRICT)) {
2154 Register left = locs()->in(0).reg(); 2152 Register left = locs()->in(0).reg();
2155 Register right = locs()->in(1).reg(); 2153 Register right = locs()->in(1).reg();
2156 __ cmpl(left, right); 2154 __ cmpl(left, right);
2157 Condition cond = (kind() == Token::kEQ_STRICT) ? EQUAL : NOT_EQUAL; 2155 Condition cond = (kind() == Token::kEQ_STRICT) ? EQUAL : NOT_EQUAL;
2158 EmitBranchOnCondition(compiler, cond); 2156 EmitBranchOnCondition(compiler, cond);
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
2199 ASSERT(locs()->out().reg() == EAX); 2197 ASSERT(locs()->out().reg() == EAX);
2200 __ CompareObject(locs()->out().reg(), compiler->bool_true()); 2198 __ CompareObject(locs()->out().reg(), compiler->bool_true());
2201 EmitBranchOnCondition(compiler, branch_condition); 2199 EmitBranchOnCondition(compiler, branch_condition);
2202 } 2200 }
2203 2201
2204 } // namespace dart 2202 } // namespace dart
2205 2203
2206 #undef __ 2204 #undef __
2207 2205
2208 #endif // defined TARGET_ARCH_X64 2206 #endif // defined TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « vm/intermediate_language.cc ('k') | vm/intermediate_language_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698