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

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

Issue 1480423002: PPC: [Proxies] Support constructable proxy as new.target (reland) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@patch09
Patch Set: 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_PPC 5 #if V8_TARGET_ARCH_PPC
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 1758 matching lines...) Expand 10 before | Expand all | Expand 10 after
1769 __ CallRuntime(Runtime::kThrowCalledNonCallable, 1); 1769 __ CallRuntime(Runtime::kThrowCalledNonCallable, 1);
1770 } 1770 }
1771 } 1771 }
1772 1772
1773 1773
1774 // static 1774 // static
1775 void Builtins::Generate_ConstructFunction(MacroAssembler* masm) { 1775 void Builtins::Generate_ConstructFunction(MacroAssembler* masm) {
1776 // ----------- S t a t e ------------- 1776 // ----------- S t a t e -------------
1777 // -- r3 : the number of arguments (not including the receiver) 1777 // -- r3 : the number of arguments (not including the receiver)
1778 // -- r4 : the constructor to call (checked to be a JSFunction) 1778 // -- r4 : the constructor to call (checked to be a JSFunction)
1779 // -- r6 : the new target (checked to be a JSFunction) 1779 // -- r6 : the new target (checked to be a constructor)
1780 // ----------------------------------- 1780 // -----------------------------------
1781 __ AssertFunction(r4); 1781 __ AssertFunction(r4);
1782 __ AssertFunction(r6);
1783 1782
1784 // Calling convention for function specific ConstructStubs require 1783 // Calling convention for function specific ConstructStubs require
1785 // r5 to contain either an AllocationSite or undefined. 1784 // r5 to contain either an AllocationSite or undefined.
1786 __ LoadRoot(r5, Heap::kUndefinedValueRootIndex); 1785 __ LoadRoot(r5, Heap::kUndefinedValueRootIndex);
1787 1786
1788 // Tail call to the function-specific construct stub (still in the caller 1787 // Tail call to the function-specific construct stub (still in the caller
1789 // context at this point). 1788 // context at this point).
1790 __ LoadP(r7, FieldMemOperand(r4, JSFunction::kSharedFunctionInfoOffset)); 1789 __ LoadP(r7, FieldMemOperand(r4, JSFunction::kSharedFunctionInfoOffset));
1791 __ LoadP(r7, FieldMemOperand(r7, SharedFunctionInfo::kConstructStubOffset)); 1790 __ LoadP(r7, FieldMemOperand(r7, SharedFunctionInfo::kConstructStubOffset));
1792 __ addi(ip, r7, Operand(Code::kHeaderSize - kHeapObjectTag)); 1791 __ addi(ip, r7, Operand(Code::kHeaderSize - kHeapObjectTag));
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
2011 __ bkpt(0); 2010 __ bkpt(0);
2012 } 2011 }
2013 } 2012 }
2014 2013
2015 2014
2016 #undef __ 2015 #undef __
2017 } // namespace internal 2016 } // namespace internal
2018 } // namespace v8 2017 } // namespace v8
2019 2018
2020 #endif // V8_TARGET_ARCH_PPC 2019 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698