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 4124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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) { | 4143 void LoadICTrampolineStub::Generate(MacroAssembler* masm) { |
4144 EmitLoadTypeFeedbackVector(masm, FullVectorLoadConvention::VectorRegister()); | 4144 EmitLoadTypeFeedbackVector(masm, FullVectorLoadConvention::VectorRegister()); |
4145 VectorLoadStub stub(isolate(), state_); | 4145 VectorLoadStub stub(isolate(), state()); |
4146 __ jmp(stub.GetCode(), RelocInfo::CODE_TARGET); | 4146 __ jmp(stub.GetCode(), RelocInfo::CODE_TARGET); |
4147 } | 4147 } |
4148 | 4148 |
4149 | 4149 |
4150 void KeyedLoadICTrampolineStub::Generate(MacroAssembler* masm) { | 4150 void KeyedLoadICTrampolineStub::Generate(MacroAssembler* masm) { |
4151 EmitLoadTypeFeedbackVector(masm, FullVectorLoadConvention::VectorRegister()); | 4151 EmitLoadTypeFeedbackVector(masm, FullVectorLoadConvention::VectorRegister()); |
4152 VectorKeyedLoadStub stub(isolate()); | 4152 VectorKeyedLoadStub stub(isolate()); |
4153 __ jmp(stub.GetCode(), RelocInfo::CODE_TARGET); | 4153 __ jmp(stub.GetCode(), RelocInfo::CODE_TARGET); |
4154 } | 4154 } |
4155 | 4155 |
(...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4658 Operand(ebp, 7 * kPointerSize), | 4658 Operand(ebp, 7 * kPointerSize), |
4659 NULL); | 4659 NULL); |
4660 } | 4660 } |
4661 | 4661 |
4662 | 4662 |
4663 #undef __ | 4663 #undef __ |
4664 | 4664 |
4665 } } // namespace v8::internal | 4665 } } // namespace v8::internal |
4666 | 4666 |
4667 #endif // V8_TARGET_ARCH_X87 | 4667 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |