| 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_ARM | 7 #if V8_TARGET_ARCH_ARM |
| 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 3255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3266 __ mov(r3, Operand(SmiFromSlot(expr->CallNewFeedbackSlot()))); | 3266 __ mov(r3, Operand(SmiFromSlot(expr->CallNewFeedbackSlot()))); |
| 3267 | 3267 |
| 3268 CallConstructStub stub(isolate(), RECORD_CONSTRUCTOR_TARGET); | 3268 CallConstructStub stub(isolate(), RECORD_CONSTRUCTOR_TARGET); |
| 3269 __ Call(stub.GetCode(), RelocInfo::CONSTRUCT_CALL); | 3269 __ Call(stub.GetCode(), RelocInfo::CONSTRUCT_CALL); |
| 3270 PrepareForBailoutForId(expr->ReturnId(), TOS_REG); | 3270 PrepareForBailoutForId(expr->ReturnId(), TOS_REG); |
| 3271 context()->Plug(r0); | 3271 context()->Plug(r0); |
| 3272 } | 3272 } |
| 3273 | 3273 |
| 3274 | 3274 |
| 3275 void FullCodeGenerator::EmitSuperConstructorCall(Call* expr) { | 3275 void FullCodeGenerator::EmitSuperConstructorCall(Call* expr) { |
| 3276 if (!ValidateSuperCall(expr)) return; | |
| 3277 Variable* new_target_var = scope()->DeclarationScope()->new_target_var(); | 3276 Variable* new_target_var = scope()->DeclarationScope()->new_target_var(); |
| 3278 GetVar(result_register(), new_target_var); | 3277 GetVar(result_register(), new_target_var); |
| 3279 __ Push(result_register()); | 3278 __ Push(result_register()); |
| 3280 | 3279 |
| 3281 EmitLoadSuperConstructor(); | 3280 EmitLoadSuperConstructor(); |
| 3282 __ push(result_register()); | 3281 __ push(result_register()); |
| 3283 | 3282 |
| 3284 // Push the arguments ("left-to-right") on the stack. | 3283 // Push the arguments ("left-to-right") on the stack. |
| 3285 ZoneList<Expression*>* args = expr->arguments(); | 3284 ZoneList<Expression*>* args = expr->arguments(); |
| 3286 int arg_count = args->length(); | 3285 int arg_count = args->length(); |
| (...skipping 2215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5502 | 5501 |
| 5503 DCHECK(interrupt_address == | 5502 DCHECK(interrupt_address == |
| 5504 isolate->builtins()->OsrAfterStackCheck()->entry()); | 5503 isolate->builtins()->OsrAfterStackCheck()->entry()); |
| 5505 return OSR_AFTER_STACK_CHECK; | 5504 return OSR_AFTER_STACK_CHECK; |
| 5506 } | 5505 } |
| 5507 | 5506 |
| 5508 | 5507 |
| 5509 } } // namespace v8::internal | 5508 } } // namespace v8::internal |
| 5510 | 5509 |
| 5511 #endif // V8_TARGET_ARCH_ARM | 5510 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |