| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 493 void j(Condition condition, const ExternalLabel* label); | 493 void j(Condition condition, const ExternalLabel* label); |
| 494 | 494 |
| 495 void jmp(Register reg); | 495 void jmp(Register reg); |
| 496 void jmp(Label* label, bool near = kFarJump); | 496 void jmp(Label* label, bool near = kFarJump); |
| 497 void jmp(const ExternalLabel* label); | 497 void jmp(const ExternalLabel* label); |
| 498 | 498 |
| 499 void lock(); | 499 void lock(); |
| 500 void cmpxchgl(const Address& address, Register reg); | 500 void cmpxchgl(const Address& address, Register reg); |
| 501 | 501 |
| 502 /* | 502 /* |
| 503 * Macros for High-level operations. | 503 * Macros for High-level operations and implemented on all architectures. |
| 504 */ | 504 */ |
| 505 |
| 506 void CompareRegisters(Register a, Register b); |
| 507 |
| 508 // Issues a move instruction if 'to' is not the same as 'from'. |
| 509 void MoveRegister(Register to, Register from); |
| 510 |
| 505 void AddImmediate(Register reg, const Immediate& imm); | 511 void AddImmediate(Register reg, const Immediate& imm); |
| 506 | 512 |
| 507 void Drop(intptr_t stack_elements); | 513 void Drop(intptr_t stack_elements); |
| 508 | 514 |
| 509 void LoadObject(Register dst, const Object& object); | 515 void LoadObject(Register dst, const Object& object); |
| 510 void PushObject(const Object& object); | 516 void PushObject(const Object& object); |
| 511 void CompareObject(Register reg, const Object& object); | 517 void CompareObject(Register reg, const Object& object); |
| 512 void LoadDoubleConstant(XmmRegister dst, double value); | 518 void LoadDoubleConstant(XmmRegister dst, double value); |
| 513 | 519 |
| 514 void StoreIntoObject(Register object, // Object we are storing into. | 520 void StoreIntoObject(Register object, // Object we are storing into. |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 648 } | 654 } |
| 649 | 655 |
| 650 | 656 |
| 651 inline void Assembler::EmitOperandSizeOverride() { | 657 inline void Assembler::EmitOperandSizeOverride() { |
| 652 EmitUint8(0x66); | 658 EmitUint8(0x66); |
| 653 } | 659 } |
| 654 | 660 |
| 655 } // namespace dart | 661 } // namespace dart |
| 656 | 662 |
| 657 #endif // VM_ASSEMBLER_IA32_H_ | 663 #endif // VM_ASSEMBLER_IA32_H_ |
| OLD | NEW |