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 2073 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2084 __ GetBuiltinEntry(rdx, Builtins::CALL_NON_FUNCTION_AS_CONSTRUCTOR); | 2084 __ GetBuiltinEntry(rdx, Builtins::CALL_NON_FUNCTION_AS_CONSTRUCTOR); |
2085 __ bind(&do_call); | 2085 __ bind(&do_call); |
2086 // Set expected number of arguments to zero (not changing rax). | 2086 // Set expected number of arguments to zero (not changing rax). |
2087 __ Set(rbx, 0); | 2087 __ Set(rbx, 0); |
2088 __ Jump(isolate()->builtins()->ArgumentsAdaptorTrampoline(), | 2088 __ Jump(isolate()->builtins()->ArgumentsAdaptorTrampoline(), |
2089 RelocInfo::CODE_TARGET); | 2089 RelocInfo::CODE_TARGET); |
2090 } | 2090 } |
2091 | 2091 |
2092 | 2092 |
2093 static void EmitLoadTypeFeedbackVector(MacroAssembler* masm, Register vector) { | 2093 static void EmitLoadTypeFeedbackVector(MacroAssembler* masm, Register vector) { |
2094 __ movp(vector, Operand(rbp, JavaScriptFrameConstants::kFunctionOffset)); | 2094 __ movp(vector, |
2095 __ movp(vector, FieldOperand(vector, JSFunction::kSharedFunctionInfoOffset)); | 2095 Operand(rbp, JavaScriptFrameConstants::kFeedbackVectorOffset)); |
2096 __ movp(vector, FieldOperand(vector, | |
2097 SharedFunctionInfo::kFeedbackVectorOffset)); | |
2098 } | 2096 } |
2099 | 2097 |
2100 | 2098 |
2101 void CallIC_ArrayStub::Generate(MacroAssembler* masm) { | 2099 void CallIC_ArrayStub::Generate(MacroAssembler* masm) { |
2102 // rdi - function | 2100 // rdi - function |
2103 // rdx - slot id (as integer) | 2101 // rdx - slot id (as integer) |
2104 // rbx - vector | 2102 // rbx - vector |
2105 Label miss; | 2103 Label miss; |
2106 int argc = arg_count(); | 2104 int argc = arg_count(); |
2107 ParameterCount actual(argc); | 2105 ParameterCount actual(argc); |
(...skipping 2988 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5096 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, getter_arg, | 5094 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, getter_arg, |
5097 kStackSpace, nullptr, return_value_operand, NULL); | 5095 kStackSpace, nullptr, return_value_operand, NULL); |
5098 } | 5096 } |
5099 | 5097 |
5100 | 5098 |
5101 #undef __ | 5099 #undef __ |
5102 | 5100 |
5103 } } // namespace v8::internal | 5101 } } // namespace v8::internal |
5104 | 5102 |
5105 #endif // V8_TARGET_ARCH_X64 | 5103 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |