| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |