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_ARM64 | 7 #if V8_TARGET_ARCH_ARM64 |
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 3018 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3029 | 3029 |
3030 __ Bind(&do_call); | 3030 __ Bind(&do_call); |
3031 // Set expected number of arguments to zero (not changing x0). | 3031 // Set expected number of arguments to zero (not changing x0). |
3032 __ Mov(x2, 0); | 3032 __ Mov(x2, 0); |
3033 __ Jump(isolate()->builtins()->ArgumentsAdaptorTrampoline(), | 3033 __ Jump(isolate()->builtins()->ArgumentsAdaptorTrampoline(), |
3034 RelocInfo::CODE_TARGET); | 3034 RelocInfo::CODE_TARGET); |
3035 } | 3035 } |
3036 | 3036 |
3037 | 3037 |
3038 static void EmitLoadTypeFeedbackVector(MacroAssembler* masm, Register vector) { | 3038 static void EmitLoadTypeFeedbackVector(MacroAssembler* masm, Register vector) { |
3039 __ Ldr(vector, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); | 3039 __ Ldr(vector, |
3040 __ Ldr(vector, FieldMemOperand(vector, | 3040 MemOperand(fp, JavaScriptFrameConstants::kFeedbackVectorOffset)); |
3041 JSFunction::kSharedFunctionInfoOffset)); | |
3042 __ Ldr(vector, FieldMemOperand(vector, | |
3043 SharedFunctionInfo::kFeedbackVectorOffset)); | |
3044 } | 3041 } |
3045 | 3042 |
3046 | 3043 |
3047 void CallIC_ArrayStub::Generate(MacroAssembler* masm) { | 3044 void CallIC_ArrayStub::Generate(MacroAssembler* masm) { |
3048 // x1 - function | 3045 // x1 - function |
3049 // x3 - slot id | 3046 // x3 - slot id |
3050 // x2 - vector | 3047 // x2 - vector |
3051 Label miss; | 3048 Label miss; |
3052 Register function = x1; | 3049 Register function = x1; |
3053 Register feedback_vector = x2; | 3050 Register feedback_vector = x2; |
(...skipping 2427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5481 kStackUnwindSpace, NULL, spill_offset, | 5478 kStackUnwindSpace, NULL, spill_offset, |
5482 MemOperand(fp, 6 * kPointerSize), NULL); | 5479 MemOperand(fp, 6 * kPointerSize), NULL); |
5483 } | 5480 } |
5484 | 5481 |
5485 | 5482 |
5486 #undef __ | 5483 #undef __ |
5487 | 5484 |
5488 } } // namespace v8::internal | 5485 } } // namespace v8::internal |
5489 | 5486 |
5490 #endif // V8_TARGET_ARCH_ARM64 | 5487 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |