| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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 #if V8_TARGET_ARCH_S390 | 5 #if V8_TARGET_ARCH_S390 |
| 6 | 6 |
| 7 #include "src/ast/scopes.h" | 7 #include "src/ast/scopes.h" |
| 8 #include "src/code-factory.h" | 8 #include "src/code-factory.h" |
| 9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
| 10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
| (...skipping 2743 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2754 | 2754 |
| 2755 VisitForAccumulatorValue(args->at(0)); | 2755 VisitForAccumulatorValue(args->at(0)); |
| 2756 | 2756 |
| 2757 // If the object is not a JSReceiver, we return null. | 2757 // If the object is not a JSReceiver, we return null. |
| 2758 __ JumpIfSmi(r2, &null); | 2758 __ JumpIfSmi(r2, &null); |
| 2759 STATIC_ASSERT(LAST_JS_RECEIVER_TYPE == LAST_TYPE); | 2759 STATIC_ASSERT(LAST_JS_RECEIVER_TYPE == LAST_TYPE); |
| 2760 __ CompareObjectType(r2, r2, r3, FIRST_JS_RECEIVER_TYPE); | 2760 __ CompareObjectType(r2, r2, r3, FIRST_JS_RECEIVER_TYPE); |
| 2761 // Map is now in r2. | 2761 // Map is now in r2. |
| 2762 __ blt(&null); | 2762 __ blt(&null); |
| 2763 | 2763 |
| 2764 // Return 'Function' for JSFunction objects. | 2764 // Return 'Function' for JSFunction and JSBoundFunction objects. |
| 2765 __ CmpP(r3, Operand(JS_FUNCTION_TYPE)); | 2765 __ CmpLogicalP(r3, Operand(FIRST_FUNCTION_TYPE)); |
| 2766 __ beq(&function); | 2766 STATIC_ASSERT(LAST_FUNCTION_TYPE == LAST_TYPE); |
| 2767 __ bge(&function); |
| 2767 | 2768 |
| 2768 // Check if the constructor in the map is a JS function. | 2769 // Check if the constructor in the map is a JS function. |
| 2769 Register instance_type = r4; | 2770 Register instance_type = r4; |
| 2770 __ GetMapConstructor(r2, r2, r3, instance_type); | 2771 __ GetMapConstructor(r2, r2, r3, instance_type); |
| 2771 __ CmpP(instance_type, Operand(JS_FUNCTION_TYPE)); | 2772 __ CmpP(instance_type, Operand(JS_FUNCTION_TYPE)); |
| 2772 __ bne(&non_function_constructor, Label::kNear); | 2773 __ bne(&non_function_constructor, Label::kNear); |
| 2773 | 2774 |
| 2774 // r2 now contains the constructor function. Grab the | 2775 // r2 now contains the constructor function. Grab the |
| 2775 // instance class name from there. | 2776 // instance class name from there. |
| 2776 __ LoadP(r2, FieldMemOperand(r2, JSFunction::kSharedFunctionInfoOffset)); | 2777 __ LoadP(r2, FieldMemOperand(r2, JSFunction::kSharedFunctionInfoOffset)); |
| (...skipping 1031 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3808 DCHECK(kOSRBranchInstruction == br_instr); | 3809 DCHECK(kOSRBranchInstruction == br_instr); |
| 3809 | 3810 |
| 3810 DCHECK(interrupt_address == | 3811 DCHECK(interrupt_address == |
| 3811 isolate->builtins()->OnStackReplacement()->entry()); | 3812 isolate->builtins()->OnStackReplacement()->entry()); |
| 3812 return ON_STACK_REPLACEMENT; | 3813 return ON_STACK_REPLACEMENT; |
| 3813 } | 3814 } |
| 3814 | 3815 |
| 3815 } // namespace internal | 3816 } // namespace internal |
| 3816 } // namespace v8 | 3817 } // namespace v8 |
| 3817 #endif // V8_TARGET_ARCH_S390 | 3818 #endif // V8_TARGET_ARCH_S390 |
| OLD | NEW |