| 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 679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 690 | 690 |
| 691 void LoadClassById(Register result, Register class_id); | 691 void LoadClassById(Register result, Register class_id); |
| 692 | 692 |
| 693 void LoadClass(Register result, Register object, Register scratch); | 693 void LoadClass(Register result, Register object, Register scratch); |
| 694 | 694 |
| 695 void CompareClassId(Register object, intptr_t class_id, Register scratch); | 695 void CompareClassId(Register object, intptr_t class_id, Register scratch); |
| 696 | 696 |
| 697 void LoadTaggedClassIdMayBeSmi(Register result, | 697 void LoadTaggedClassIdMayBeSmi(Register result, |
| 698 Register object); | 698 Register object); |
| 699 | 699 |
| 700 static Address ElementAddressForIntIndex(bool is_external, |
| 701 intptr_t cid, |
| 702 intptr_t index_scale, |
| 703 Register array, |
| 704 intptr_t index); |
| 705 |
| 706 static Address ElementAddressForRegIndex(bool is_external, |
| 707 intptr_t cid, |
| 708 intptr_t index_scale, |
| 709 Register array, |
| 710 Register index); |
| 711 |
| 700 /* | 712 /* |
| 701 * Misc. functionality | 713 * Misc. functionality |
| 702 */ | 714 */ |
| 703 void SmiTag(Register reg) { | 715 void SmiTag(Register reg) { |
| 704 addl(reg, reg); | 716 addl(reg, reg); |
| 705 } | 717 } |
| 706 | 718 |
| 707 void SmiUntag(Register reg) { | 719 void SmiUntag(Register reg) { |
| 708 sarl(reg, Immediate(kSmiTagSize)); | 720 sarl(reg, Immediate(kSmiTagSize)); |
| 709 } | 721 } |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 904 } | 916 } |
| 905 | 917 |
| 906 | 918 |
| 907 inline void Assembler::EmitOperandSizeOverride() { | 919 inline void Assembler::EmitOperandSizeOverride() { |
| 908 EmitUint8(0x66); | 920 EmitUint8(0x66); |
| 909 } | 921 } |
| 910 | 922 |
| 911 } // namespace dart | 923 } // namespace dart |
| 912 | 924 |
| 913 #endif // VM_ASSEMBLER_IA32_H_ | 925 #endif // VM_ASSEMBLER_IA32_H_ |
| OLD | NEW |