| 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 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 518 | 518 |
| 519 void LockCmpxchgl(const Address& address, Register reg) { | 519 void LockCmpxchgl(const Address& address, Register reg) { |
| 520 lock(); | 520 lock(); |
| 521 cmpxchgl(address, reg); | 521 cmpxchgl(address, reg); |
| 522 } | 522 } |
| 523 | 523 |
| 524 void EnterFrame(intptr_t frame_space); | 524 void EnterFrame(intptr_t frame_space); |
| 525 void LeaveFrame(); | 525 void LeaveFrame(); |
| 526 void ReserveAlignedFrameSpace(intptr_t frame_space); | 526 void ReserveAlignedFrameSpace(intptr_t frame_space); |
| 527 | 527 |
| 528 // Preserve and restore caller save registers according to the C ABI. | 528 // Create a frame for calling into runtime that preserves all volatile |
| 529 void PreserveCallerSavedRegisters(); | 529 // registers. Frame's RSP is guaranteed to be correctly aligned and |
| 530 void RestoreCallerSavedRegisters(); | 530 // frame_space bytes are reserved under it. |
| 531 void EnterCallRuntimeFrame(intptr_t frame_space); |
| 532 void LeaveCallRuntimeFrame(); |
| 531 | 533 |
| 532 void CallRuntime(const RuntimeEntry& entry); | 534 void CallRuntime(const RuntimeEntry& entry); |
| 533 | 535 |
| 534 /* | 536 /* |
| 535 * Loading and comparing classes of objects. | 537 * Loading and comparing classes of objects. |
| 536 */ | 538 */ |
| 537 void LoadClassId(Register result, Register object); | 539 void LoadClassId(Register result, Register object); |
| 538 | 540 |
| 539 void LoadClassById(Register result, Register class_id); | 541 void LoadClassById(Register result, Register class_id); |
| 540 | 542 |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 651 } | 653 } |
| 652 | 654 |
| 653 | 655 |
| 654 inline void Assembler::EmitOperandSizeOverride() { | 656 inline void Assembler::EmitOperandSizeOverride() { |
| 655 EmitUint8(0x66); | 657 EmitUint8(0x66); |
| 656 } | 658 } |
| 657 | 659 |
| 658 } // namespace dart | 660 } // namespace dart |
| 659 | 661 |
| 660 #endif // VM_ASSEMBLER_IA32_H_ | 662 #endif // VM_ASSEMBLER_IA32_H_ |
| OLD | NEW |