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

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

Issue 10891025: Eliminate class UseVal. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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
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 1072 matching lines...) Expand 10 before | Expand all | Expand 10 after
1083 compiler->GenerateCall(token_pos(), 1083 compiler->GenerateCall(token_pos(),
1084 try_index(), 1084 try_index(),
1085 &StubCode::AllocateArrayLabel(), 1085 &StubCode::AllocateArrayLabel(),
1086 PcDescriptors::kOther, 1086 PcDescriptors::kOther,
1087 locs()); 1087 locs());
1088 ASSERT(locs()->out().reg() == RAX); 1088 ASSERT(locs()->out().reg() == RAX);
1089 1089
1090 // Pop the element values from the stack into the array. 1090 // Pop the element values from the stack into the array.
1091 __ leaq(R10, FieldAddress(RAX, Array::data_offset())); 1091 __ leaq(R10, FieldAddress(RAX, Array::data_offset()));
1092 for (int i = ArgumentCount() - 1; i >= 0; --i) { 1092 for (int i = ArgumentCount() - 1; i >= 0; --i) {
1093 ASSERT(ArgumentAt(i)->value()->IsUse());
1094 __ popq(Address(R10, i * kWordSize)); 1093 __ popq(Address(R10, i * kWordSize));
1095 } 1094 }
1096 } 1095 }
1097 1096
1098 1097
1099 LocationSummary* 1098 LocationSummary*
1100 AllocateObjectWithBoundsCheckComp::MakeLocationSummary() const { 1099 AllocateObjectWithBoundsCheckComp::MakeLocationSummary() const {
1101 const intptr_t kNumInputs = 2; 1100 const intptr_t kNumInputs = 2;
1102 const intptr_t kNumTemps = 0; 1101 const intptr_t kNumTemps = 0;
1103 LocationSummary* locs = 1102 LocationSummary* locs =
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
1281 LocationSummary* locs = 1280 LocationSummary* locs =
1282 new LocationSummary(kNumInputs, kNumTemps, LocationSummary::kNoCall); 1281 new LocationSummary(kNumInputs, kNumTemps, LocationSummary::kNoCall);
1283 locs->set_in(0, Location::RequiresRegister()); 1282 locs->set_in(0, Location::RequiresRegister());
1284 locs->set_out(Location::SameAsFirstInput()); 1283 locs->set_out(Location::SameAsFirstInput());
1285 return locs; 1284 return locs;
1286 } 1285 }
1287 1286
1288 1287
1289 void ExtractConstructorInstantiatorComp::EmitNativeCode( 1288 void ExtractConstructorInstantiatorComp::EmitNativeCode(
1290 FlowGraphCompiler* compiler) { 1289 FlowGraphCompiler* compiler) {
1291 ASSERT(instantiator()->IsUse());
1292 Register instantiator_reg = locs()->in(0).reg(); 1290 Register instantiator_reg = locs()->in(0).reg();
1293 ASSERT(locs()->out().reg() == instantiator_reg); 1291 ASSERT(locs()->out().reg() == instantiator_reg);
1294 1292
1295 // instantiator_reg is the instantiator AbstractTypeArguments object 1293 // instantiator_reg is the instantiator AbstractTypeArguments object
1296 // (or null). If the instantiator is null and if the type argument vector 1294 // (or null). If the instantiator is null and if the type argument vector
1297 // instantiated from null becomes a vector of Dynamic, then use null as 1295 // instantiated from null becomes a vector of Dynamic, then use null as
1298 // the type arguments and do not pass the instantiator. 1296 // the type arguments and do not pass the instantiator.
1299 Label done; 1297 Label done;
1300 const intptr_t len = type_arguments().Length(); 1298 const intptr_t len = type_arguments().Length();
1301 if (type_arguments().IsRawInstantiatedRaw(len)) { 1299 if (type_arguments().IsRawInstantiatedRaw(len)) {
(...skipping 962 matching lines...) Expand 10 before | Expand all | Expand 10 after
2264 } 2262 }
2265 __ j(ABOVE_EQUAL, deopt); 2263 __ j(ABOVE_EQUAL, deopt);
2266 } 2264 }
2267 2265
2268 2266
2269 } // namespace dart 2267 } // namespace dart
2270 2268
2271 #undef __ 2269 #undef __
2272 2270
2273 #endif // defined TARGET_ARCH_X64 2271 #endif // defined TARGET_ARCH_X64
OLDNEW
« runtime/vm/intermediate_language.h ('K') | « runtime/vm/intermediate_language_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698