| 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_X64_H_ | 5 #ifndef VM_ASSEMBLER_X64_H_ |
| 6 #define VM_ASSEMBLER_X64_H_ | 6 #define VM_ASSEMBLER_X64_H_ |
| 7 | 7 |
| 8 #ifndef VM_ASSEMBLER_H_ | 8 #ifndef VM_ASSEMBLER_H_ |
| 9 #error Do not include assembler_x64.h directly; use assembler.h instead. | 9 #error Do not include assembler_x64.h directly; use assembler.h instead. |
| 10 #endif | 10 #endif |
| (...skipping 755 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 766 const ExternalLabel* label, | 766 const ExternalLabel* label, |
| 767 Patchability patchable); | 767 Patchability patchable); |
| 768 void LoadFunctionFromCalleePool(Register dst, | 768 void LoadFunctionFromCalleePool(Register dst, |
| 769 const Function& function, | 769 const Function& function, |
| 770 Register new_pp); | 770 Register new_pp); |
| 771 void JmpPatchable(const StubEntry& stub_entry, Register pp); | 771 void JmpPatchable(const StubEntry& stub_entry, Register pp); |
| 772 void Jmp(const StubEntry& stub_entry, Register pp = PP); | 772 void Jmp(const StubEntry& stub_entry, Register pp = PP); |
| 773 void J(Condition condition, const StubEntry& stub_entry, Register pp); | 773 void J(Condition condition, const StubEntry& stub_entry, Register pp); |
| 774 void CallPatchable(const StubEntry& stub_entry); | 774 void CallPatchable(const StubEntry& stub_entry); |
| 775 void Call(const StubEntry& stub_entry); | 775 void Call(const StubEntry& stub_entry); |
| 776 // Emit a call that shares its object pool entries with other calls |
| 777 // that have the same equivalence marker. |
| 778 void CallWithEquivalence(const StubEntry& stub_entry, |
| 779 const Object& equivalence); |
| 776 // Unaware of write barrier (use StoreInto* methods for storing to objects). | 780 // Unaware of write barrier (use StoreInto* methods for storing to objects). |
| 777 // TODO(koda): Add StackAddress/HeapAddress types to prevent misuse. | 781 // TODO(koda): Add StackAddress/HeapAddress types to prevent misuse. |
| 778 void StoreObject(const Address& dst, const Object& obj); | 782 void StoreObject(const Address& dst, const Object& obj); |
| 779 void PushObject(const Object& object); | 783 void PushObject(const Object& object); |
| 780 void CompareObject(Register reg, const Object& object); | 784 void CompareObject(Register reg, const Object& object); |
| 781 | 785 |
| 782 // When storing into a heap object field, knowledge of the previous content | 786 // When storing into a heap object field, knowledge of the previous content |
| 783 // is expressed through these constants. | 787 // is expressed through these constants. |
| 784 enum FieldContent { | 788 enum FieldContent { |
| 785 kEmptyOrSmiOrNull, // Empty = garbage/zapped in release/debug mode. | 789 kEmptyOrSmiOrNull, // Empty = garbage/zapped in release/debug mode. |
| (...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1200 } | 1204 } |
| 1201 | 1205 |
| 1202 | 1206 |
| 1203 inline void Assembler::EmitOperandSizeOverride() { | 1207 inline void Assembler::EmitOperandSizeOverride() { |
| 1204 EmitUint8(0x66); | 1208 EmitUint8(0x66); |
| 1205 } | 1209 } |
| 1206 | 1210 |
| 1207 } // namespace dart | 1211 } // namespace dart |
| 1208 | 1212 |
| 1209 #endif // VM_ASSEMBLER_X64_H_ | 1213 #endif // VM_ASSEMBLER_X64_H_ |
| OLD | NEW |