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

Side by Side Diff: src/mips64/full-codegen-mips64.cc

Issue 911223002: Remove dead code related to new super (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 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/ppc/full-codegen-ppc.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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_MIPS64 7 #if V8_TARGET_ARCH_MIPS64
8 8
9 // Note on Mips implementation: 9 // Note on Mips implementation:
10 // 10 //
(...skipping 3171 matching lines...) Expand 10 before | Expand all | Expand 10 after
3182 3182
3183 void FullCodeGenerator::VisitCallNew(CallNew* expr) { 3183 void FullCodeGenerator::VisitCallNew(CallNew* expr) {
3184 Comment cmnt(masm_, "[ CallNew"); 3184 Comment cmnt(masm_, "[ CallNew");
3185 // According to ECMA-262, section 11.2.2, page 44, the function 3185 // According to ECMA-262, section 11.2.2, page 44, the function
3186 // expression in new calls must be evaluated before the 3186 // expression in new calls must be evaluated before the
3187 // arguments. 3187 // arguments.
3188 3188
3189 // Push constructor on the stack. If it's not a function it's used as 3189 // Push constructor on the stack. If it's not a function it's used as
3190 // receiver for CALL_NON_FUNCTION, otherwise the value on the stack is 3190 // receiver for CALL_NON_FUNCTION, otherwise the value on the stack is
3191 // ignored. 3191 // ignored.
3192 if (expr->expression()->IsSuperReference()) { 3192 DCHECK(!expr->expression()->IsSuperReference());
3193 EmitLoadSuperConstructor(expr->expression()->AsSuperReference()); 3193 VisitForStackValue(expr->expression());
3194 __ Push(result_register());
3195 } else {
3196 VisitForStackValue(expr->expression());
3197 }
3198 3194
3199 // Push the arguments ("left-to-right") on the stack. 3195 // Push the arguments ("left-to-right") on the stack.
3200 ZoneList<Expression*>* args = expr->arguments(); 3196 ZoneList<Expression*>* args = expr->arguments();
3201 int arg_count = args->length(); 3197 int arg_count = args->length();
3202 for (int i = 0; i < arg_count; i++) { 3198 for (int i = 0; i < arg_count; i++) {
3203 VisitForStackValue(args->at(i)); 3199 VisitForStackValue(args->at(i));
3204 } 3200 }
3201
3205 // Call the construct call builtin that handles allocation and 3202 // Call the construct call builtin that handles allocation and
3206 // constructor invocation. 3203 // constructor invocation.
3207 SetSourcePosition(expr->position()); 3204 SetSourcePosition(expr->position());
3208 3205
3209 // Load function and argument count into a1 and a0. 3206 // Load function and argument count into a1 and a0.
3210 __ li(a0, Operand(arg_count)); 3207 __ li(a0, Operand(arg_count));
3211 __ ld(a1, MemOperand(sp, arg_count * kPointerSize)); 3208 __ ld(a1, MemOperand(sp, arg_count * kPointerSize));
3212 3209
3213 // Record call targets in unoptimized code. 3210 // Record call targets in unoptimized code.
3214 if (FLAG_pretenuring_call_new) { 3211 if (FLAG_pretenuring_call_new) {
(...skipping 2153 matching lines...) Expand 10 before | Expand all | Expand 10 after
5368 Assembler::target_address_at(pc_immediate_load_address)) == 5365 Assembler::target_address_at(pc_immediate_load_address)) ==
5369 reinterpret_cast<uint64_t>( 5366 reinterpret_cast<uint64_t>(
5370 isolate->builtins()->OsrAfterStackCheck()->entry())); 5367 isolate->builtins()->OsrAfterStackCheck()->entry()));
5371 return OSR_AFTER_STACK_CHECK; 5368 return OSR_AFTER_STACK_CHECK;
5372 } 5369 }
5373 5370
5374 5371
5375 } } // namespace v8::internal 5372 } } // namespace v8::internal
5376 5373
5377 #endif // V8_TARGET_ARCH_MIPS64 5374 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips/full-codegen-mips.cc ('k') | src/ppc/full-codegen-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698