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 | 5 |
6 | 6 |
7 #include "src/v8.h" | 7 #include "src/v8.h" |
8 | 8 |
9 #if V8_TARGET_ARCH_MIPS64 | 9 #if V8_TARGET_ARCH_MIPS64 |
10 | 10 |
(...skipping 1736 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1747 __ daddiu(a0, a0, -kPointerSize); // In delay slot. | 1747 __ daddiu(a0, a0, -kPointerSize); // In delay slot. |
1748 | 1748 |
1749 __ jmp(&invoke); | 1749 __ jmp(&invoke); |
1750 } | 1750 } |
1751 | 1751 |
1752 { // Too few parameters: Actual < expected. | 1752 { // Too few parameters: Actual < expected. |
1753 __ bind(&too_few); | 1753 __ bind(&too_few); |
1754 | 1754 |
1755 // If the function is strong we need to throw an error. | 1755 // If the function is strong we need to throw an error. |
1756 Label weak_function; | 1756 Label weak_function; |
1757 __ ld(t1, FieldMemOperand(a1, JSFunction::kSharedFunctionInfoOffset)); | 1757 __ ld(a4, FieldMemOperand(a1, JSFunction::kSharedFunctionInfoOffset)); |
1758 __ lbu(t1, FieldMemOperand(t1, SharedFunctionInfo::kCompilerHintsOffset)); | 1758 __ lbu(a4, FieldMemOperand(a4, SharedFunctionInfo::kStrongModeByteOffset)); |
1759 __ And(t2, t1, Operand(1 << SharedFunctionInfo::kStrongModeBitWithinByte)); | 1759 __ And(a4, a4, Operand(1 << SharedFunctionInfo::kStrongModeBitWithinByte)); |
1760 __ Branch(&weak_function, eq, t2, Operand(zero_reg)); | 1760 __ Branch(&weak_function, eq, a4, Operand(zero_reg)); |
1761 | 1761 |
1762 { | 1762 { |
1763 FrameScope frame(masm, StackFrame::MANUAL); | 1763 FrameScope frame(masm, StackFrame::MANUAL); |
1764 EnterArgumentsAdaptorFrame(masm); | 1764 EnterArgumentsAdaptorFrame(masm); |
1765 __ CallRuntime(Runtime::kThrowStrongModeTooFewArguments, 0); | 1765 __ CallRuntime(Runtime::kThrowStrongModeTooFewArguments, 0); |
1766 } | 1766 } |
1767 | 1767 |
1768 __ bind(&weak_function); | 1768 __ bind(&weak_function); |
1769 EnterArgumentsAdaptorFrame(masm); | 1769 EnterArgumentsAdaptorFrame(masm); |
1770 | 1770 |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1839 __ break_(0xCC); | 1839 __ break_(0xCC); |
1840 } | 1840 } |
1841 } | 1841 } |
1842 | 1842 |
1843 | 1843 |
1844 #undef __ | 1844 #undef __ |
1845 | 1845 |
1846 } } // namespace v8::internal | 1846 } } // namespace v8::internal |
1847 | 1847 |
1848 #endif // V8_TARGET_ARCH_MIPS64 | 1848 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |