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 #if V8_TARGET_ARCH_MIPS | 5 #if V8_TARGET_ARCH_MIPS |
6 | 6 |
7 #include "src/codegen.h" | 7 #include "src/codegen.h" |
8 #include "src/debug/debug.h" | 8 #include "src/debug/debug.h" |
9 #include "src/deoptimizer.h" | 9 #include "src/deoptimizer.h" |
10 #include "src/full-codegen/full-codegen.h" | 10 #include "src/full-codegen/full-codegen.h" |
(...skipping 1458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1469 __ CallCFunction( | 1469 __ CallCFunction( |
1470 ExternalReference::get_date_field_function(masm->isolate()), 2); | 1470 ExternalReference::get_date_field_function(masm->isolate()), 2); |
1471 } | 1471 } |
1472 __ Ret(); | 1472 __ Ret(); |
1473 | 1473 |
1474 // 3. Raise a TypeError if the receiver is not a date. | 1474 // 3. Raise a TypeError if the receiver is not a date. |
1475 __ bind(&receiver_not_date); | 1475 __ bind(&receiver_not_date); |
1476 __ TailCallRuntime(Runtime::kThrowNotDateError); | 1476 __ TailCallRuntime(Runtime::kThrowNotDateError); |
1477 } | 1477 } |
1478 | 1478 |
| 1479 // static |
| 1480 void Builtins::Generate_FunctionHasInstance(MacroAssembler* masm) { |
| 1481 // ----------- S t a t e ------------- |
| 1482 // -- a0 : argc |
| 1483 // -- sp[0] : first argument (left-hand side) |
| 1484 // -- sp[4] : receiver (right-hand side) |
| 1485 // ----------------------------------- |
| 1486 |
| 1487 { |
| 1488 FrameScope scope(masm, StackFrame::INTERNAL); |
| 1489 __ lw(InstanceOfDescriptor::LeftRegister(), |
| 1490 MemOperand(fp, 2 * kPointerSize)); // Load left-hand side. |
| 1491 __ lw(InstanceOfDescriptor::RightRegister(), |
| 1492 MemOperand(fp, 3 * kPointerSize)); // Load right-hand side. |
| 1493 InstanceOfStub stub(masm->isolate(), true); |
| 1494 __ CallStub(&stub); |
| 1495 } |
| 1496 |
| 1497 // Pop the argument and the receiver. |
| 1498 __ DropAndRet(2); |
| 1499 } |
1479 | 1500 |
1480 // static | 1501 // static |
1481 void Builtins::Generate_FunctionPrototypeApply(MacroAssembler* masm) { | 1502 void Builtins::Generate_FunctionPrototypeApply(MacroAssembler* masm) { |
1482 // ----------- S t a t e ------------- | 1503 // ----------- S t a t e ------------- |
1483 // -- a0 : argc | 1504 // -- a0 : argc |
1484 // -- sp[0] : argArray | 1505 // -- sp[0] : argArray |
1485 // -- sp[4] : thisArg | 1506 // -- sp[4] : thisArg |
1486 // -- sp[8] : receiver | 1507 // -- sp[8] : receiver |
1487 // ----------------------------------- | 1508 // ----------------------------------- |
1488 | 1509 |
(...skipping 1089 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2578 } | 2599 } |
2579 } | 2600 } |
2580 | 2601 |
2581 | 2602 |
2582 #undef __ | 2603 #undef __ |
2583 | 2604 |
2584 } // namespace internal | 2605 } // namespace internal |
2585 } // namespace v8 | 2606 } // namespace v8 |
2586 | 2607 |
2587 #endif // V8_TARGET_ARCH_MIPS | 2608 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |