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

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

Issue 10451006: - Rename NativeLoadField/NativeStoreField to LoadVMField/StoreVMField. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 7 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/flow_graph_compiler.h" 8 #include "vm/flow_graph_compiler.h"
9 #include "vm/locations.h" 9 #include "vm/locations.h"
10 #include "vm/stub_code.h" 10 #include "vm/stub_code.h"
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
408 token_index(), 408 token_index(),
409 try_index(), 409 try_index(),
410 kAllocateObjectWithBoundsCheckRuntimeEntry); 410 kAllocateObjectWithBoundsCheckRuntimeEntry);
411 // Pop instantiator type arguments, type arguments, class, and 411 // Pop instantiator type arguments, type arguments, class, and
412 // source location. 412 // source location.
413 __ Drop(4); 413 __ Drop(4);
414 __ popq(result); // Pop new instance. 414 __ popq(result); // Pop new instance.
415 } 415 }
416 416
417 417
418 LocationSummary* NativeLoadFieldComp::MakeLocationSummary() const { 418 LocationSummary* LoadVMFieldComp::MakeLocationSummary() const {
419 return NULL; 419 return MakeSimpleLocationSummary(1, Location::RequiresRegister());
420 } 420 }
421 421
422 422
423 void NativeLoadFieldComp::EmitNativeCode(FlowGraphCompiler* compiler) { 423 void LoadVMFieldComp::EmitNativeCode(FlowGraphCompiler* compiler) {
424 UNIMPLEMENTED(); 424 Register obj = locs()->in(0).reg();
425 Register result = locs()->out().reg();
426
427 __ movq(result, FieldAddress(obj, offset_in_bytes()));
425 } 428 }
426 429
427 430
428 LocationSummary* NativeStoreFieldComp::MakeLocationSummary() const { 431 LocationSummary* StoreVMFieldComp::MakeLocationSummary() const {
429 return NULL; 432 return MakeSimpleLocationSummary(2, Location::SameAsFirstInput());
430 } 433 }
431 434
432 435
433 void NativeStoreFieldComp::EmitNativeCode(FlowGraphCompiler* compiler) { 436 void StoreVMFieldComp::EmitNativeCode(FlowGraphCompiler* compiler) {
434 UNIMPLEMENTED(); 437 Register value_reg = locs()->in(0).reg();
438 Register dest_reg = locs()->in(1).reg();
439 ASSERT(value_reg == locs()->out().reg());
440
441 __ StoreIntoObject(dest_reg, FieldAddress(dest_reg, offset_in_bytes()),
442 value_reg);
435 } 443 }
436 444
437 445
438 LocationSummary* InstantiateTypeArgumentsComp::MakeLocationSummary() const { 446 LocationSummary* InstantiateTypeArgumentsComp::MakeLocationSummary() const {
439 return NULL; 447 return NULL;
440 } 448 }
441 449
442 450
443 void InstantiateTypeArgumentsComp::EmitNativeCode(FlowGraphCompiler* compiler) { 451 void InstantiateTypeArgumentsComp::EmitNativeCode(FlowGraphCompiler* compiler) {
444 UNIMPLEMENTED(); 452 UNIMPLEMENTED();
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
507 void CatchEntryComp::EmitNativeCode(FlowGraphCompiler* compiler) { 515 void CatchEntryComp::EmitNativeCode(FlowGraphCompiler* compiler) {
508 UNIMPLEMENTED(); 516 UNIMPLEMENTED();
509 } 517 }
510 518
511 519
512 } // namespace dart 520 } // namespace dart
513 521
514 #undef __ 522 #undef __
515 523
516 #endif // defined TARGET_ARCH_X64 524 #endif // defined TARGET_ARCH_X64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698