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 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_X87 | 7 #if V8_TARGET_ARCH_X87 |
8 | 8 |
9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
(...skipping 4122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4133 __ mov(ebx, MemOperand(ebp, parameter_count_offset)); | 4133 __ mov(ebx, MemOperand(ebp, parameter_count_offset)); |
4134 masm->LeaveFrame(StackFrame::STUB_FAILURE_TRAMPOLINE); | 4134 masm->LeaveFrame(StackFrame::STUB_FAILURE_TRAMPOLINE); |
4135 __ pop(ecx); | 4135 __ pop(ecx); |
4136 int additional_offset = | 4136 int additional_offset = |
4137 function_mode() == JS_FUNCTION_STUB_MODE ? kPointerSize : 0; | 4137 function_mode() == JS_FUNCTION_STUB_MODE ? kPointerSize : 0; |
4138 __ lea(esp, MemOperand(esp, ebx, times_pointer_size, additional_offset)); | 4138 __ lea(esp, MemOperand(esp, ebx, times_pointer_size, additional_offset)); |
4139 __ jmp(ecx); // Return to IC Miss stub, continuation still on stack. | 4139 __ jmp(ecx); // Return to IC Miss stub, continuation still on stack. |
4140 } | 4140 } |
4141 | 4141 |
4142 | 4142 |
| 4143 void LoadICTrampolineStub::Generate(MacroAssembler* masm) { |
| 4144 EmitLoadTypeFeedbackVector(masm, FullVectorLoadConvention::VectorRegister()); |
| 4145 VectorLoadStub stub(isolate(), state_); |
| 4146 __ jmp(stub.GetCode(), RelocInfo::CODE_TARGET); |
| 4147 } |
| 4148 |
| 4149 |
| 4150 void KeyedLoadICTrampolineStub::Generate(MacroAssembler* masm) { |
| 4151 EmitLoadTypeFeedbackVector(masm, FullVectorLoadConvention::VectorRegister()); |
| 4152 VectorKeyedLoadStub stub(isolate()); |
| 4153 __ jmp(stub.GetCode(), RelocInfo::CODE_TARGET); |
| 4154 } |
| 4155 |
| 4156 |
4143 void ProfileEntryHookStub::MaybeCallEntryHook(MacroAssembler* masm) { | 4157 void ProfileEntryHookStub::MaybeCallEntryHook(MacroAssembler* masm) { |
4144 if (masm->isolate()->function_entry_hook() != NULL) { | 4158 if (masm->isolate()->function_entry_hook() != NULL) { |
4145 ProfileEntryHookStub stub(masm->isolate()); | 4159 ProfileEntryHookStub stub(masm->isolate()); |
4146 masm->CallStub(&stub); | 4160 masm->CallStub(&stub); |
4147 } | 4161 } |
4148 } | 4162 } |
4149 | 4163 |
4150 | 4164 |
4151 void ProfileEntryHookStub::Generate(MacroAssembler* masm) { | 4165 void ProfileEntryHookStub::Generate(MacroAssembler* masm) { |
4152 // Save volatile registers. | 4166 // Save volatile registers. |
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4644 Operand(ebp, 7 * kPointerSize), | 4658 Operand(ebp, 7 * kPointerSize), |
4645 NULL); | 4659 NULL); |
4646 } | 4660 } |
4647 | 4661 |
4648 | 4662 |
4649 #undef __ | 4663 #undef __ |
4650 | 4664 |
4651 } } // namespace v8::internal | 4665 } } // namespace v8::internal |
4652 | 4666 |
4653 #endif // V8_TARGET_ARCH_X87 | 4667 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |