| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |