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

Side by Side Diff: src/mips/full-codegen-mips.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/ia32/full-codegen-ia32.cc ('k') | src/mips64/full-codegen-mips64.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_MIPS 7 #if V8_TARGET_ARCH_MIPS
8 8
9 // Note on Mips implementation: 9 // Note on Mips implementation:
10 // 10 //
(...skipping 3229 matching lines...) Expand 10 before | Expand all | Expand 10 after
3240 __ li(a3, Operand(SmiFromSlot(expr->CallNewFeedbackSlot()))); 3240 __ li(a3, Operand(SmiFromSlot(expr->CallNewFeedbackSlot())));
3241 3241
3242 CallConstructStub stub(isolate(), RECORD_CONSTRUCTOR_TARGET); 3242 CallConstructStub stub(isolate(), RECORD_CONSTRUCTOR_TARGET);
3243 __ Call(stub.GetCode(), RelocInfo::CONSTRUCT_CALL); 3243 __ Call(stub.GetCode(), RelocInfo::CONSTRUCT_CALL);
3244 PrepareForBailoutForId(expr->ReturnId(), TOS_REG); 3244 PrepareForBailoutForId(expr->ReturnId(), TOS_REG);
3245 context()->Plug(v0); 3245 context()->Plug(v0);
3246 } 3246 }
3247 3247
3248 3248
3249 void FullCodeGenerator::EmitSuperConstructorCall(Call* expr) { 3249 void FullCodeGenerator::EmitSuperConstructorCall(Call* expr) {
3250 if (!ValidateSuperCall(expr)) return;
3251 Variable* new_target_var = scope()->DeclarationScope()->new_target_var(); 3250 Variable* new_target_var = scope()->DeclarationScope()->new_target_var();
3252 GetVar(result_register(), new_target_var); 3251 GetVar(result_register(), new_target_var);
3253 __ Push(result_register()); 3252 __ Push(result_register());
3254 3253
3255 EmitLoadSuperConstructor(); 3254 EmitLoadSuperConstructor();
3256 __ push(result_register()); 3255 __ push(result_register());
3257 3256
3258 // Push the arguments ("left-to-right") on the stack. 3257 // Push the arguments ("left-to-right") on the stack.
3259 ZoneList<Expression*>* args = expr->arguments(); 3258 ZoneList<Expression*>* args = expr->arguments();
3260 int arg_count = args->length(); 3259 int arg_count = args->length();
(...skipping 2183 matching lines...) Expand 10 before | Expand all | Expand 10 after
5444 Assembler::target_address_at(pc_immediate_load_address)) == 5443 Assembler::target_address_at(pc_immediate_load_address)) ==
5445 reinterpret_cast<uint32_t>( 5444 reinterpret_cast<uint32_t>(
5446 isolate->builtins()->OsrAfterStackCheck()->entry())); 5445 isolate->builtins()->OsrAfterStackCheck()->entry()));
5447 return OSR_AFTER_STACK_CHECK; 5446 return OSR_AFTER_STACK_CHECK;
5448 } 5447 }
5449 5448
5450 5449
5451 } } // namespace v8::internal 5450 } } // namespace v8::internal
5452 5451
5453 #endif // V8_TARGET_ARCH_MIPS 5452 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/ia32/full-codegen-ia32.cc ('k') | src/mips64/full-codegen-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698