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

Side by Side Diff: runtime/vm/assembler_x64.h

Issue 10458031: In generated code for x64 don't load object's class directly from class_ field. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Eliminate CoreClass helpers on ia32/x64 and use class ids for array classes. Created 8 years, 6 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/assembler_ia32.cc ('k') | runtime/vm/assembler_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 #ifndef VM_ASSEMBLER_X64_H_ 5 #ifndef VM_ASSEMBLER_X64_H_
6 #define VM_ASSEMBLER_X64_H_ 6 #define VM_ASSEMBLER_X64_H_
7 7
8 #ifndef VM_ASSEMBLER_H_ 8 #ifndef VM_ASSEMBLER_H_
9 #error Do not include assembler_x64.h directly; use assembler.h instead. 9 #error Do not include assembler_x64.h directly; use assembler.h instead.
10 #endif 10 #endif
(...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after
512 lock(); 512 lock();
513 cmpxchgl(address, reg); 513 cmpxchgl(address, reg);
514 } 514 }
515 515
516 void EnterFrame(intptr_t frame_space); 516 void EnterFrame(intptr_t frame_space);
517 void LeaveFrame(); 517 void LeaveFrame();
518 518
519 void CallRuntime(const RuntimeEntry& entry); 519 void CallRuntime(const RuntimeEntry& entry);
520 520
521 /* 521 /*
522 * Loading and comparing classes of objects.
523 */
524 void LoadClassId(Register result, Register object);
525
526 void LoadClassById(Register result, Register class_id);
527
528 void LoadClass(Register result, Register object);
529
530 void CompareClassId(Register object, intptr_t class_id);
531
532 /*
522 * Misc. functionality. 533 * Misc. functionality.
523 */ 534 */
524 void SmiTag(Register reg) { 535 void SmiTag(Register reg) {
525 addq(reg, reg); 536 addq(reg, reg);
526 } 537 }
527 538
528 void SmiUntag(Register reg) { 539 void SmiUntag(Register reg) {
529 sarq(reg, Immediate(kSmiTagSize)); 540 sarq(reg, Immediate(kSmiTagSize));
530 } 541 }
531 542
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
636 } 647 }
637 648
638 649
639 inline void Assembler::EmitOperandSizeOverride() { 650 inline void Assembler::EmitOperandSizeOverride() {
640 EmitUint8(0x66); 651 EmitUint8(0x66);
641 } 652 }
642 653
643 } // namespace dart 654 } // namespace dart
644 655
645 #endif // VM_ASSEMBLER_X64_H_ 656 #endif // VM_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « runtime/vm/assembler_ia32.cc ('k') | runtime/vm/assembler_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698