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

Side by Side Diff: src/x87/full-codegen-x87.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/x64/full-codegen-x64.cc ('k') | no next file » | 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_X87 7 #if V8_TARGET_ARCH_X87
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 3066 matching lines...) Expand 10 before | Expand all | Expand 10 after
3077 3077
3078 void FullCodeGenerator::VisitCallNew(CallNew* expr) { 3078 void FullCodeGenerator::VisitCallNew(CallNew* expr) {
3079 Comment cmnt(masm_, "[ CallNew"); 3079 Comment cmnt(masm_, "[ CallNew");
3080 // According to ECMA-262, section 11.2.2, page 44, the function 3080 // According to ECMA-262, section 11.2.2, page 44, the function
3081 // expression in new calls must be evaluated before the 3081 // expression in new calls must be evaluated before the
3082 // arguments. 3082 // arguments.
3083 3083
3084 // Push constructor on the stack. If it's not a function it's used as 3084 // Push constructor on the stack. If it's not a function it's used as
3085 // receiver for CALL_NON_FUNCTION, otherwise the value on the stack is 3085 // receiver for CALL_NON_FUNCTION, otherwise the value on the stack is
3086 // ignored. 3086 // ignored.
3087 if (expr->expression()->IsSuperReference()) { 3087 DCHECK(!expr->expression()->IsSuperReference());
3088 EmitLoadSuperConstructor(expr->expression()->AsSuperReference()); 3088 VisitForStackValue(expr->expression());
3089 __ push(result_register());
3090 } else {
3091 VisitForStackValue(expr->expression());
3092 }
3093 3089
3094 // Push the arguments ("left-to-right") on the stack. 3090 // Push the arguments ("left-to-right") on the stack.
3095 ZoneList<Expression*>* args = expr->arguments(); 3091 ZoneList<Expression*>* args = expr->arguments();
3096 int arg_count = args->length(); 3092 int arg_count = args->length();
3097 for (int i = 0; i < arg_count; i++) { 3093 for (int i = 0; i < arg_count; i++) {
3098 VisitForStackValue(args->at(i)); 3094 VisitForStackValue(args->at(i));
3099 } 3095 }
3100 3096
3101 // Call the construct call builtin that handles allocation and 3097 // Call the construct call builtin that handles allocation and
3102 // constructor invocation. 3098 // constructor invocation.
(...skipping 2175 matching lines...) Expand 10 before | Expand all | Expand 10 after
5278 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), 5274 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(),
5279 Assembler::target_address_at(call_target_address, 5275 Assembler::target_address_at(call_target_address,
5280 unoptimized_code)); 5276 unoptimized_code));
5281 return OSR_AFTER_STACK_CHECK; 5277 return OSR_AFTER_STACK_CHECK;
5282 } 5278 }
5283 5279
5284 5280
5285 } } // namespace v8::internal 5281 } } // namespace v8::internal
5286 5282
5287 #endif // V8_TARGET_ARCH_X87 5283 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/x64/full-codegen-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698