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

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

Issue 920173002: MIPS: new classes: no longer experimental. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@gsub-2014-02-12-fdcf3e59ba4af1aa3c5b31a18e615169c97958ab
Patch Set: Fixed pop order. 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/mips/builtins-mips.cc ('k') | src/mips64/builtins-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 3208 matching lines...) Expand 10 before | Expand all | Expand 10 after
3219 __ li(a3, Operand(SmiFromSlot(expr->CallNewFeedbackSlot()))); 3219 __ li(a3, Operand(SmiFromSlot(expr->CallNewFeedbackSlot())));
3220 3220
3221 CallConstructStub stub(isolate(), RECORD_CONSTRUCTOR_TARGET); 3221 CallConstructStub stub(isolate(), RECORD_CONSTRUCTOR_TARGET);
3222 __ Call(stub.GetCode(), RelocInfo::CONSTRUCT_CALL); 3222 __ Call(stub.GetCode(), RelocInfo::CONSTRUCT_CALL);
3223 PrepareForBailoutForId(expr->ReturnId(), TOS_REG); 3223 PrepareForBailoutForId(expr->ReturnId(), TOS_REG);
3224 context()->Plug(v0); 3224 context()->Plug(v0);
3225 } 3225 }
3226 3226
3227 3227
3228 void FullCodeGenerator::EmitSuperConstructorCall(Call* expr) { 3228 void FullCodeGenerator::EmitSuperConstructorCall(Call* expr) {
3229 Comment cmnt(masm_, "[ SuperConstructorCall"); 3229 if (!ValidateSuperCall(expr)) return;
3230 Variable* new_target_var = scope()->DeclarationScope()->new_target_var(); 3230 Variable* new_target_var = scope()->DeclarationScope()->new_target_var();
3231 GetVar(result_register(), new_target_var); 3231 GetVar(result_register(), new_target_var);
3232 __ Push(result_register()); 3232 __ Push(result_register());
3233 3233
3234 EmitLoadSuperConstructor(); 3234 EmitLoadSuperConstructor();
3235 __ push(result_register()); 3235 __ push(result_register());
3236 3236
3237 // Push the arguments ("left-to-right") on the stack. 3237 // Push the arguments ("left-to-right") on the stack.
3238 ZoneList<Expression*>* args = expr->arguments(); 3238 ZoneList<Expression*>* args = expr->arguments();
3239 int arg_count = args->length(); 3239 int arg_count = args->length();
(...skipping 2182 matching lines...) Expand 10 before | Expand all | Expand 10 after
5422 Assembler::target_address_at(pc_immediate_load_address)) == 5422 Assembler::target_address_at(pc_immediate_load_address)) ==
5423 reinterpret_cast<uint32_t>( 5423 reinterpret_cast<uint32_t>(
5424 isolate->builtins()->OsrAfterStackCheck()->entry())); 5424 isolate->builtins()->OsrAfterStackCheck()->entry()));
5425 return OSR_AFTER_STACK_CHECK; 5425 return OSR_AFTER_STACK_CHECK;
5426 } 5426 }
5427 5427
5428 5428
5429 } } // namespace v8::internal 5429 } } // namespace v8::internal
5430 5430
5431 #endif // V8_TARGET_ARCH_MIPS 5431 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/builtins-mips.cc ('k') | src/mips64/builtins-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698