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 void SmiUntagOrCheckClass(Register object, |
| 701 intptr_t class_id, |
| 702 Register scratch, |
| 703 Label* is_smi); |
| 704 |
700 static Address ElementAddressForIntIndex(bool is_external, | 705 static Address ElementAddressForIntIndex(bool is_external, |
701 intptr_t cid, | 706 intptr_t cid, |
702 intptr_t index_scale, | 707 intptr_t index_scale, |
703 Register array, | 708 Register array, |
704 intptr_t index); | 709 intptr_t index); |
705 | 710 |
706 static Address ElementAddressForRegIndex(bool is_external, | 711 static Address ElementAddressForRegIndex(bool is_external, |
707 intptr_t cid, | 712 intptr_t cid, |
708 intptr_t index_scale, | 713 intptr_t index_scale, |
709 Register array, | 714 Register array, |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
940 } | 945 } |
941 | 946 |
942 | 947 |
943 inline void Assembler::EmitOperandSizeOverride() { | 948 inline void Assembler::EmitOperandSizeOverride() { |
944 EmitUint8(0x66); | 949 EmitUint8(0x66); |
945 } | 950 } |
946 | 951 |
947 } // namespace dart | 952 } // namespace dart |
948 | 953 |
949 #endif // VM_ASSEMBLER_IA32_H_ | 954 #endif // VM_ASSEMBLER_IA32_H_ |
OLD | NEW |