OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_ARM64 | 5 #if V8_TARGET_ARCH_ARM64 |
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 2418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2429 void FullCodeGenerator::EmitCall(Call* expr, ConvertReceiverMode mode) { | 2429 void FullCodeGenerator::EmitCall(Call* expr, ConvertReceiverMode mode) { |
2430 ASM_LOCATION("FullCodeGenerator::EmitCall"); | 2430 ASM_LOCATION("FullCodeGenerator::EmitCall"); |
2431 // Load the arguments. | 2431 // Load the arguments. |
2432 ZoneList<Expression*>* args = expr->arguments(); | 2432 ZoneList<Expression*>* args = expr->arguments(); |
2433 int arg_count = args->length(); | 2433 int arg_count = args->length(); |
2434 for (int i = 0; i < arg_count; i++) { | 2434 for (int i = 0; i < arg_count; i++) { |
2435 VisitForStackValue(args->at(i)); | 2435 VisitForStackValue(args->at(i)); |
2436 } | 2436 } |
2437 | 2437 |
2438 PrepareForBailoutForId(expr->CallId(), NO_REGISTERS); | 2438 PrepareForBailoutForId(expr->CallId(), NO_REGISTERS); |
2439 SetCallPosition(expr); | 2439 SetCallPosition(expr, expr->tail_call_mode()); |
2440 if (expr->tail_call_mode() == TailCallMode::kAllow) { | 2440 if (expr->tail_call_mode() == TailCallMode::kAllow) { |
2441 if (FLAG_trace) { | 2441 if (FLAG_trace) { |
2442 __ CallRuntime(Runtime::kTraceTailCall); | 2442 __ CallRuntime(Runtime::kTraceTailCall); |
2443 } | 2443 } |
2444 // Update profiling counters before the tail call since we will | 2444 // Update profiling counters before the tail call since we will |
2445 // not return to this function. | 2445 // not return to this function. |
2446 EmitProfilingCounterHandlingForReturnSequence(true); | 2446 EmitProfilingCounterHandlingForReturnSequence(true); |
2447 } | 2447 } |
2448 Handle<Code> ic = | 2448 Handle<Code> ic = |
2449 CodeFactory::CallIC(isolate(), arg_count, mode, expr->tail_call_mode()) | 2449 CodeFactory::CallIC(isolate(), arg_count, mode, expr->tail_call_mode()) |
(...skipping 1703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4153 } | 4153 } |
4154 | 4154 |
4155 return INTERRUPT; | 4155 return INTERRUPT; |
4156 } | 4156 } |
4157 | 4157 |
4158 | 4158 |
4159 } // namespace internal | 4159 } // namespace internal |
4160 } // namespace v8 | 4160 } // namespace v8 |
4161 | 4161 |
4162 #endif // V8_TARGET_ARCH_ARM64 | 4162 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |