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 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
711 | 714 |
712 // Emit call to the code we are currently generating. | 715 // Emit call to the code we are currently generating. |
713 void CallSelf() { | 716 void CallSelf() { |
714 Handle<Code> self(reinterpret_cast<Code**>(CodeObject().location())); | 717 Handle<Code> self(reinterpret_cast<Code**>(CodeObject().location())); |
715 call(self, RelocInfo::CODE_TARGET); | 718 call(self, RelocInfo::CODE_TARGET); |
716 } | 719 } |
717 | 720 |
718 // Move if the registers are not identical. | 721 // Move if the registers are not identical. |
719 void Move(Register target, Register source); | 722 void Move(Register target, Register source); |
720 | 723 |
721 void Move(Register target, Handle<Object> value); | |
722 | |
723 // Push a handle value. | 724 // Push a handle value. |
724 void Push(Handle<Object> handle) { push(handle); } | 725 void Push(Handle<Object> handle) { push(Immediate(handle)); } |
725 | 726 |
726 Handle<Object> CodeObject() { | 727 Handle<Object> CodeObject() { |
727 ASSERT(!code_object_.is_null()); | 728 ASSERT(!code_object_.is_null()); |
728 return code_object_; | 729 return code_object_; |
729 } | 730 } |
730 | 731 |
731 | 732 |
732 // --------------------------------------------------------------------------- | 733 // --------------------------------------------------------------------------- |
733 // StatsCounter support | 734 // StatsCounter support |
734 | 735 |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
927 } \ | 928 } \ |
928 masm-> | 929 masm-> |
929 #else | 930 #else |
930 #define ACCESS_MASM(masm) masm-> | 931 #define ACCESS_MASM(masm) masm-> |
931 #endif | 932 #endif |
932 | 933 |
933 | 934 |
934 } } // namespace v8::internal | 935 } } // namespace v8::internal |
935 | 936 |
936 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 937 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
OLD | NEW |