| 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 1744 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1755 __ Push(a1); | 1755 __ Push(a1); |
| 1756 __ CallRuntime(Runtime::kThrowCalledNonCallable, 1); | 1756 __ CallRuntime(Runtime::kThrowCalledNonCallable, 1); |
| 1757 } | 1757 } |
| 1758 } | 1758 } |
| 1759 | 1759 |
| 1760 | 1760 |
| 1761 void Builtins::Generate_ConstructFunction(MacroAssembler* masm) { | 1761 void Builtins::Generate_ConstructFunction(MacroAssembler* masm) { |
| 1762 // ----------- S t a t e ------------- | 1762 // ----------- S t a t e ------------- |
| 1763 // -- a0 : the number of arguments (not including the receiver) | 1763 // -- a0 : the number of arguments (not including the receiver) |
| 1764 // -- a1 : the constructor to call (checked to be a JSFunction) | 1764 // -- a1 : the constructor to call (checked to be a JSFunction) |
| 1765 // -- a3 : the new target (checked to be a JSFunction) | 1765 // -- a3 : the new target (checked to be a constructor) |
| 1766 // ----------------------------------- | 1766 // ----------------------------------- |
| 1767 __ AssertFunction(a1); | 1767 __ AssertFunction(a1); |
| 1768 __ AssertFunction(a3); | |
| 1769 | 1768 |
| 1770 // Calling convention for function specific ConstructStubs require | 1769 // Calling convention for function specific ConstructStubs require |
| 1771 // a2 to contain either an AllocationSite or undefined. | 1770 // a2 to contain either an AllocationSite or undefined. |
| 1772 __ LoadRoot(a2, Heap::kUndefinedValueRootIndex); | 1771 __ LoadRoot(a2, Heap::kUndefinedValueRootIndex); |
| 1773 | 1772 |
| 1774 // Tail call to the function-specific construct stub (still in the caller | 1773 // Tail call to the function-specific construct stub (still in the caller |
| 1775 // context at this point). | 1774 // context at this point). |
| 1776 __ ld(a4, FieldMemOperand(a1, JSFunction::kSharedFunctionInfoOffset)); | 1775 __ ld(a4, FieldMemOperand(a1, JSFunction::kSharedFunctionInfoOffset)); |
| 1777 __ ld(a4, FieldMemOperand(a4, SharedFunctionInfo::kConstructStubOffset)); | 1776 __ ld(a4, FieldMemOperand(a4, SharedFunctionInfo::kConstructStubOffset)); |
| 1778 __ Daddu(at, a4, Operand(Code::kHeaderSize - kHeapObjectTag)); | 1777 __ Daddu(at, a4, Operand(Code::kHeaderSize - kHeapObjectTag)); |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1995 } | 1994 } |
| 1996 } | 1995 } |
| 1997 | 1996 |
| 1998 | 1997 |
| 1999 #undef __ | 1998 #undef __ |
| 2000 | 1999 |
| 2001 } // namespace internal | 2000 } // namespace internal |
| 2002 } // namespace v8 | 2001 } // namespace v8 |
| 2003 | 2002 |
| 2004 #endif // V8_TARGET_ARCH_MIPS64 | 2003 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |