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

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

Issue 957823002: Remove ValidateSuperCall (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/mips64/full-codegen-mips64.cc ('k') | src/x64/full-codegen-x64.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_PPC 7 #if V8_TARGET_ARCH_PPC
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 3244 matching lines...) Expand 10 before | Expand all | Expand 10 after
3255 __ LoadSmiLiteral(r6, SmiFromSlot(expr->CallNewFeedbackSlot())); 3255 __ LoadSmiLiteral(r6, SmiFromSlot(expr->CallNewFeedbackSlot()));
3256 3256
3257 CallConstructStub stub(isolate(), RECORD_CONSTRUCTOR_TARGET); 3257 CallConstructStub stub(isolate(), RECORD_CONSTRUCTOR_TARGET);
3258 __ Call(stub.GetCode(), RelocInfo::CONSTRUCT_CALL); 3258 __ Call(stub.GetCode(), RelocInfo::CONSTRUCT_CALL);
3259 PrepareForBailoutForId(expr->ReturnId(), TOS_REG); 3259 PrepareForBailoutForId(expr->ReturnId(), TOS_REG);
3260 context()->Plug(r3); 3260 context()->Plug(r3);
3261 } 3261 }
3262 3262
3263 3263
3264 void FullCodeGenerator::EmitSuperConstructorCall(Call* expr) { 3264 void FullCodeGenerator::EmitSuperConstructorCall(Call* expr) {
3265 if (!ValidateSuperCall(expr)) return;
3266 Variable* new_target_var = scope()->DeclarationScope()->new_target_var(); 3265 Variable* new_target_var = scope()->DeclarationScope()->new_target_var();
3267 GetVar(result_register(), new_target_var); 3266 GetVar(result_register(), new_target_var);
3268 __ Push(result_register()); 3267 __ Push(result_register());
3269 3268
3270 EmitLoadSuperConstructor(); 3269 EmitLoadSuperConstructor();
3271 __ push(result_register()); 3270 __ push(result_register());
3272 3271
3273 // Push the arguments ("left-to-right") on the stack. 3272 // Push the arguments ("left-to-right") on the stack.
3274 ZoneList<Expression*>* args = expr->arguments(); 3273 ZoneList<Expression*>* args = expr->arguments();
3275 int arg_count = args->length(); 3274 int arg_count = args->length();
(...skipping 2169 matching lines...) Expand 10 before | Expand all | Expand 10 after
5445 return ON_STACK_REPLACEMENT; 5444 return ON_STACK_REPLACEMENT;
5446 } 5445 }
5447 5446
5448 DCHECK(interrupt_address == 5447 DCHECK(interrupt_address ==
5449 isolate->builtins()->OsrAfterStackCheck()->entry()); 5448 isolate->builtins()->OsrAfterStackCheck()->entry());
5450 return OSR_AFTER_STACK_CHECK; 5449 return OSR_AFTER_STACK_CHECK;
5451 } 5450 }
5452 } 5451 }
5453 } // namespace v8::internal 5452 } // namespace v8::internal
5454 #endif // V8_TARGET_ARCH_PPC 5453 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/mips64/full-codegen-mips64.cc ('k') | src/x64/full-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698