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_MIPS64 | 5 #if V8_TARGET_ARCH_MIPS64 |
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 1462 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1473 // static | 1473 // static |
1474 void Builtins::Generate_FunctionHasInstance(MacroAssembler* masm) { | 1474 void Builtins::Generate_FunctionHasInstance(MacroAssembler* masm) { |
1475 // ----------- S t a t e ------------- | 1475 // ----------- S t a t e ------------- |
1476 // -- a0 : argc | 1476 // -- a0 : argc |
1477 // -- sp[0] : first argument (left-hand side) | 1477 // -- sp[0] : first argument (left-hand side) |
1478 // -- sp[8] : receiver (right-hand side) | 1478 // -- sp[8] : receiver (right-hand side) |
1479 // ----------------------------------- | 1479 // ----------------------------------- |
1480 | 1480 |
1481 { | 1481 { |
1482 FrameScope scope(masm, StackFrame::INTERNAL); | 1482 FrameScope scope(masm, StackFrame::INTERNAL); |
1483 __ lw(InstanceOfDescriptor::LeftRegister(), | 1483 __ ld(InstanceOfDescriptor::LeftRegister(), |
1484 MemOperand(fp, 2 * kPointerSize)); // Load left-hand side. | 1484 MemOperand(fp, 2 * kPointerSize)); // Load left-hand side. |
1485 __ lw(InstanceOfDescriptor::RightRegister(), | 1485 __ ld(InstanceOfDescriptor::RightRegister(), |
1486 MemOperand(fp, 3 * kPointerSize)); // Load right-hand side. | 1486 MemOperand(fp, 3 * kPointerSize)); // Load right-hand side. |
1487 InstanceOfStub stub(masm->isolate(), true); | 1487 InstanceOfStub stub(masm->isolate(), true); |
1488 __ CallStub(&stub); | 1488 __ CallStub(&stub); |
1489 } | 1489 } |
1490 | 1490 |
1491 // Pop the argument and the receiver. | 1491 // Pop the argument and the receiver. |
1492 __ DropAndRet(2); | 1492 __ DropAndRet(2); |
1493 } | 1493 } |
1494 | 1494 |
1495 // static | 1495 // static |
(...skipping 1089 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2585 } | 2585 } |
2586 } | 2586 } |
2587 | 2587 |
2588 | 2588 |
2589 #undef __ | 2589 #undef __ |
2590 | 2590 |
2591 } // namespace internal | 2591 } // namespace internal |
2592 } // namespace v8 | 2592 } // namespace v8 |
2593 | 2593 |
2594 #endif // V8_TARGET_ARCH_MIPS64 | 2594 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |