| OLD | NEW |
| 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_MIPS64 | 7 #if V8_TARGET_ARCH_MIPS64 |
| 8 | 8 |
| 9 // Note on Mips implementation: | 9 // Note on Mips implementation: |
| 10 // | 10 // |
| (...skipping 3207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3218 __ li(a3, Operand(SmiFromSlot(expr->CallNewFeedbackSlot()))); | 3218 __ li(a3, Operand(SmiFromSlot(expr->CallNewFeedbackSlot()))); |
| 3219 | 3219 |
| 3220 CallConstructStub stub(isolate(), RECORD_CONSTRUCTOR_TARGET); | 3220 CallConstructStub stub(isolate(), RECORD_CONSTRUCTOR_TARGET); |
| 3221 __ Call(stub.GetCode(), RelocInfo::CONSTRUCT_CALL); | 3221 __ Call(stub.GetCode(), RelocInfo::CONSTRUCT_CALL); |
| 3222 PrepareForBailoutForId(expr->ReturnId(), TOS_REG); | 3222 PrepareForBailoutForId(expr->ReturnId(), TOS_REG); |
| 3223 context()->Plug(v0); | 3223 context()->Plug(v0); |
| 3224 } | 3224 } |
| 3225 | 3225 |
| 3226 | 3226 |
| 3227 void FullCodeGenerator::EmitSuperConstructorCall(Call* expr) { | 3227 void FullCodeGenerator::EmitSuperConstructorCall(Call* expr) { |
| 3228 Comment cmnt(masm_, "[ SuperConstructorCall"); | 3228 if (!ValidateSuperCall(expr)) return; |
| 3229 Variable* new_target_var = scope()->DeclarationScope()->new_target_var(); | 3229 Variable* new_target_var = scope()->DeclarationScope()->new_target_var(); |
| 3230 GetVar(result_register(), new_target_var); | 3230 GetVar(result_register(), new_target_var); |
| 3231 __ Push(result_register()); | 3231 __ Push(result_register()); |
| 3232 | 3232 |
| 3233 EmitLoadSuperConstructor(); | 3233 EmitLoadSuperConstructor(); |
| 3234 __ push(result_register()); | 3234 __ push(result_register()); |
| 3235 | 3235 |
| 3236 // Push the arguments ("left-to-right") on the stack. | 3236 // Push the arguments ("left-to-right") on the stack. |
| 3237 ZoneList<Expression*>* args = expr->arguments(); | 3237 ZoneList<Expression*>* args = expr->arguments(); |
| 3238 int arg_count = args->length(); | 3238 int arg_count = args->length(); |
| (...skipping 2188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5427 Assembler::target_address_at(pc_immediate_load_address)) == | 5427 Assembler::target_address_at(pc_immediate_load_address)) == |
| 5428 reinterpret_cast<uint64_t>( | 5428 reinterpret_cast<uint64_t>( |
| 5429 isolate->builtins()->OsrAfterStackCheck()->entry())); | 5429 isolate->builtins()->OsrAfterStackCheck()->entry())); |
| 5430 return OSR_AFTER_STACK_CHECK; | 5430 return OSR_AFTER_STACK_CHECK; |
| 5431 } | 5431 } |
| 5432 | 5432 |
| 5433 | 5433 |
| 5434 } } // namespace v8::internal | 5434 } } // namespace v8::internal |
| 5435 | 5435 |
| 5436 #endif // V8_TARGET_ARCH_MIPS64 | 5436 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |