| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_ARM | 7 #if V8_TARGET_ARCH_ARM |
| 8 | 8 |
| 9 #include "src/code-factory.h" | 9 #include "src/code-factory.h" |
| 10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
| (...skipping 3759 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3770 __ b(eq, &function); | 3770 __ b(eq, &function); |
| 3771 | 3771 |
| 3772 __ cmp(r1, Operand(LAST_SPEC_OBJECT_TYPE)); | 3772 __ cmp(r1, Operand(LAST_SPEC_OBJECT_TYPE)); |
| 3773 STATIC_ASSERT(LAST_NONCALLABLE_SPEC_OBJECT_TYPE == | 3773 STATIC_ASSERT(LAST_NONCALLABLE_SPEC_OBJECT_TYPE == |
| 3774 LAST_SPEC_OBJECT_TYPE - 1); | 3774 LAST_SPEC_OBJECT_TYPE - 1); |
| 3775 __ b(eq, &function); | 3775 __ b(eq, &function); |
| 3776 // Assume that there is no larger type. | 3776 // Assume that there is no larger type. |
| 3777 STATIC_ASSERT(LAST_NONCALLABLE_SPEC_OBJECT_TYPE == LAST_TYPE - 1); | 3777 STATIC_ASSERT(LAST_NONCALLABLE_SPEC_OBJECT_TYPE == LAST_TYPE - 1); |
| 3778 | 3778 |
| 3779 // Check if the constructor in the map is a JS function. | 3779 // Check if the constructor in the map is a JS function. |
| 3780 __ ldr(r0, FieldMemOperand(r0, Map::kConstructorOffset)); | 3780 Register instance_type = r2; |
| 3781 __ CompareObjectType(r0, r1, r1, JS_FUNCTION_TYPE); | 3781 __ GetMapConstructor(r0, r0, r1, instance_type); |
| 3782 __ cmp(instance_type, Operand(JS_FUNCTION_TYPE)); |
| 3782 __ b(ne, &non_function_constructor); | 3783 __ b(ne, &non_function_constructor); |
| 3783 | 3784 |
| 3784 // r0 now contains the constructor function. Grab the | 3785 // r0 now contains the constructor function. Grab the |
| 3785 // instance class name from there. | 3786 // instance class name from there. |
| 3786 __ ldr(r0, FieldMemOperand(r0, JSFunction::kSharedFunctionInfoOffset)); | 3787 __ ldr(r0, FieldMemOperand(r0, JSFunction::kSharedFunctionInfoOffset)); |
| 3787 __ ldr(r0, FieldMemOperand(r0, SharedFunctionInfo::kInstanceClassNameOffset)); | 3788 __ ldr(r0, FieldMemOperand(r0, SharedFunctionInfo::kInstanceClassNameOffset)); |
| 3788 __ b(&done); | 3789 __ b(&done); |
| 3789 | 3790 |
| 3790 // Functions have class 'Function'. | 3791 // Functions have class 'Function'. |
| 3791 __ bind(&function); | 3792 __ bind(&function); |
| (...skipping 1709 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5501 | 5502 |
| 5502 DCHECK(interrupt_address == | 5503 DCHECK(interrupt_address == |
| 5503 isolate->builtins()->OsrAfterStackCheck()->entry()); | 5504 isolate->builtins()->OsrAfterStackCheck()->entry()); |
| 5504 return OSR_AFTER_STACK_CHECK; | 5505 return OSR_AFTER_STACK_CHECK; |
| 5505 } | 5506 } |
| 5506 | 5507 |
| 5507 | 5508 |
| 5508 } } // namespace v8::internal | 5509 } } // namespace v8::internal |
| 5509 | 5510 |
| 5510 #endif // V8_TARGET_ARCH_ARM | 5511 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |