| 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 3160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3171 __ pop(ecx); | 3171 __ pop(ecx); |
| 3172 int additional_offset = | 3172 int additional_offset = |
| 3173 function_mode() == JS_FUNCTION_STUB_MODE ? kPointerSize : 0; | 3173 function_mode() == JS_FUNCTION_STUB_MODE ? kPointerSize : 0; |
| 3174 __ lea(esp, MemOperand(esp, ebx, times_pointer_size, additional_offset)); | 3174 __ lea(esp, MemOperand(esp, ebx, times_pointer_size, additional_offset)); |
| 3175 __ jmp(ecx); // Return to IC Miss stub, continuation still on stack. | 3175 __ jmp(ecx); // Return to IC Miss stub, continuation still on stack. |
| 3176 } | 3176 } |
| 3177 | 3177 |
| 3178 | 3178 |
| 3179 void LoadICTrampolineStub::Generate(MacroAssembler* masm) { | 3179 void LoadICTrampolineStub::Generate(MacroAssembler* masm) { |
| 3180 __ EmitLoadTypeFeedbackVector(LoadWithVectorDescriptor::VectorRegister()); | 3180 __ EmitLoadTypeFeedbackVector(LoadWithVectorDescriptor::VectorRegister()); |
| 3181 LoadICStub stub(isolate(), state()); | 3181 LoadICStub stub(isolate()); |
| 3182 stub.GenerateForTrampoline(masm); | 3182 stub.GenerateForTrampoline(masm); |
| 3183 } | 3183 } |
| 3184 | 3184 |
| 3185 | 3185 |
| 3186 void KeyedLoadICTrampolineStub::Generate(MacroAssembler* masm) { | 3186 void KeyedLoadICTrampolineStub::Generate(MacroAssembler* masm) { |
| 3187 __ EmitLoadTypeFeedbackVector(LoadWithVectorDescriptor::VectorRegister()); | 3187 __ EmitLoadTypeFeedbackVector(LoadWithVectorDescriptor::VectorRegister()); |
| 3188 KeyedLoadICStub stub(isolate(), state()); | 3188 KeyedLoadICStub stub(isolate()); |
| 3189 stub.GenerateForTrampoline(masm); | 3189 stub.GenerateForTrampoline(masm); |
| 3190 } | 3190 } |
| 3191 | 3191 |
| 3192 | 3192 |
| 3193 static void HandleArrayCases(MacroAssembler* masm, Register receiver, | 3193 static void HandleArrayCases(MacroAssembler* masm, Register receiver, |
| 3194 Register key, Register vector, Register slot, | 3194 Register key, Register vector, Register slot, |
| 3195 Register feedback, bool is_polymorphic, | 3195 Register feedback, bool is_polymorphic, |
| 3196 Label* miss) { | 3196 Label* miss) { |
| 3197 // feedback initially contains the feedback array | 3197 // feedback initially contains the feedback array |
| 3198 Label next, next_loop, prepare_next; | 3198 Label next, next_loop, prepare_next; |
| (...skipping 2097 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5296 kStackUnwindSpace, nullptr, return_value_operand, | 5296 kStackUnwindSpace, nullptr, return_value_operand, |
| 5297 NULL); | 5297 NULL); |
| 5298 } | 5298 } |
| 5299 | 5299 |
| 5300 #undef __ | 5300 #undef __ |
| 5301 | 5301 |
| 5302 } // namespace internal | 5302 } // namespace internal |
| 5303 } // namespace v8 | 5303 } // namespace v8 |
| 5304 | 5304 |
| 5305 #endif // V8_TARGET_ARCH_X87 | 5305 #endif // V8_TARGET_ARCH_X87 |
| OLD | NEW |