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

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

Issue 965053002: Revert of Disallow subclassing Arrays. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 9 months 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 | « src/mips/code-stubs-mips.cc ('k') | src/mips64/code-stubs-mips64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 __ SmiTst(a2, a4); 130 __ SmiTst(a2, a4);
131 __ Assert(ne, kUnexpectedInitialMapForArrayFunction1, 131 __ Assert(ne, kUnexpectedInitialMapForArrayFunction1,
132 a4, Operand(zero_reg)); 132 a4, Operand(zero_reg));
133 __ GetObjectType(a2, a3, a4); 133 __ GetObjectType(a2, a3, a4);
134 __ Assert(eq, kUnexpectedInitialMapForArrayFunction2, 134 __ Assert(eq, kUnexpectedInitialMapForArrayFunction2,
135 a4, Operand(MAP_TYPE)); 135 a4, Operand(MAP_TYPE));
136 } 136 }
137 137
138 // Run the native code for the Array function called as a normal function. 138 // Run the native code for the Array function called as a normal function.
139 // Tail call a stub. 139 // Tail call a stub.
140 __ mov(a3, a1);
141 __ LoadRoot(a2, Heap::kUndefinedValueRootIndex); 140 __ LoadRoot(a2, Heap::kUndefinedValueRootIndex);
142 ArrayConstructorStub stub(masm->isolate()); 141 ArrayConstructorStub stub(masm->isolate());
143 __ TailCallStub(&stub); 142 __ TailCallStub(&stub);
144 } 143 }
145 144
146 145
147 void Builtins::Generate_StringConstructCode(MacroAssembler* masm) { 146 void Builtins::Generate_StringConstructCode(MacroAssembler* masm) {
148 // ----------- S t a t e ------------- 147 // ----------- S t a t e -------------
149 // -- a0 : number of arguments 148 // -- a0 : number of arguments
150 // -- a1 : constructor function 149 // -- a1 : constructor function
(...skipping 1535 matching lines...) Expand 10 before | Expand all | Expand 10 after
1686 __ break_(0xCC); 1685 __ break_(0xCC);
1687 } 1686 }
1688 } 1687 }
1689 1688
1690 1689
1691 #undef __ 1690 #undef __
1692 1691
1693 } } // namespace v8::internal 1692 } } // namespace v8::internal
1694 1693
1695 #endif // V8_TARGET_ARCH_MIPS64 1694 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips/code-stubs-mips.cc ('k') | src/mips64/code-stubs-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698