OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 736 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
747 void LoadClassId(Register result, Register object); | 747 void LoadClassId(Register result, Register object); |
748 | 748 |
749 void LoadClassById(Register result, Register class_id); | 749 void LoadClassById(Register result, Register class_id); |
750 | 750 |
751 void LoadClass(Register result, Register object); | 751 void LoadClass(Register result, Register object); |
752 | 752 |
753 void CompareClassId(Register object, intptr_t class_id); | 753 void CompareClassId(Register object, intptr_t class_id); |
754 | 754 |
755 void LoadTaggedClassIdMayBeSmi(Register result, Register object); | 755 void LoadTaggedClassIdMayBeSmi(Register result, Register object); |
756 | 756 |
| 757 // CheckClassIs fused with optimistic SmiUntag. |
| 758 // Value in the register object is untagged optimistically. |
| 759 void SmiUntagOrCheckClass(Register object, intptr_t class_id, Label* smi); |
| 760 |
757 /* | 761 /* |
758 * Misc. functionality. | 762 * Misc. functionality. |
759 */ | 763 */ |
760 void SmiTag(Register reg) { | 764 void SmiTag(Register reg) { |
761 addq(reg, reg); | 765 addq(reg, reg); |
762 } | 766 } |
763 | 767 |
764 void SmiUntag(Register reg) { | 768 void SmiUntag(Register reg) { |
765 sarq(reg, Immediate(kSmiTagSize)); | 769 sarq(reg, Immediate(kSmiTagSize)); |
766 } | 770 } |
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1114 } | 1118 } |
1115 | 1119 |
1116 | 1120 |
1117 inline void Assembler::EmitOperandSizeOverride() { | 1121 inline void Assembler::EmitOperandSizeOverride() { |
1118 EmitUint8(0x66); | 1122 EmitUint8(0x66); |
1119 } | 1123 } |
1120 | 1124 |
1121 } // namespace dart | 1125 } // namespace dart |
1122 | 1126 |
1123 #endif // VM_ASSEMBLER_X64_H_ | 1127 #endif // VM_ASSEMBLER_X64_H_ |
OLD | NEW |