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 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
524 void cpuid(); | 524 void cpuid(); |
525 | 525 |
526 /* | 526 /* |
527 * Macros for High-level operations and implemented on all architectures. | 527 * Macros for High-level operations and implemented on all architectures. |
528 */ | 528 */ |
529 | 529 |
530 void CompareRegisters(Register a, Register b); | 530 void CompareRegisters(Register a, Register b); |
531 | 531 |
532 // Issues a move instruction if 'to' is not the same as 'from'. | 532 // Issues a move instruction if 'to' is not the same as 'from'. |
533 void MoveRegister(Register to, Register from); | 533 void MoveRegister(Register to, Register from); |
534 void PushRegister(Register r); | |
535 void PopRegister(Register r); | 534 void PopRegister(Register r); |
536 | 535 |
537 void AddImmediate(Register reg, const Immediate& imm); | 536 void AddImmediate(Register reg, const Immediate& imm); |
538 | 537 |
539 void Drop(intptr_t stack_elements); | 538 void Drop(intptr_t stack_elements); |
540 | 539 |
541 void LoadObject(Register dst, const Object& object); | 540 void LoadObject(Register dst, const Object& object); |
542 void PushObject(const Object& object); | 541 void PushObject(const Object& object); |
543 void CompareObject(Register reg, const Object& object); | 542 void CompareObject(Register reg, const Object& object); |
544 void LoadDoubleConstant(XmmRegister dst, double value); | 543 void LoadDoubleConstant(XmmRegister dst, double value); |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
701 } | 700 } |
702 | 701 |
703 | 702 |
704 inline void Assembler::EmitOperandSizeOverride() { | 703 inline void Assembler::EmitOperandSizeOverride() { |
705 EmitUint8(0x66); | 704 EmitUint8(0x66); |
706 } | 705 } |
707 | 706 |
708 } // namespace dart | 707 } // namespace dart |
709 | 708 |
710 #endif // VM_ASSEMBLER_IA32_H_ | 709 #endif // VM_ASSEMBLER_IA32_H_ |
OLD | NEW |