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_IA32 | 7 #if V8_TARGET_ARCH_IA32 |
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 4483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4494 masm->LeaveFrame(StackFrame::STUB_FAILURE_TRAMPOLINE); | 4494 masm->LeaveFrame(StackFrame::STUB_FAILURE_TRAMPOLINE); |
4495 __ pop(ecx); | 4495 __ pop(ecx); |
4496 int additional_offset = function_mode_ == JS_FUNCTION_STUB_MODE | 4496 int additional_offset = function_mode_ == JS_FUNCTION_STUB_MODE |
4497 ? kPointerSize | 4497 ? kPointerSize |
4498 : 0; | 4498 : 0; |
4499 __ lea(esp, MemOperand(esp, ebx, times_pointer_size, additional_offset)); | 4499 __ lea(esp, MemOperand(esp, ebx, times_pointer_size, additional_offset)); |
4500 __ jmp(ecx); // Return to IC Miss stub, continuation still on stack. | 4500 __ jmp(ecx); // Return to IC Miss stub, continuation still on stack. |
4501 } | 4501 } |
4502 | 4502 |
4503 | 4503 |
| 4504 void LoadICTrampolineStub::Generate(MacroAssembler* masm) { |
| 4505 EmitLoadTypeFeedbackVector(masm, FullVectorLoadConvention::VectorRegister()); |
| 4506 if (GetCodeKind() == Code::KEYED_LOAD_IC) { |
| 4507 VectorKeyedLoadStub stub(isolate()); |
| 4508 __ jmp(stub.GetCode(), RelocInfo::CODE_TARGET); |
| 4509 } else { |
| 4510 DCHECK(GetCodeKind() == Code::LOAD_IC); |
| 4511 VectorLoadStub stub(isolate(), state_); |
| 4512 __ jmp(stub.GetCode(), RelocInfo::CODE_TARGET); |
| 4513 } |
| 4514 } |
| 4515 |
| 4516 |
4504 void ProfileEntryHookStub::MaybeCallEntryHook(MacroAssembler* masm) { | 4517 void ProfileEntryHookStub::MaybeCallEntryHook(MacroAssembler* masm) { |
4505 if (masm->isolate()->function_entry_hook() != NULL) { | 4518 if (masm->isolate()->function_entry_hook() != NULL) { |
4506 ProfileEntryHookStub stub(masm->isolate()); | 4519 ProfileEntryHookStub stub(masm->isolate()); |
4507 masm->CallStub(&stub); | 4520 masm->CallStub(&stub); |
4508 } | 4521 } |
4509 } | 4522 } |
4510 | 4523 |
4511 | 4524 |
4512 void ProfileEntryHookStub::Generate(MacroAssembler* masm) { | 4525 void ProfileEntryHookStub::Generate(MacroAssembler* masm) { |
4513 // Save volatile registers. | 4526 // Save volatile registers. |
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5005 Operand(ebp, 7 * kPointerSize), | 5018 Operand(ebp, 7 * kPointerSize), |
5006 NULL); | 5019 NULL); |
5007 } | 5020 } |
5008 | 5021 |
5009 | 5022 |
5010 #undef __ | 5023 #undef __ |
5011 | 5024 |
5012 } } // namespace v8::internal | 5025 } } // namespace v8::internal |
5013 | 5026 |
5014 #endif // V8_TARGET_ARCH_IA32 | 5027 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |