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

Side by Side Diff: src/x64/full-codegen-x64.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/ppc/full-codegen-ppc.cc ('k') | src/x87/full-codegen-x87.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_X64 7 #if V8_TARGET_ARCH_X64
8 8
9 #include "src/code-factory.h" 9 #include "src/code-factory.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 3084 matching lines...) Expand 10 before | Expand all | Expand 10 after
3095 3095
3096 void FullCodeGenerator::VisitCallNew(CallNew* expr) { 3096 void FullCodeGenerator::VisitCallNew(CallNew* expr) {
3097 Comment cmnt(masm_, "[ CallNew"); 3097 Comment cmnt(masm_, "[ CallNew");
3098 // According to ECMA-262, section 11.2.2, page 44, the function 3098 // According to ECMA-262, section 11.2.2, page 44, the function
3099 // expression in new calls must be evaluated before the 3099 // expression in new calls must be evaluated before the
3100 // arguments. 3100 // arguments.
3101 3101
3102 // Push constructor on the stack. If it's not a function it's used as 3102 // Push constructor on the stack. If it's not a function it's used as
3103 // receiver for CALL_NON_FUNCTION, otherwise the value on the stack is 3103 // receiver for CALL_NON_FUNCTION, otherwise the value on the stack is
3104 // ignored. 3104 // ignored.
3105 if (expr->expression()->IsSuperReference()) { 3105 DCHECK(!expr->expression()->IsSuperReference());
3106 EmitLoadSuperConstructor(expr->expression()->AsSuperReference()); 3106 VisitForStackValue(expr->expression());
3107 __ Push(result_register());
3108 } else {
3109 VisitForStackValue(expr->expression());
3110 }
3111 3107
3112 // Push the arguments ("left-to-right") on the stack. 3108 // Push the arguments ("left-to-right") on the stack.
3113 ZoneList<Expression*>* args = expr->arguments(); 3109 ZoneList<Expression*>* args = expr->arguments();
3114 int arg_count = args->length(); 3110 int arg_count = args->length();
3115 for (int i = 0; i < arg_count; i++) { 3111 for (int i = 0; i < arg_count; i++) {
3116 VisitForStackValue(args->at(i)); 3112 VisitForStackValue(args->at(i));
3117 } 3113 }
3118 3114
3119 // Call the construct call builtin that handles allocation and 3115 // Call the construct call builtin that handles allocation and
3120 // constructor invocation. 3116 // constructor invocation.
(...skipping 2194 matching lines...) Expand 10 before | Expand all | Expand 10 after
5315 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), 5311 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(),
5316 Assembler::target_address_at(call_target_address, 5312 Assembler::target_address_at(call_target_address,
5317 unoptimized_code)); 5313 unoptimized_code));
5318 return OSR_AFTER_STACK_CHECK; 5314 return OSR_AFTER_STACK_CHECK;
5319 } 5315 }
5320 5316
5321 5317
5322 } } // namespace v8::internal 5318 } } // namespace v8::internal
5323 5319
5324 #endif // V8_TARGET_ARCH_X64 5320 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/ppc/full-codegen-ppc.cc ('k') | src/x87/full-codegen-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698