Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(436)

Side by Side Diff: src/mips/builtins-mips.cc

Issue 1481773003: [Proxies] Support constructable proxy as new.target (reland) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Diff with previous version Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 1751 matching lines...) Expand 10 before | Expand all | Expand 10 after
1762 __ CallRuntime(Runtime::kThrowCalledNonCallable, 1); 1762 __ CallRuntime(Runtime::kThrowCalledNonCallable, 1);
1763 } 1763 }
1764 } 1764 }
1765 1765
1766 1766
1767 // static 1767 // static
1768 void Builtins::Generate_ConstructFunction(MacroAssembler* masm) { 1768 void Builtins::Generate_ConstructFunction(MacroAssembler* masm) {
1769 // ----------- S t a t e ------------- 1769 // ----------- S t a t e -------------
1770 // -- a0 : the number of arguments (not including the receiver) 1770 // -- a0 : the number of arguments (not including the receiver)
1771 // -- a1 : the constructor to call (checked to be a JSFunction) 1771 // -- a1 : the constructor to call (checked to be a JSFunction)
1772 // -- a3 : the new target (checked to be a JSFunction) 1772 // -- a3 : the new target (checked to be a constructor)
1773 // ----------------------------------- 1773 // -----------------------------------
1774 __ AssertFunction(a1); 1774 __ AssertFunction(a1);
1775 __ AssertFunction(a3);
1776 1775
1777 // Calling convention for function specific ConstructStubs require 1776 // Calling convention for function specific ConstructStubs require
1778 // a2 to contain either an AllocationSite or undefined. 1777 // a2 to contain either an AllocationSite or undefined.
1779 __ LoadRoot(a2, Heap::kUndefinedValueRootIndex); 1778 __ LoadRoot(a2, Heap::kUndefinedValueRootIndex);
1780 1779
1781 // Tail call to the function-specific construct stub (still in the caller 1780 // Tail call to the function-specific construct stub (still in the caller
1782 // context at this point). 1781 // context at this point).
1783 __ lw(t0, FieldMemOperand(a1, JSFunction::kSharedFunctionInfoOffset)); 1782 __ lw(t0, FieldMemOperand(a1, JSFunction::kSharedFunctionInfoOffset));
1784 __ lw(t0, FieldMemOperand(t0, SharedFunctionInfo::kConstructStubOffset)); 1783 __ lw(t0, FieldMemOperand(t0, SharedFunctionInfo::kConstructStubOffset));
1785 __ Addu(at, t0, Operand(Code::kHeaderSize - kHeapObjectTag)); 1784 __ Addu(at, t0, Operand(Code::kHeaderSize - kHeapObjectTag));
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
2002 } 2001 }
2003 } 2002 }
2004 2003
2005 2004
2006 #undef __ 2005 #undef __
2007 2006
2008 } // namespace internal 2007 } // namespace internal
2009 } // namespace v8 2008 } // namespace v8
2010 2009
2011 #endif // V8_TARGET_ARCH_MIPS 2010 #endif // V8_TARGET_ARCH_MIPS
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698