| 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 708 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 719 void EnterStubFrame(); | 719 void EnterStubFrame(); |
| 720 | 720 |
| 721 // Instruction pattern from entrypoint is used in dart frame prologs | 721 // Instruction pattern from entrypoint is used in dart frame prologs |
| 722 // to set up the frame and save a PC which can be used to figure out the | 722 // to set up the frame and save a PC which can be used to figure out the |
| 723 // RawInstruction object corresponding to the code running in the frame. | 723 // RawInstruction object corresponding to the code running in the frame. |
| 724 // entrypoint: | 724 // entrypoint: |
| 725 // pushl ebp (size is 1 byte) | 725 // pushl ebp (size is 1 byte) |
| 726 // movl ebp, esp (size is 2 bytes) | 726 // movl ebp, esp (size is 2 bytes) |
| 727 // call L (size is 5 bytes) | 727 // call L (size is 5 bytes) |
| 728 // L: | 728 // L: |
| 729 static const intptr_t kOffsetOfSavedPCfromEntrypoint = 8; | 729 static const intptr_t kEntryPointToPcMarkerOffset = 8; |
| 730 | 730 |
| 731 // Inlined allocation of an instance of class 'cls', code has no runtime | 731 // Inlined allocation of an instance of class 'cls', code has no runtime |
| 732 // calls. Jump to 'failure' if the instance cannot be allocated here. | 732 // calls. Jump to 'failure' if the instance cannot be allocated here. |
| 733 // Allocated instance is returned in 'instance_reg'. | 733 // Allocated instance is returned in 'instance_reg'. |
| 734 // Only the tags field of the object is initialized. | 734 // Only the tags field of the object is initialized. |
| 735 void TryAllocate(const Class& cls, | 735 void TryAllocate(const Class& cls, |
| 736 Label* failure, | 736 Label* failure, |
| 737 bool near_jump, | 737 bool near_jump, |
| 738 Register instance_reg); | 738 Register instance_reg); |
| 739 | 739 |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 828 } | 828 } |
| 829 | 829 |
| 830 | 830 |
| 831 inline void Assembler::EmitOperandSizeOverride() { | 831 inline void Assembler::EmitOperandSizeOverride() { |
| 832 EmitUint8(0x66); | 832 EmitUint8(0x66); |
| 833 } | 833 } |
| 834 | 834 |
| 835 } // namespace dart | 835 } // namespace dart |
| 836 | 836 |
| 837 #endif // VM_ASSEMBLER_IA32_H_ | 837 #endif // VM_ASSEMBLER_IA32_H_ |
| OLD | NEW |