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 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_X64 | 7 #if V8_TARGET_ARCH_X64 |
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 2068 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2079 __ GetBuiltinEntry(rdx, Builtins::CALL_NON_FUNCTION_AS_CONSTRUCTOR); | 2079 __ GetBuiltinEntry(rdx, Builtins::CALL_NON_FUNCTION_AS_CONSTRUCTOR); |
2080 __ bind(&do_call); | 2080 __ bind(&do_call); |
2081 // Set expected number of arguments to zero (not changing rax). | 2081 // Set expected number of arguments to zero (not changing rax). |
2082 __ Set(rbx, 0); | 2082 __ Set(rbx, 0); |
2083 __ Jump(isolate()->builtins()->ArgumentsAdaptorTrampoline(), | 2083 __ Jump(isolate()->builtins()->ArgumentsAdaptorTrampoline(), |
2084 RelocInfo::CODE_TARGET); | 2084 RelocInfo::CODE_TARGET); |
2085 } | 2085 } |
2086 | 2086 |
2087 | 2087 |
2088 static void EmitLoadTypeFeedbackVector(MacroAssembler* masm, Register vector) { | 2088 static void EmitLoadTypeFeedbackVector(MacroAssembler* masm, Register vector) { |
2089 __ movp(vector, Operand(rbp, JavaScriptFrameConstants::kFunctionOffset)); | 2089 __ movp(vector, |
2090 __ movp(vector, FieldOperand(vector, JSFunction::kSharedFunctionInfoOffset)); | 2090 Operand(rbp, JavaScriptFrameConstants::kFeedbackVectorOffset)); |
2091 __ movp(vector, FieldOperand(vector, | |
2092 SharedFunctionInfo::kFeedbackVectorOffset)); | |
2093 } | 2091 } |
2094 | 2092 |
2095 | 2093 |
2096 void CallIC_ArrayStub::Generate(MacroAssembler* masm) { | 2094 void CallIC_ArrayStub::Generate(MacroAssembler* masm) { |
2097 // rdi - function | 2095 // rdi - function |
2098 // rdx - slot id (as integer) | 2096 // rdx - slot id (as integer) |
2099 // rbx - vector | 2097 // rbx - vector |
2100 Label miss; | 2098 Label miss; |
2101 int argc = arg_count(); | 2099 int argc = arg_count(); |
2102 ParameterCount actual(argc); | 2100 ParameterCount actual(argc); |
(...skipping 3255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5358 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, getter_arg, | 5356 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, getter_arg, |
5359 kStackSpace, nullptr, return_value_operand, NULL); | 5357 kStackSpace, nullptr, return_value_operand, NULL); |
5360 } | 5358 } |
5361 | 5359 |
5362 | 5360 |
5363 #undef __ | 5361 #undef __ |
5364 | 5362 |
5365 } } // namespace v8::internal | 5363 } } // namespace v8::internal |
5366 | 5364 |
5367 #endif // V8_TARGET_ARCH_X64 | 5365 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |