OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 | 230 |
231 // Push and pop the registers that can hold pointers. | 231 // Push and pop the registers that can hold pointers. |
232 void PushSafepointRegisters() { pushad(); } | 232 void PushSafepointRegisters() { pushad(); } |
233 void PopSafepointRegisters() { popad(); } | 233 void PopSafepointRegisters() { popad(); } |
234 // Store the value in register/immediate src in the safepoint | 234 // Store the value in register/immediate src in the safepoint |
235 // register stack slot for register dst. | 235 // register stack slot for register dst. |
236 void StoreToSafepointRegisterSlot(Register dst, Register src); | 236 void StoreToSafepointRegisterSlot(Register dst, Register src); |
237 void StoreToSafepointRegisterSlot(Register dst, Immediate src); | 237 void StoreToSafepointRegisterSlot(Register dst, Immediate src); |
238 void LoadFromSafepointRegisterSlot(Register dst, Register src); | 238 void LoadFromSafepointRegisterSlot(Register dst, Register src); |
239 | 239 |
| 240 void LoadHeapObject(Register result, Handle<HeapObject> object); |
| 241 void PushHeapObject(Handle<HeapObject> object); |
| 242 |
240 // --------------------------------------------------------------------------- | 243 // --------------------------------------------------------------------------- |
241 // JavaScript invokes | 244 // JavaScript invokes |
242 | 245 |
243 // Setup call kind marking in ecx. The method takes ecx as an | 246 // Setup call kind marking in ecx. The method takes ecx as an |
244 // explicit first parameter to make the code more readable at the | 247 // explicit first parameter to make the code more readable at the |
245 // call sites. | 248 // call sites. |
246 void SetCallKind(Register dst, CallKind kind); | 249 void SetCallKind(Register dst, CallKind kind); |
247 | 250 |
248 // Invoke the JavaScript function code by either calling or jumping. | 251 // Invoke the JavaScript function code by either calling or jumping. |
249 void InvokeCode(Register code, | 252 void InvokeCode(Register code, |
(...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
742 | 745 |
743 // Emit call to the code we are currently generating. | 746 // Emit call to the code we are currently generating. |
744 void CallSelf() { | 747 void CallSelf() { |
745 Handle<Code> self(reinterpret_cast<Code**>(CodeObject().location())); | 748 Handle<Code> self(reinterpret_cast<Code**>(CodeObject().location())); |
746 call(self, RelocInfo::CODE_TARGET); | 749 call(self, RelocInfo::CODE_TARGET); |
747 } | 750 } |
748 | 751 |
749 // Move if the registers are not identical. | 752 // Move if the registers are not identical. |
750 void Move(Register target, Register source); | 753 void Move(Register target, Register source); |
751 | 754 |
752 void Move(Register target, Handle<Object> value); | |
753 | |
754 // Push a handle value. | 755 // Push a handle value. |
755 void Push(Handle<Object> handle) { push(handle); } | 756 void Push(Handle<Object> handle) { push(Immediate(handle)); } |
756 | 757 |
757 Handle<Object> CodeObject() { | 758 Handle<Object> CodeObject() { |
758 ASSERT(!code_object_.is_null()); | 759 ASSERT(!code_object_.is_null()); |
759 return code_object_; | 760 return code_object_; |
760 } | 761 } |
761 | 762 |
762 | 763 |
763 // --------------------------------------------------------------------------- | 764 // --------------------------------------------------------------------------- |
764 // StatsCounter support | 765 // StatsCounter support |
765 | 766 |
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
954 } \ | 955 } \ |
955 masm-> | 956 masm-> |
956 #else | 957 #else |
957 #define ACCESS_MASM(masm) masm-> | 958 #define ACCESS_MASM(masm) masm-> |
958 #endif | 959 #endif |
959 | 960 |
960 | 961 |
961 } } // namespace v8::internal | 962 } } // namespace v8::internal |
962 | 963 |
963 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 964 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
OLD | NEW |