| 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 608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 619 void leave(); | 619 void leave(); |
| 620 | 620 |
| 621 void ret(); | 621 void ret(); |
| 622 void ret(const Immediate& imm); | 622 void ret(const Immediate& imm); |
| 623 | 623 |
| 624 // 'size' indicates size in bytes and must be in the range 1..8. | 624 // 'size' indicates size in bytes and must be in the range 1..8. |
| 625 void nop(int size = 1); | 625 void nop(int size = 1); |
| 626 void int3(); | 626 void int3(); |
| 627 void hlt(); | 627 void hlt(); |
| 628 | 628 |
| 629 // Note: verified_mem mode forces far jumps. |
| 629 void j(Condition condition, Label* label, bool near = kFarJump); | 630 void j(Condition condition, Label* label, bool near = kFarJump); |
| 630 void j(Condition condition, const ExternalLabel* label); | 631 void j(Condition condition, const ExternalLabel* label); |
| 631 | 632 |
| 632 void jmp(Register reg); | 633 void jmp(Register reg); |
| 634 // Note: verified_mem mode forces far jumps. |
| 633 void jmp(Label* label, bool near = kFarJump); | 635 void jmp(Label* label, bool near = kFarJump); |
| 634 void jmp(const ExternalLabel* label); | 636 void jmp(const ExternalLabel* label); |
| 635 | 637 |
| 636 void lock(); | 638 void lock(); |
| 637 void cmpxchgl(const Address& address, Register reg); | 639 void cmpxchgl(const Address& address, Register reg); |
| 638 | 640 |
| 639 void cpuid(); | 641 void cpuid(); |
| 640 | 642 |
| 641 /* | 643 /* |
| 642 * Macros for High-level operations and implemented on all architectures. | 644 * Macros for High-level operations and implemented on all architectures. |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 922 void EmitGenericShift(int rm, Register reg, const Immediate& imm); | 924 void EmitGenericShift(int rm, Register reg, const Immediate& imm); |
| 923 void EmitGenericShift(int rm, const Operand& operand, Register shifter); | 925 void EmitGenericShift(int rm, const Operand& operand, Register shifter); |
| 924 | 926 |
| 925 void StoreIntoObjectFilter(Register object, Register value, Label* no_update); | 927 void StoreIntoObjectFilter(Register object, Register value, Label* no_update); |
| 926 | 928 |
| 927 // Shorter filtering sequence that assumes that value is not a smi. | 929 // Shorter filtering sequence that assumes that value is not a smi. |
| 928 void StoreIntoObjectFilterNoSmi(Register object, | 930 void StoreIntoObjectFilterNoSmi(Register object, |
| 929 Register value, | 931 Register value, |
| 930 Label* no_update); | 932 Label* no_update); |
| 931 | 933 |
| 932 // Private helpers for write barrier verification. | 934 // Analogous to VerifiedMemory::Verify. |
| 935 void Verify(const Address& dest); |
| 936 // Analogous to VerifiedMemory::Write. |
| 933 void VerifiedWrite(const Address& dest, Register value); | 937 void VerifiedWrite(const Address& dest, Register value); |
| 934 void UnverifiedStoreOldObject(const Address& dest, const Object& value); | 938 void UnverifiedStoreOldObject(const Address& dest, const Object& value); |
| 935 | 939 |
| 936 int32_t jit_cookie(); | 940 int32_t jit_cookie(); |
| 937 | 941 |
| 938 AssemblerBuffer buffer_; | 942 AssemblerBuffer buffer_; |
| 939 GrowableObjectArray& object_pool_; // Object pool is not used on ia32. | 943 GrowableObjectArray& object_pool_; // Object pool is not used on ia32. |
| 940 intptr_t prologue_offset_; | 944 intptr_t prologue_offset_; |
| 941 int32_t jit_cookie_; | 945 int32_t jit_cookie_; |
| 942 GrowableArray<CodeComment*> comments_; | 946 GrowableArray<CodeComment*> comments_; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 972 } | 976 } |
| 973 | 977 |
| 974 | 978 |
| 975 inline void Assembler::EmitOperandSizeOverride() { | 979 inline void Assembler::EmitOperandSizeOverride() { |
| 976 EmitUint8(0x66); | 980 EmitUint8(0x66); |
| 977 } | 981 } |
| 978 | 982 |
| 979 } // namespace dart | 983 } // namespace dart |
| 980 | 984 |
| 981 #endif // VM_ASSEMBLER_IA32_H_ | 985 #endif // VM_ASSEMBLER_IA32_H_ |
| OLD | NEW |