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 #if V8_TARGET_ARCH_ARM | 5 #if V8_TARGET_ARCH_ARM |
6 | 6 |
7 #include "src/ast/scopes.h" | 7 #include "src/ast/scopes.h" |
8 #include "src/code-factory.h" | 8 #include "src/code-factory.h" |
9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
(...skipping 3005 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3016 SetConstructCallPosition(expr, arg_count); | 3016 SetConstructCallPosition(expr, arg_count); |
3017 | 3017 |
3018 // Load function and argument count into r1 and r0. | 3018 // Load function and argument count into r1 and r0. |
3019 __ mov(r0, Operand(arg_count)); | 3019 __ mov(r0, Operand(arg_count)); |
3020 __ ldr(r1, MemOperand(sp, arg_count * kPointerSize)); | 3020 __ ldr(r1, MemOperand(sp, arg_count * kPointerSize)); |
3021 | 3021 |
3022 // Record call targets in unoptimized code. | 3022 // Record call targets in unoptimized code. |
3023 __ EmitLoadTypeFeedbackVector(r2); | 3023 __ EmitLoadTypeFeedbackVector(r2); |
3024 __ mov(r3, Operand(SmiFromSlot(expr->CallNewFeedbackSlot()))); | 3024 __ mov(r3, Operand(SmiFromSlot(expr->CallNewFeedbackSlot()))); |
3025 | 3025 |
3026 CallConstructStub stub(isolate()); | 3026 Handle<Code> code = CodeFactory::ConstructIC(isolate()).code(); |
3027 __ Call(stub.GetCode(), RelocInfo::CODE_TARGET); | 3027 __ Call(code, RelocInfo::CODE_TARGET); |
3028 PrepareForBailoutForId(expr->ReturnId(), TOS_REG); | 3028 PrepareForBailoutForId(expr->ReturnId(), TOS_REG); |
3029 // Restore context register. | 3029 // Restore context register. |
3030 __ ldr(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); | 3030 __ ldr(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); |
3031 context()->Plug(r0); | 3031 context()->Plug(r0); |
3032 } | 3032 } |
3033 | 3033 |
3034 | 3034 |
3035 void FullCodeGenerator::EmitSuperConstructorCall(Call* expr) { | 3035 void FullCodeGenerator::EmitSuperConstructorCall(Call* expr) { |
3036 SuperCallReference* super_call_ref = | 3036 SuperCallReference* super_call_ref = |
3037 expr->expression()->AsSuperCallReference(); | 3037 expr->expression()->AsSuperCallReference(); |
(...skipping 1963 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5001 DCHECK(interrupt_address == | 5001 DCHECK(interrupt_address == |
5002 isolate->builtins()->OsrAfterStackCheck()->entry()); | 5002 isolate->builtins()->OsrAfterStackCheck()->entry()); |
5003 return OSR_AFTER_STACK_CHECK; | 5003 return OSR_AFTER_STACK_CHECK; |
5004 } | 5004 } |
5005 | 5005 |
5006 | 5006 |
5007 } // namespace internal | 5007 } // namespace internal |
5008 } // namespace v8 | 5008 } // namespace v8 |
5009 | 5009 |
5010 #endif // V8_TARGET_ARCH_ARM | 5010 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |