| 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 621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 632 | 632 |
| 633 // Issues a move instruction if 'to' is not the same as 'from'. | 633 // Issues a move instruction if 'to' is not the same as 'from'. |
| 634 void MoveRegister(Register to, Register from); | 634 void MoveRegister(Register to, Register from); |
| 635 void PopRegister(Register r); | 635 void PopRegister(Register r); |
| 636 | 636 |
| 637 void AddImmediate(Register reg, const Immediate& imm); | 637 void AddImmediate(Register reg, const Immediate& imm); |
| 638 void SubImmediate(Register reg, const Immediate& imm); | 638 void SubImmediate(Register reg, const Immediate& imm); |
| 639 | 639 |
| 640 void Drop(intptr_t stack_elements); | 640 void Drop(intptr_t stack_elements); |
| 641 | 641 |
| 642 void LoadIsolate(Register dst); |
| 643 |
| 642 void LoadObject(Register dst, const Object& object); | 644 void LoadObject(Register dst, const Object& object); |
| 643 | 645 |
| 644 // If 'object' is a large Smi, xor it with a per-assembler cookie value to | 646 // If 'object' is a large Smi, xor it with a per-assembler cookie value to |
| 645 // prevent user-controlled immediates from appearing in the code stream. | 647 // prevent user-controlled immediates from appearing in the code stream. |
| 646 void LoadObjectSafely(Register dst, const Object& object); | 648 void LoadObjectSafely(Register dst, const Object& object); |
| 647 | 649 |
| 648 void PushObject(const Object& object); | 650 void PushObject(const Object& object); |
| 649 void CompareObject(Register reg, const Object& object); | 651 void CompareObject(Register reg, const Object& object); |
| 650 void LoadDoubleConstant(XmmRegister dst, double value); | 652 void LoadDoubleConstant(XmmRegister dst, double value); |
| 651 | 653 |
| (...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 946 } | 948 } |
| 947 | 949 |
| 948 | 950 |
| 949 inline void Assembler::EmitOperandSizeOverride() { | 951 inline void Assembler::EmitOperandSizeOverride() { |
| 950 EmitUint8(0x66); | 952 EmitUint8(0x66); |
| 951 } | 953 } |
| 952 | 954 |
| 953 } // namespace dart | 955 } // namespace dart |
| 954 | 956 |
| 955 #endif // VM_ASSEMBLER_IA32_H_ | 957 #endif // VM_ASSEMBLER_IA32_H_ |
| OLD | NEW |