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

Side by Side Diff: src/mips/builtins-mips.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/messages.js ('k') | src/mips/code-stubs-mips.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_MIPS 9 #if V8_TARGET_ARCH_MIPS
10 10
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 __ SmiTst(a2, t0); 131 __ SmiTst(a2, t0);
132 __ Assert(ne, kUnexpectedInitialMapForArrayFunction1, 132 __ Assert(ne, kUnexpectedInitialMapForArrayFunction1,
133 t0, Operand(zero_reg)); 133 t0, Operand(zero_reg));
134 __ GetObjectType(a2, a3, t0); 134 __ GetObjectType(a2, a3, t0);
135 __ Assert(eq, kUnexpectedInitialMapForArrayFunction2, 135 __ Assert(eq, kUnexpectedInitialMapForArrayFunction2,
136 t0, Operand(MAP_TYPE)); 136 t0, Operand(MAP_TYPE));
137 } 137 }
138 138
139 // Run the native code for the Array function called as a normal function. 139 // Run the native code for the Array function called as a normal function.
140 // Tail call a stub. 140 // Tail call a stub.
141 __ mov(a3, a1);
142 __ LoadRoot(a2, Heap::kUndefinedValueRootIndex); 141 __ LoadRoot(a2, Heap::kUndefinedValueRootIndex);
143 ArrayConstructorStub stub(masm->isolate()); 142 ArrayConstructorStub stub(masm->isolate());
144 __ TailCallStub(&stub); 143 __ TailCallStub(&stub);
145 } 144 }
146 145
147 146
148 void Builtins::Generate_StringConstructCode(MacroAssembler* masm) { 147 void Builtins::Generate_StringConstructCode(MacroAssembler* masm) {
149 // ----------- S t a t e ------------- 148 // ----------- S t a t e -------------
150 // -- a0 : number of arguments 149 // -- a0 : number of arguments
151 // -- a1 : constructor function 150 // -- a1 : constructor function
(...skipping 1525 matching lines...) Expand 10 before | Expand all | Expand 10 after
1677 __ break_(0xCC); 1676 __ break_(0xCC);
1678 } 1677 }
1679 } 1678 }
1680 1679
1681 1680
1682 #undef __ 1681 #undef __
1683 1682
1684 } } // namespace v8::internal 1683 } } // namespace v8::internal
1685 1684
1686 #endif // V8_TARGET_ARCH_MIPS 1685 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/messages.js ('k') | src/mips/code-stubs-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698