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 #if V8_TARGET_ARCH_X87 | 5 #if V8_TARGET_ARCH_X87 |
6 | 6 |
7 #include "src/code-stubs.h" | 7 #include "src/code-stubs.h" |
8 #include "src/api-arguments.h" | 8 #include "src/api-arguments.h" |
9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
10 #include "src/bootstrapper.h" | 10 #include "src/bootstrapper.h" |
(...skipping 2719 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2730 StubFailureTrampolineFrameConstants::kArgumentsLengthOffset; | 2730 StubFailureTrampolineFrameConstants::kArgumentsLengthOffset; |
2731 __ mov(ebx, MemOperand(ebp, parameter_count_offset)); | 2731 __ mov(ebx, MemOperand(ebp, parameter_count_offset)); |
2732 masm->LeaveFrame(StackFrame::STUB_FAILURE_TRAMPOLINE); | 2732 masm->LeaveFrame(StackFrame::STUB_FAILURE_TRAMPOLINE); |
2733 __ pop(ecx); | 2733 __ pop(ecx); |
2734 int additional_offset = | 2734 int additional_offset = |
2735 function_mode() == JS_FUNCTION_STUB_MODE ? kPointerSize : 0; | 2735 function_mode() == JS_FUNCTION_STUB_MODE ? kPointerSize : 0; |
2736 __ lea(esp, MemOperand(esp, ebx, times_pointer_size, additional_offset)); | 2736 __ lea(esp, MemOperand(esp, ebx, times_pointer_size, additional_offset)); |
2737 __ jmp(ecx); // Return to IC Miss stub, continuation still on stack. | 2737 __ jmp(ecx); // Return to IC Miss stub, continuation still on stack. |
2738 } | 2738 } |
2739 | 2739 |
2740 void CallICTrampolineStub::Generate(MacroAssembler* masm) { | |
2741 __ EmitLoadTypeFeedbackVector(ebx); | |
2742 CallICStub stub(isolate(), state()); | |
2743 __ jmp(stub.GetCode(), RelocInfo::CODE_TARGET); | |
2744 } | |
2745 | |
2746 void ProfileEntryHookStub::MaybeCallEntryHook(MacroAssembler* masm) { | 2740 void ProfileEntryHookStub::MaybeCallEntryHook(MacroAssembler* masm) { |
2747 if (masm->isolate()->function_entry_hook() != NULL) { | 2741 if (masm->isolate()->function_entry_hook() != NULL) { |
2748 ProfileEntryHookStub stub(masm->isolate()); | 2742 ProfileEntryHookStub stub(masm->isolate()); |
2749 masm->CallStub(&stub); | 2743 masm->CallStub(&stub); |
2750 } | 2744 } |
2751 } | 2745 } |
2752 | 2746 |
2753 void ProfileEntryHookStub::Generate(MacroAssembler* masm) { | 2747 void ProfileEntryHookStub::Generate(MacroAssembler* masm) { |
2754 // Save volatile registers. | 2748 // Save volatile registers. |
2755 const int kNumSavedRegisters = 3; | 2749 const int kNumSavedRegisters = 3; |
(...skipping 1249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4005 kStackUnwindSpace, nullptr, return_value_operand, | 3999 kStackUnwindSpace, nullptr, return_value_operand, |
4006 NULL); | 4000 NULL); |
4007 } | 4001 } |
4008 | 4002 |
4009 #undef __ | 4003 #undef __ |
4010 | 4004 |
4011 } // namespace internal | 4005 } // namespace internal |
4012 } // namespace v8 | 4006 } // namespace v8 |
4013 | 4007 |
4014 #endif // V8_TARGET_ARCH_X87 | 4008 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |