OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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_S390 | 5 #if V8_TARGET_ARCH_S390 |
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 2556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2567 | 2567 |
2568 void FullCodeGenerator::EmitCall(Call* expr, ConvertReceiverMode mode) { | 2568 void FullCodeGenerator::EmitCall(Call* expr, ConvertReceiverMode mode) { |
2569 // Load the arguments. | 2569 // Load the arguments. |
2570 ZoneList<Expression*>* args = expr->arguments(); | 2570 ZoneList<Expression*>* args = expr->arguments(); |
2571 int arg_count = args->length(); | 2571 int arg_count = args->length(); |
2572 for (int i = 0; i < arg_count; i++) { | 2572 for (int i = 0; i < arg_count; i++) { |
2573 VisitForStackValue(args->at(i)); | 2573 VisitForStackValue(args->at(i)); |
2574 } | 2574 } |
2575 | 2575 |
2576 PrepareForBailoutForId(expr->CallId(), NO_REGISTERS); | 2576 PrepareForBailoutForId(expr->CallId(), NO_REGISTERS); |
2577 SetCallPosition(expr); | 2577 SetCallPosition(expr, expr->tail_call_mode()); |
2578 if (expr->tail_call_mode() == TailCallMode::kAllow) { | 2578 if (expr->tail_call_mode() == TailCallMode::kAllow) { |
2579 if (FLAG_trace) { | 2579 if (FLAG_trace) { |
2580 __ CallRuntime(Runtime::kTraceTailCall); | 2580 __ CallRuntime(Runtime::kTraceTailCall); |
2581 } | 2581 } |
2582 // Update profiling counters before the tail call since we will | 2582 // Update profiling counters before the tail call since we will |
2583 // not return to this function. | 2583 // not return to this function. |
2584 EmitProfilingCounterHandlingForReturnSequence(true); | 2584 EmitProfilingCounterHandlingForReturnSequence(true); |
2585 } | 2585 } |
2586 Handle<Code> ic = | 2586 Handle<Code> ic = |
2587 CodeFactory::CallIC(isolate(), arg_count, mode, expr->tail_call_mode()) | 2587 CodeFactory::CallIC(isolate(), arg_count, mode, expr->tail_call_mode()) |
(...skipping 1383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3971 DCHECK(kOSRBranchInstruction == br_instr); | 3971 DCHECK(kOSRBranchInstruction == br_instr); |
3972 | 3972 |
3973 DCHECK(interrupt_address == | 3973 DCHECK(interrupt_address == |
3974 isolate->builtins()->OnStackReplacement()->entry()); | 3974 isolate->builtins()->OnStackReplacement()->entry()); |
3975 return ON_STACK_REPLACEMENT; | 3975 return ON_STACK_REPLACEMENT; |
3976 } | 3976 } |
3977 | 3977 |
3978 } // namespace internal | 3978 } // namespace internal |
3979 } // namespace v8 | 3979 } // namespace v8 |
3980 #endif // V8_TARGET_ARCH_S390 | 3980 #endif // V8_TARGET_ARCH_S390 |
OLD | NEW |