OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_X64 | 5 #if V8_TARGET_ARCH_X64 |
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/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
(...skipping 3360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3371 __ PopReturnAddressTo(rcx); | 3371 __ PopReturnAddressTo(rcx); |
3372 int additional_offset = | 3372 int additional_offset = |
3373 function_mode() == JS_FUNCTION_STUB_MODE ? kPointerSize : 0; | 3373 function_mode() == JS_FUNCTION_STUB_MODE ? kPointerSize : 0; |
3374 __ leap(rsp, MemOperand(rsp, rbx, times_pointer_size, additional_offset)); | 3374 __ leap(rsp, MemOperand(rsp, rbx, times_pointer_size, additional_offset)); |
3375 __ jmp(rcx); // Return to IC Miss stub, continuation still on stack. | 3375 __ jmp(rcx); // Return to IC Miss stub, continuation still on stack. |
3376 } | 3376 } |
3377 | 3377 |
3378 | 3378 |
3379 void LoadICTrampolineStub::Generate(MacroAssembler* masm) { | 3379 void LoadICTrampolineStub::Generate(MacroAssembler* masm) { |
3380 __ EmitLoadTypeFeedbackVector(LoadWithVectorDescriptor::VectorRegister()); | 3380 __ EmitLoadTypeFeedbackVector(LoadWithVectorDescriptor::VectorRegister()); |
3381 LoadICStub stub(isolate(), state()); | 3381 LoadICStub stub(isolate()); |
3382 stub.GenerateForTrampoline(masm); | 3382 stub.GenerateForTrampoline(masm); |
3383 } | 3383 } |
3384 | 3384 |
3385 | 3385 |
3386 void KeyedLoadICTrampolineStub::Generate(MacroAssembler* masm) { | 3386 void KeyedLoadICTrampolineStub::Generate(MacroAssembler* masm) { |
3387 __ EmitLoadTypeFeedbackVector(LoadWithVectorDescriptor::VectorRegister()); | 3387 __ EmitLoadTypeFeedbackVector(LoadWithVectorDescriptor::VectorRegister()); |
3388 KeyedLoadICStub stub(isolate(), state()); | 3388 KeyedLoadICStub stub(isolate()); |
3389 stub.GenerateForTrampoline(masm); | 3389 stub.GenerateForTrampoline(masm); |
3390 } | 3390 } |
3391 | 3391 |
3392 | 3392 |
3393 static void HandleArrayCases(MacroAssembler* masm, Register feedback, | 3393 static void HandleArrayCases(MacroAssembler* masm, Register feedback, |
3394 Register receiver_map, Register scratch1, | 3394 Register receiver_map, Register scratch1, |
3395 Register scratch2, Register scratch3, | 3395 Register scratch2, Register scratch3, |
3396 bool is_polymorphic, Label* miss) { | 3396 bool is_polymorphic, Label* miss) { |
3397 // feedback initially contains the feedback array | 3397 // feedback initially contains the feedback array |
3398 Label next_loop, prepare_next; | 3398 Label next_loop, prepare_next; |
(...skipping 1931 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5330 kStackUnwindSpace, nullptr, return_value_operand, | 5330 kStackUnwindSpace, nullptr, return_value_operand, |
5331 NULL); | 5331 NULL); |
5332 } | 5332 } |
5333 | 5333 |
5334 #undef __ | 5334 #undef __ |
5335 | 5335 |
5336 } // namespace internal | 5336 } // namespace internal |
5337 } // namespace v8 | 5337 } // namespace v8 |
5338 | 5338 |
5339 #endif // V8_TARGET_ARCH_X64 | 5339 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |