| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 // Load the global function with the given index. | 136 // Load the global function with the given index. |
| 137 void LoadGlobalFunction(int index, Register function); | 137 void LoadGlobalFunction(int index, Register function); |
| 138 | 138 |
| 139 // Load the initial map from the global function. The registers | 139 // Load the initial map from the global function. The registers |
| 140 // function and map can be the same. | 140 // function and map can be the same. |
| 141 void LoadGlobalFunctionInitialMap(Register function, Register map); | 141 void LoadGlobalFunctionInitialMap(Register function, Register map); |
| 142 | 142 |
| 143 // Push and pop the registers that can hold pointers. | 143 // Push and pop the registers that can hold pointers. |
| 144 void PushSafepointRegisters() { pushad(); } | 144 void PushSafepointRegisters() { pushad(); } |
| 145 void PopSafepointRegisters() { popad(); } | 145 void PopSafepointRegisters() { popad(); } |
| 146 static int SafepointRegisterStackIndex(int reg_code); | 146 // Store the value in register/immediate src in the safepoint |
| 147 // register stack slot for register dst. |
| 148 void StoreToSafepointRegisterSlot(Register dst, Register src); |
| 149 void StoreToSafepointRegisterSlot(Register dst, Immediate src); |
| 150 void LoadFromSafepointRegisterSlot(Register dst, Register src); |
| 147 | 151 |
| 148 // --------------------------------------------------------------------------- | 152 // --------------------------------------------------------------------------- |
| 149 // JavaScript invokes | 153 // JavaScript invokes |
| 150 | 154 |
| 151 // Invoke the JavaScript function code by either calling or jumping. | 155 // Invoke the JavaScript function code by either calling or jumping. |
| 152 void InvokeCode(const Operand& code, | 156 void InvokeCode(const Operand& code, |
| 153 const ParameterCount& expected, | 157 const ParameterCount& expected, |
| 154 const ParameterCount& actual, | 158 const ParameterCount& actual, |
| 155 InvokeFlag flag, | 159 InvokeFlag flag, |
| 156 PostCallGenerator* post_call_generator = NULL); | 160 PostCallGenerator* post_call_generator = NULL); |
| (...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 660 Register scratch, | 664 Register scratch, |
| 661 AllocationFlags flags); | 665 AllocationFlags flags); |
| 662 void UpdateAllocationTopHelper(Register result_end, Register scratch); | 666 void UpdateAllocationTopHelper(Register result_end, Register scratch); |
| 663 | 667 |
| 664 // Helper for PopHandleScope. Allowed to perform a GC and returns | 668 // Helper for PopHandleScope. Allowed to perform a GC and returns |
| 665 // NULL if gc_allowed. Does not perform a GC if !gc_allowed, and | 669 // NULL if gc_allowed. Does not perform a GC if !gc_allowed, and |
| 666 // possibly returns a failure object indicating an allocation failure. | 670 // possibly returns a failure object indicating an allocation failure. |
| 667 MUST_USE_RESULT MaybeObject* PopHandleScopeHelper(Register saved, | 671 MUST_USE_RESULT MaybeObject* PopHandleScopeHelper(Register saved, |
| 668 Register scratch, | 672 Register scratch, |
| 669 bool gc_allowed); | 673 bool gc_allowed); |
| 674 |
| 675 |
| 676 // Compute memory operands for safepoint stack slots. |
| 677 Operand SafepointRegisterSlot(Register reg); |
| 678 static int SafepointRegisterStackIndex(int reg_code); |
| 679 |
| 680 // Needs access to SafepointRegisterStackIndex for optimized frame |
| 681 // traversal. |
| 682 friend class OptimizedFrame; |
| 670 }; | 683 }; |
| 671 | 684 |
| 672 | 685 |
| 673 template <typename LabelType> | 686 template <typename LabelType> |
| 674 void MacroAssembler::InNewSpace(Register object, | 687 void MacroAssembler::InNewSpace(Register object, |
| 675 Register scratch, | 688 Register scratch, |
| 676 Condition cc, | 689 Condition cc, |
| 677 LabelType* branch) { | 690 LabelType* branch) { |
| 678 ASSERT(cc == equal || cc == not_equal); | 691 ASSERT(cc == equal || cc == not_equal); |
| 679 if (Serializer::enabled()) { | 692 if (Serializer::enabled()) { |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 776 } \ | 789 } \ |
| 777 masm-> | 790 masm-> |
| 778 #else | 791 #else |
| 779 #define ACCESS_MASM(masm) masm-> | 792 #define ACCESS_MASM(masm) masm-> |
| 780 #endif | 793 #endif |
| 781 | 794 |
| 782 | 795 |
| 783 } } // namespace v8::internal | 796 } } // namespace v8::internal |
| 784 | 797 |
| 785 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 798 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
| OLD | NEW |