| 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 3023 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3034 __ bind(&wrap); | 3034 __ bind(&wrap); |
| 3035 EmitWrapCase(masm, argc, &cont); | 3035 EmitWrapCase(masm, argc, &cont); |
| 3036 } | 3036 } |
| 3037 | 3037 |
| 3038 __ bind(&extra_checks_or_miss); | 3038 __ bind(&extra_checks_or_miss); |
| 3039 Label miss; | 3039 Label miss; |
| 3040 | 3040 |
| 3041 __ JumpIfRoot(x4, Heap::kmegamorphic_symbolRootIndex, &slow_start); | 3041 __ JumpIfRoot(x4, Heap::kmegamorphic_symbolRootIndex, &slow_start); |
| 3042 __ JumpIfRoot(x4, Heap::kuninitialized_symbolRootIndex, &miss); | 3042 __ JumpIfRoot(x4, Heap::kuninitialized_symbolRootIndex, &miss); |
| 3043 | 3043 |
| 3044 if (!FLAG_trace_ic) { | |
| 3045 // We are going megamorphic. If the feedback is a JSFunction, it is fine | |
| 3046 // to handle it here. More complex cases are dealt with in the runtime. | |
| 3047 __ AssertNotSmi(x4); | |
| 3048 __ JumpIfNotObjectType(x4, x5, x5, JS_FUNCTION_TYPE, &miss); | |
| 3049 __ Add(x4, feedback_vector, | |
| 3050 Operand::UntagSmiAndScale(index, kPointerSizeLog2)); | |
| 3051 __ LoadRoot(x5, Heap::kmegamorphic_symbolRootIndex); | |
| 3052 __ Str(x5, FieldMemOperand(x4, FixedArray::kHeaderSize)); | |
| 3053 __ B(&slow_start); | |
| 3054 } | |
| 3055 | |
| 3056 // We are here because tracing is on or we are going monomorphic. | 3044 // We are here because tracing is on or we are going monomorphic. |
| 3057 __ bind(&miss); | 3045 __ bind(&miss); |
| 3058 GenerateMiss(masm); | 3046 GenerateMiss(masm); |
| 3059 | 3047 |
| 3060 // the slow case | 3048 // the slow case |
| 3061 __ bind(&slow_start); | 3049 __ bind(&slow_start); |
| 3062 | 3050 |
| 3063 // Check that the function is really a JavaScript function. | 3051 // Check that the function is really a JavaScript function. |
| 3064 __ JumpIfSmi(function, &non_function); | 3052 __ JumpIfSmi(function, &non_function); |
| 3065 | 3053 |
| (...skipping 1994 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5060 MemOperand(fp, 6 * kPointerSize), | 5048 MemOperand(fp, 6 * kPointerSize), |
| 5061 NULL); | 5049 NULL); |
| 5062 } | 5050 } |
| 5063 | 5051 |
| 5064 | 5052 |
| 5065 #undef __ | 5053 #undef __ |
| 5066 | 5054 |
| 5067 } } // namespace v8::internal | 5055 } } // namespace v8::internal |
| 5068 | 5056 |
| 5069 #endif // V8_TARGET_ARCH_ARM64 | 5057 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |