| 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. |
| 529 void PreserveCallerSavedRegisters(); |
| 530 void RestoreCallerSavedRegisters(); |
| 531 |
| 528 void CallRuntime(const RuntimeEntry& entry); | 532 void CallRuntime(const RuntimeEntry& entry); |
| 529 | 533 |
| 530 /* | 534 /* |
| 531 * Loading and comparing classes of objects. | 535 * Loading and comparing classes of objects. |
| 532 */ | 536 */ |
| 533 void LoadClassId(Register result, Register object); | 537 void LoadClassId(Register result, Register object); |
| 534 | 538 |
| 535 void LoadClassById(Register result, Register class_id); | 539 void LoadClassById(Register result, Register class_id); |
| 536 | 540 |
| 537 void LoadClass(Register result, Register object, Register scratch); | 541 void LoadClass(Register result, Register object, Register scratch); |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 645 } | 649 } |
| 646 | 650 |
| 647 | 651 |
| 648 inline void Assembler::EmitOperandSizeOverride() { | 652 inline void Assembler::EmitOperandSizeOverride() { |
| 649 EmitUint8(0x66); | 653 EmitUint8(0x66); |
| 650 } | 654 } |
| 651 | 655 |
| 652 } // namespace dart | 656 } // namespace dart |
| 653 | 657 |
| 654 #endif // VM_ASSEMBLER_IA32_H_ | 658 #endif // VM_ASSEMBLER_IA32_H_ |
| OLD | NEW |