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

Side by Side Diff: src/mips64/builtins-mips64.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/mips/full-codegen-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);
140 __ LoadRoot(a2, Heap::kUndefinedValueRootIndex); 141 __ LoadRoot(a2, Heap::kUndefinedValueRootIndex);
141 ArrayConstructorStub stub(masm->isolate()); 142 ArrayConstructorStub stub(masm->isolate());
142 __ TailCallStub(&stub); 143 __ TailCallStub(&stub);
143 } 144 }
144 145
145 146
146 void Builtins::Generate_StringConstructCode(MacroAssembler* masm) { 147 void Builtins::Generate_StringConstructCode(MacroAssembler* masm) {
147 // ----------- S t a t e ------------- 148 // ----------- S t a t e -------------
148 // -- a0 : number of arguments 149 // -- a0 : number of arguments
149 // -- a1 : constructor function 150 // -- a1 : constructor function
(...skipping 1535 matching lines...) Expand 10 before | Expand all | Expand 10 after
1685 __ break_(0xCC); 1686 __ break_(0xCC);
1686 } 1687 }
1687 } 1688 }
1688 1689
1689 1690
1690 #undef __ 1691 #undef __
1691 1692
1692 } } // namespace v8::internal 1693 } } // namespace v8::internal
1693 1694
1694 #endif // V8_TARGET_ARCH_MIPS64 1695 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips/full-codegen-mips.cc ('k') | src/mips64/code-stubs-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698