| 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_MIPS64 | 7 #if V8_TARGET_ARCH_MIPS64 |
| 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 1524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1535 | 1535 |
| 1536 Label object_not_null, object_not_null_or_smi; | 1536 Label object_not_null, object_not_null_or_smi; |
| 1537 __ bind(¬_js_object); | 1537 __ bind(¬_js_object); |
| 1538 // Before null, smi and string value checks, check that the rhs is a function | 1538 // Before null, smi and string value checks, check that the rhs is a function |
| 1539 // as for a non-function rhs an exception needs to be thrown. | 1539 // as for a non-function rhs an exception needs to be thrown. |
| 1540 __ JumpIfSmi(function, &slow); | 1540 __ JumpIfSmi(function, &slow); |
| 1541 __ GetObjectType(function, scratch2, scratch); | 1541 __ GetObjectType(function, scratch2, scratch); |
| 1542 __ Branch(&slow, ne, scratch, Operand(JS_FUNCTION_TYPE)); | 1542 __ Branch(&slow, ne, scratch, Operand(JS_FUNCTION_TYPE)); |
| 1543 | 1543 |
| 1544 // Null is not instance of anything. | 1544 // Null is not instance of anything. |
| 1545 __ Branch(&object_not_null, | 1545 __ Branch(&object_not_null, ne, object, |
| 1546 ne, | |
| 1547 scratch, | |
| 1548 Operand(isolate()->factory()->null_value())); | 1546 Operand(isolate()->factory()->null_value())); |
| 1549 __ li(v0, Operand(Smi::FromInt(1))); | 1547 __ li(v0, Operand(Smi::FromInt(1))); |
| 1550 __ DropAndRet(HasArgsInRegisters() ? 0 : 2); | 1548 __ DropAndRet(HasArgsInRegisters() ? 0 : 2); |
| 1551 | 1549 |
| 1552 __ bind(&object_not_null); | 1550 __ bind(&object_not_null); |
| 1553 // Smi values are not instances of anything. | 1551 // Smi values are not instances of anything. |
| 1554 __ JumpIfNotSmi(object, &object_not_null_or_smi); | 1552 __ JumpIfNotSmi(object, &object_not_null_or_smi); |
| 1555 __ li(v0, Operand(Smi::FromInt(1))); | 1553 __ li(v0, Operand(Smi::FromInt(1))); |
| 1556 __ DropAndRet(HasArgsInRegisters() ? 0 : 2); | 1554 __ DropAndRet(HasArgsInRegisters() ? 0 : 2); |
| 1557 | 1555 |
| (...skipping 3365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4923 MemOperand(fp, 6 * kPointerSize), | 4921 MemOperand(fp, 6 * kPointerSize), |
| 4924 NULL); | 4922 NULL); |
| 4925 } | 4923 } |
| 4926 | 4924 |
| 4927 | 4925 |
| 4928 #undef __ | 4926 #undef __ |
| 4929 | 4927 |
| 4930 } } // namespace v8::internal | 4928 } } // namespace v8::internal |
| 4931 | 4929 |
| 4932 #endif // V8_TARGET_ARCH_MIPS64 | 4930 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |