| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_X87_MACRO_ASSEMBLER_X87_H_ | 5 #ifndef V8_X87_MACRO_ASSEMBLER_X87_H_ |
| 6 #define V8_X87_MACRO_ASSEMBLER_X87_H_ | 6 #define V8_X87_MACRO_ASSEMBLER_X87_H_ |
| 7 | 7 |
| 8 #include "src/assembler.h" | 8 #include "src/assembler.h" |
| 9 #include "src/bailout-reason.h" | 9 #include "src/bailout-reason.h" |
| 10 #include "src/frames.h" | 10 #include "src/frames.h" |
| (...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 | 264 |
| 265 // Push and pop the registers that can hold pointers. | 265 // Push and pop the registers that can hold pointers. |
| 266 void PushSafepointRegisters() { pushad(); } | 266 void PushSafepointRegisters() { pushad(); } |
| 267 void PopSafepointRegisters() { popad(); } | 267 void PopSafepointRegisters() { popad(); } |
| 268 // Store the value in register/immediate src in the safepoint | 268 // Store the value in register/immediate src in the safepoint |
| 269 // register stack slot for register dst. | 269 // register stack slot for register dst. |
| 270 void StoreToSafepointRegisterSlot(Register dst, Register src); | 270 void StoreToSafepointRegisterSlot(Register dst, Register src); |
| 271 void StoreToSafepointRegisterSlot(Register dst, Immediate src); | 271 void StoreToSafepointRegisterSlot(Register dst, Immediate src); |
| 272 void LoadFromSafepointRegisterSlot(Register dst, Register src); | 272 void LoadFromSafepointRegisterSlot(Register dst, Register src); |
| 273 | 273 |
| 274 // Nop, because x87 does not have a root register. |
| 275 void InitializeRootRegister() {} |
| 276 |
| 274 void LoadHeapObject(Register result, Handle<HeapObject> object); | 277 void LoadHeapObject(Register result, Handle<HeapObject> object); |
| 275 void CmpHeapObject(Register reg, Handle<HeapObject> object); | 278 void CmpHeapObject(Register reg, Handle<HeapObject> object); |
| 276 void PushHeapObject(Handle<HeapObject> object); | 279 void PushHeapObject(Handle<HeapObject> object); |
| 277 | 280 |
| 278 void LoadObject(Register result, Handle<Object> object) { | 281 void LoadObject(Register result, Handle<Object> object) { |
| 279 AllowDeferredHandleDereference heap_object_check; | 282 AllowDeferredHandleDereference heap_object_check; |
| 280 if (object->IsHeapObject()) { | 283 if (object->IsHeapObject()) { |
| 281 LoadHeapObject(result, Handle<HeapObject>::cast(object)); | 284 LoadHeapObject(result, Handle<HeapObject>::cast(object)); |
| 282 } else { | 285 } else { |
| 283 Move(result, Immediate(object)); | 286 Move(result, Immediate(object)); |
| (...skipping 700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 984 } \ | 987 } \ |
| 985 masm-> | 988 masm-> |
| 986 #else | 989 #else |
| 987 #define ACCESS_MASM(masm) masm-> | 990 #define ACCESS_MASM(masm) masm-> |
| 988 #endif | 991 #endif |
| 989 | 992 |
| 990 } // namespace internal | 993 } // namespace internal |
| 991 } // namespace v8 | 994 } // namespace v8 |
| 992 | 995 |
| 993 #endif // V8_X87_MACRO_ASSEMBLER_X87_H_ | 996 #endif // V8_X87_MACRO_ASSEMBLER_X87_H_ |
| OLD | NEW |