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

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

Issue 962263002: Disallow subclassing Arrays. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fixes for debug-code issues 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);
141 __ LoadRoot(a2, Heap::kUndefinedValueRootIndex); 142 __ LoadRoot(a2, Heap::kUndefinedValueRootIndex);
142 ArrayConstructorStub stub(masm->isolate()); 143 ArrayConstructorStub stub(masm->isolate());
143 __ TailCallStub(&stub); 144 __ TailCallStub(&stub);
144 } 145 }
145 146
146 147
147 void Builtins::Generate_StringConstructCode(MacroAssembler* masm) { 148 void Builtins::Generate_StringConstructCode(MacroAssembler* masm) {
148 // ----------- S t a t e ------------- 149 // ----------- S t a t e -------------
149 // -- a0 : number of arguments 150 // -- a0 : number of arguments
150 // -- a1 : constructor function 151 // -- a1 : constructor function
(...skipping 1525 matching lines...) Expand 10 before | Expand all | Expand 10 after
1676 __ break_(0xCC); 1677 __ break_(0xCC);
1677 } 1678 }
1678 } 1679 }
1679 1680
1680 1681
1681 #undef __ 1682 #undef __
1682 1683
1683 } } // namespace v8::internal 1684 } } // namespace v8::internal
1684 1685
1685 #endif // V8_TARGET_ARCH_MIPS 1686 #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