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 2620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2631 | 2631 |
2632 void FullCodeGenerator::EmitCall(Call* expr, ConvertReceiverMode mode) { | 2632 void FullCodeGenerator::EmitCall(Call* expr, ConvertReceiverMode mode) { |
2633 // Load the arguments. | 2633 // Load the arguments. |
2634 ZoneList<Expression*>* args = expr->arguments(); | 2634 ZoneList<Expression*>* args = expr->arguments(); |
2635 int arg_count = args->length(); | 2635 int arg_count = args->length(); |
2636 for (int i = 0; i < arg_count; i++) { | 2636 for (int i = 0; i < arg_count; i++) { |
2637 VisitForStackValue(args->at(i)); | 2637 VisitForStackValue(args->at(i)); |
2638 } | 2638 } |
2639 | 2639 |
2640 PrepareForBailoutForId(expr->CallId(), NO_REGISTERS); | 2640 PrepareForBailoutForId(expr->CallId(), NO_REGISTERS); |
2641 SetCallPosition(expr); | 2641 SetCallPosition(expr, expr->tail_call_mode()); |
2642 if (expr->tail_call_mode() == TailCallMode::kAllow) { | 2642 if (expr->tail_call_mode() == TailCallMode::kAllow) { |
2643 if (FLAG_trace) { | 2643 if (FLAG_trace) { |
2644 __ CallRuntime(Runtime::kTraceTailCall); | 2644 __ CallRuntime(Runtime::kTraceTailCall); |
2645 } | 2645 } |
2646 // Update profiling counters before the tail call since we will | 2646 // Update profiling counters before the tail call since we will |
2647 // not return to this function. | 2647 // not return to this function. |
2648 EmitProfilingCounterHandlingForReturnSequence(true); | 2648 EmitProfilingCounterHandlingForReturnSequence(true); |
2649 } | 2649 } |
2650 Handle<Code> ic = | 2650 Handle<Code> ic = |
2651 CodeFactory::CallIC(isolate(), arg_count, mode, expr->tail_call_mode()) | 2651 CodeFactory::CallIC(isolate(), arg_count, mode, expr->tail_call_mode()) |
(...skipping 1504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4156 DCHECK(interrupt_address == | 4156 DCHECK(interrupt_address == |
4157 isolate->builtins()->OnStackReplacement()->entry()); | 4157 isolate->builtins()->OnStackReplacement()->entry()); |
4158 return ON_STACK_REPLACEMENT; | 4158 return ON_STACK_REPLACEMENT; |
4159 } | 4159 } |
4160 | 4160 |
4161 | 4161 |
4162 } // namespace internal | 4162 } // namespace internal |
4163 } // namespace v8 | 4163 } // namespace v8 |
4164 | 4164 |
4165 #endif // V8_TARGET_ARCH_ARM | 4165 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |