| 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/code-stubs.h" | 9 #include "src/code-stubs.h" |
| 10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
| (...skipping 2997 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3008 | 3008 |
| 3009 // x12 now contains the constructor function. Grab the | 3009 // x12 now contains the constructor function. Grab the |
| 3010 // instance class name from there. | 3010 // instance class name from there. |
| 3011 __ Ldr(x13, FieldMemOperand(x12, JSFunction::kSharedFunctionInfoOffset)); | 3011 __ Ldr(x13, FieldMemOperand(x12, JSFunction::kSharedFunctionInfoOffset)); |
| 3012 __ Ldr(x0, | 3012 __ Ldr(x0, |
| 3013 FieldMemOperand(x13, SharedFunctionInfo::kInstanceClassNameOffset)); | 3013 FieldMemOperand(x13, SharedFunctionInfo::kInstanceClassNameOffset)); |
| 3014 __ B(&done); | 3014 __ B(&done); |
| 3015 | 3015 |
| 3016 // Functions have class 'Function'. | 3016 // Functions have class 'Function'. |
| 3017 __ Bind(&function); | 3017 __ Bind(&function); |
| 3018 __ LoadRoot(x0, Heap::kfunction_class_stringRootIndex); | 3018 __ LoadRoot(x0, Heap::kFunction_stringRootIndex); |
| 3019 __ B(&done); | 3019 __ B(&done); |
| 3020 | 3020 |
| 3021 // Objects with a non-function constructor have class 'Object'. | 3021 // Objects with a non-function constructor have class 'Object'. |
| 3022 __ Bind(&non_function_constructor); | 3022 __ Bind(&non_function_constructor); |
| 3023 __ LoadRoot(x0, Heap::kObject_stringRootIndex); | 3023 __ LoadRoot(x0, Heap::kObject_stringRootIndex); |
| 3024 __ B(&done); | 3024 __ B(&done); |
| 3025 | 3025 |
| 3026 // Non-JS objects have class null. | 3026 // Non-JS objects have class null. |
| 3027 __ Bind(&null); | 3027 __ Bind(&null); |
| 3028 __ LoadRoot(x0, Heap::kNullValueRootIndex); | 3028 __ LoadRoot(x0, Heap::kNullValueRootIndex); |
| (...skipping 1883 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4912 return previous_; | 4912 return previous_; |
| 4913 } | 4913 } |
| 4914 | 4914 |
| 4915 | 4915 |
| 4916 #undef __ | 4916 #undef __ |
| 4917 | 4917 |
| 4918 | 4918 |
| 4919 } } // namespace v8::internal | 4919 } } // namespace v8::internal |
| 4920 | 4920 |
| 4921 #endif // V8_TARGET_ARCH_ARM64 | 4921 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |