| 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_IA32_H_ | 5 #ifndef VM_ASSEMBLER_IA32_H_ |
| 6 #define VM_ASSEMBLER_IA32_H_ | 6 #define VM_ASSEMBLER_IA32_H_ |
| 7 | 7 |
| 8 #ifndef VM_ASSEMBLER_H_ | 8 #ifndef VM_ASSEMBLER_H_ |
| 9 #error Do not include assembler_ia32.h directly; use assembler.h instead. | 9 #error Do not include assembler_ia32.h directly; use assembler.h instead. |
| 10 #endif | 10 #endif |
| (...skipping 668 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 679 * Loading and comparing classes of objects. | 679 * Loading and comparing classes of objects. |
| 680 */ | 680 */ |
| 681 void LoadClassId(Register result, Register object); | 681 void LoadClassId(Register result, Register object); |
| 682 | 682 |
| 683 void LoadClassById(Register result, Register class_id); | 683 void LoadClassById(Register result, Register class_id); |
| 684 | 684 |
| 685 void LoadClass(Register result, Register object, Register scratch); | 685 void LoadClass(Register result, Register object, Register scratch); |
| 686 | 686 |
| 687 void CompareClassId(Register object, intptr_t class_id, Register scratch); | 687 void CompareClassId(Register object, intptr_t class_id, Register scratch); |
| 688 | 688 |
| 689 void LoadTaggedClassIdMayBeSmi(Register result, Register object); |
| 690 |
| 689 /* | 691 /* |
| 690 * Misc. functionality | 692 * Misc. functionality |
| 691 */ | 693 */ |
| 692 void SmiTag(Register reg) { | 694 void SmiTag(Register reg) { |
| 693 addl(reg, reg); | 695 addl(reg, reg); |
| 694 } | 696 } |
| 695 | 697 |
| 696 void SmiUntag(Register reg) { | 698 void SmiUntag(Register reg) { |
| 697 sarl(reg, Immediate(kSmiTagSize)); | 699 sarl(reg, Immediate(kSmiTagSize)); |
| 698 } | 700 } |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 893 } | 895 } |
| 894 | 896 |
| 895 | 897 |
| 896 inline void Assembler::EmitOperandSizeOverride() { | 898 inline void Assembler::EmitOperandSizeOverride() { |
| 897 EmitUint8(0x66); | 899 EmitUint8(0x66); |
| 898 } | 900 } |
| 899 | 901 |
| 900 } // namespace dart | 902 } // namespace dart |
| 901 | 903 |
| 902 #endif // VM_ASSEMBLER_IA32_H_ | 904 #endif // VM_ASSEMBLER_IA32_H_ |
| OLD | NEW |