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

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

Issue 957823002: Remove ValidateSuperCall (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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/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 3123 matching lines...) Expand 10 before | Expand all | Expand 10 after
3134 __ mov(edx, Immediate(SmiFromSlot(expr->CallNewFeedbackSlot()))); 3134 __ mov(edx, Immediate(SmiFromSlot(expr->CallNewFeedbackSlot())));
3135 3135
3136 CallConstructStub stub(isolate(), RECORD_CONSTRUCTOR_TARGET); 3136 CallConstructStub stub(isolate(), RECORD_CONSTRUCTOR_TARGET);
3137 __ call(stub.GetCode(), RelocInfo::CONSTRUCT_CALL); 3137 __ call(stub.GetCode(), RelocInfo::CONSTRUCT_CALL);
3138 PrepareForBailoutForId(expr->ReturnId(), TOS_REG); 3138 PrepareForBailoutForId(expr->ReturnId(), TOS_REG);
3139 context()->Plug(eax); 3139 context()->Plug(eax);
3140 } 3140 }
3141 3141
3142 3142
3143 void FullCodeGenerator::EmitSuperConstructorCall(Call* expr) { 3143 void FullCodeGenerator::EmitSuperConstructorCall(Call* expr) {
3144 if (!ValidateSuperCall(expr)) return;
3145
3146 Variable* new_target_var = scope()->DeclarationScope()->new_target_var(); 3144 Variable* new_target_var = scope()->DeclarationScope()->new_target_var();
3147 GetVar(eax, new_target_var); 3145 GetVar(eax, new_target_var);
3148 __ push(eax); 3146 __ push(eax);
3149 3147
3150 EmitLoadSuperConstructor(); 3148 EmitLoadSuperConstructor();
3151 __ push(result_register()); 3149 __ push(result_register());
3152 3150
3153 // Push the arguments ("left-to-right") on the stack. 3151 // Push the arguments ("left-to-right") on the stack.
3154 ZoneList<Expression*>* args = expr->arguments(); 3152 ZoneList<Expression*>* args = expr->arguments();
3155 int arg_count = args->length(); 3153 int arg_count = args->length();
(...skipping 2196 matching lines...) Expand 10 before | Expand all | Expand 10 after
5352 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), 5350 DCHECK_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(),
5353 Assembler::target_address_at(call_target_address, 5351 Assembler::target_address_at(call_target_address,
5354 unoptimized_code)); 5352 unoptimized_code));
5355 return OSR_AFTER_STACK_CHECK; 5353 return OSR_AFTER_STACK_CHECK;
5356 } 5354 }
5357 5355
5358 5356
5359 } } // namespace v8::internal 5357 } } // namespace v8::internal
5360 5358
5361 #endif // V8_TARGET_ARCH_X87 5359 #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