| 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 3019 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3030 | 3030 |
| 3031 __ Bind(&do_call); | 3031 __ Bind(&do_call); |
| 3032 // Set expected number of arguments to zero (not changing x0). | 3032 // Set expected number of arguments to zero (not changing x0). |
| 3033 __ Mov(x2, 0); | 3033 __ Mov(x2, 0); |
| 3034 __ Jump(isolate()->builtins()->ArgumentsAdaptorTrampoline(), | 3034 __ Jump(isolate()->builtins()->ArgumentsAdaptorTrampoline(), |
| 3035 RelocInfo::CODE_TARGET); | 3035 RelocInfo::CODE_TARGET); |
| 3036 } | 3036 } |
| 3037 | 3037 |
| 3038 | 3038 |
| 3039 static void EmitLoadTypeFeedbackVector(MacroAssembler* masm, Register vector) { | 3039 static void EmitLoadTypeFeedbackVector(MacroAssembler* masm, Register vector) { |
| 3040 __ Ldr(vector, MemOperand(fp, JavaScriptFrameConstants::kFunctionOffset)); | 3040 __ Ldr(vector, |
| 3041 __ Ldr(vector, FieldMemOperand(vector, | 3041 MemOperand(fp, JavaScriptFrameConstants::kFeedbackVectorOffset)); |
| 3042 JSFunction::kSharedFunctionInfoOffset)); | |
| 3043 __ Ldr(vector, FieldMemOperand(vector, | |
| 3044 SharedFunctionInfo::kFeedbackVectorOffset)); | |
| 3045 } | 3042 } |
| 3046 | 3043 |
| 3047 | 3044 |
| 3048 void CallIC_ArrayStub::Generate(MacroAssembler* masm) { | 3045 void CallIC_ArrayStub::Generate(MacroAssembler* masm) { |
| 3049 // x1 - function | 3046 // x1 - function |
| 3050 // x3 - slot id | 3047 // x3 - slot id |
| 3051 // x2 - vector | 3048 // x2 - vector |
| 3052 Label miss; | 3049 Label miss; |
| 3053 Register function = x1; | 3050 Register function = x1; |
| 3054 Register feedback_vector = x2; | 3051 Register feedback_vector = x2; |
| (...skipping 2688 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5743 kStackUnwindSpace, NULL, spill_offset, | 5740 kStackUnwindSpace, NULL, spill_offset, |
| 5744 MemOperand(fp, 6 * kPointerSize), NULL); | 5741 MemOperand(fp, 6 * kPointerSize), NULL); |
| 5745 } | 5742 } |
| 5746 | 5743 |
| 5747 | 5744 |
| 5748 #undef __ | 5745 #undef __ |
| 5749 | 5746 |
| 5750 } } // namespace v8::internal | 5747 } } // namespace v8::internal |
| 5751 | 5748 |
| 5752 #endif // V8_TARGET_ARCH_ARM64 | 5749 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |