| 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 3244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3255 __ mov(r3, Operand(SmiFromSlot(expr->CallNewFeedbackSlot()))); | 3255 __ mov(r3, Operand(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(r0); | 3260 context()->Plug(r0); |
| 3261 } | 3261 } |
| 3262 | 3262 |
| 3263 | 3263 |
| 3264 void FullCodeGenerator::EmitSuperConstructorCall(Call* expr) { | 3264 void FullCodeGenerator::EmitSuperConstructorCall(Call* expr) { |
| 3265 Comment cmnt(masm_, "[ SuperConstructorCall"); | 3265 if (!ValidateSuperCall(expr)) return; |
| 3266 Variable* new_target_var = scope()->DeclarationScope()->new_target_var(); | 3266 Variable* new_target_var = scope()->DeclarationScope()->new_target_var(); |
| 3267 GetVar(result_register(), new_target_var); | 3267 GetVar(result_register(), new_target_var); |
| 3268 __ Push(result_register()); | 3268 __ Push(result_register()); |
| 3269 | 3269 |
| 3270 EmitLoadSuperConstructor(); | 3270 EmitLoadSuperConstructor(); |
| 3271 __ push(result_register()); | 3271 __ push(result_register()); |
| 3272 | 3272 |
| 3273 // Push the arguments ("left-to-right") on the stack. | 3273 // Push the arguments ("left-to-right") on the stack. |
| 3274 ZoneList<Expression*>* args = expr->arguments(); | 3274 ZoneList<Expression*>* args = expr->arguments(); |
| 3275 int arg_count = args->length(); | 3275 int arg_count = args->length(); |
| (...skipping 2214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5490 | 5490 |
| 5491 DCHECK(interrupt_address == | 5491 DCHECK(interrupt_address == |
| 5492 isolate->builtins()->OsrAfterStackCheck()->entry()); | 5492 isolate->builtins()->OsrAfterStackCheck()->entry()); |
| 5493 return OSR_AFTER_STACK_CHECK; | 5493 return OSR_AFTER_STACK_CHECK; |
| 5494 } | 5494 } |
| 5495 | 5495 |
| 5496 | 5496 |
| 5497 } } // namespace v8::internal | 5497 } } // namespace v8::internal |
| 5498 | 5498 |
| 5499 #endif // V8_TARGET_ARCH_ARM | 5499 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |