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_IA32 | 5 #if V8_TARGET_ARCH_IA32 |
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 2901 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2912 StubFailureTrampolineFrameConstants::kArgumentsLengthOffset; | 2912 StubFailureTrampolineFrameConstants::kArgumentsLengthOffset; |
2913 __ mov(ebx, MemOperand(ebp, parameter_count_offset)); | 2913 __ mov(ebx, MemOperand(ebp, parameter_count_offset)); |
2914 masm->LeaveFrame(StackFrame::STUB_FAILURE_TRAMPOLINE); | 2914 masm->LeaveFrame(StackFrame::STUB_FAILURE_TRAMPOLINE); |
2915 __ pop(ecx); | 2915 __ pop(ecx); |
2916 int additional_offset = | 2916 int additional_offset = |
2917 function_mode() == JS_FUNCTION_STUB_MODE ? kPointerSize : 0; | 2917 function_mode() == JS_FUNCTION_STUB_MODE ? kPointerSize : 0; |
2918 __ lea(esp, MemOperand(esp, ebx, times_pointer_size, additional_offset)); | 2918 __ lea(esp, MemOperand(esp, ebx, times_pointer_size, additional_offset)); |
2919 __ jmp(ecx); // Return to IC Miss stub, continuation still on stack. | 2919 __ jmp(ecx); // Return to IC Miss stub, continuation still on stack. |
2920 } | 2920 } |
2921 | 2921 |
2922 void CallICTrampolineStub::Generate(MacroAssembler* masm) { | |
2923 __ EmitLoadTypeFeedbackVector(ebx); | |
2924 CallICStub stub(isolate(), state()); | |
2925 __ jmp(stub.GetCode(), RelocInfo::CODE_TARGET); | |
2926 } | |
2927 | |
2928 | |
2929 void ProfileEntryHookStub::MaybeCallEntryHook(MacroAssembler* masm) { | 2922 void ProfileEntryHookStub::MaybeCallEntryHook(MacroAssembler* masm) { |
2930 if (masm->isolate()->function_entry_hook() != NULL) { | 2923 if (masm->isolate()->function_entry_hook() != NULL) { |
2931 ProfileEntryHookStub stub(masm->isolate()); | 2924 ProfileEntryHookStub stub(masm->isolate()); |
2932 masm->CallStub(&stub); | 2925 masm->CallStub(&stub); |
2933 } | 2926 } |
2934 } | 2927 } |
2935 | 2928 |
2936 | 2929 |
2937 void ProfileEntryHookStub::Generate(MacroAssembler* masm) { | 2930 void ProfileEntryHookStub::Generate(MacroAssembler* masm) { |
2938 // Save volatile registers. | 2931 // Save volatile registers. |
(...skipping 1262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4201 kStackUnwindSpace, nullptr, return_value_operand, | 4194 kStackUnwindSpace, nullptr, return_value_operand, |
4202 NULL); | 4195 NULL); |
4203 } | 4196 } |
4204 | 4197 |
4205 #undef __ | 4198 #undef __ |
4206 | 4199 |
4207 } // namespace internal | 4200 } // namespace internal |
4208 } // namespace v8 | 4201 } // namespace v8 |
4209 | 4202 |
4210 #endif // V8_TARGET_ARCH_IA32 | 4203 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |