Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(449)

Side by Side Diff: src/full-codegen/ppc/full-codegen-ppc.cc

Issue 1847373002: [debugger] fix step-next for tail calls. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix reloc info Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_PPC 5 #if V8_TARGET_ARCH_PPC
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 2621 matching lines...) Expand 10 before | Expand all | Expand 10 after
2632 2632
2633 void FullCodeGenerator::EmitCall(Call* expr, ConvertReceiverMode mode) { 2633 void FullCodeGenerator::EmitCall(Call* expr, ConvertReceiverMode mode) {
2634 // Load the arguments. 2634 // Load the arguments.
2635 ZoneList<Expression*>* args = expr->arguments(); 2635 ZoneList<Expression*>* args = expr->arguments();
2636 int arg_count = args->length(); 2636 int arg_count = args->length();
2637 for (int i = 0; i < arg_count; i++) { 2637 for (int i = 0; i < arg_count; i++) {
2638 VisitForStackValue(args->at(i)); 2638 VisitForStackValue(args->at(i));
2639 } 2639 }
2640 2640
2641 PrepareForBailoutForId(expr->CallId(), NO_REGISTERS); 2641 PrepareForBailoutForId(expr->CallId(), NO_REGISTERS);
2642 SetCallPosition(expr); 2642 SetCallPosition(expr, expr->tail_call_mode());
2643 if (expr->tail_call_mode() == TailCallMode::kAllow) { 2643 if (expr->tail_call_mode() == TailCallMode::kAllow) {
2644 if (FLAG_trace) { 2644 if (FLAG_trace) {
2645 __ CallRuntime(Runtime::kTraceTailCall); 2645 __ CallRuntime(Runtime::kTraceTailCall);
2646 } 2646 }
2647 // Update profiling counters before the tail call since we will 2647 // Update profiling counters before the tail call since we will
2648 // not return to this function. 2648 // not return to this function.
2649 EmitProfilingCounterHandlingForReturnSequence(true); 2649 EmitProfilingCounterHandlingForReturnSequence(true);
2650 } 2650 }
2651 Handle<Code> ic = 2651 Handle<Code> ic =
2652 CodeFactory::CallIC(isolate(), arg_count, mode, expr->tail_call_mode()) 2652 CodeFactory::CallIC(isolate(), arg_count, mode, expr->tail_call_mode())
(...skipping 1419 matching lines...) Expand 10 before | Expand all | Expand 10 after
4072 4072
4073 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address))); 4073 DCHECK(Assembler::IsCrSet(Assembler::instr_at(cmp_address)));
4074 4074
4075 DCHECK(interrupt_address == 4075 DCHECK(interrupt_address ==
4076 isolate->builtins()->OnStackReplacement()->entry()); 4076 isolate->builtins()->OnStackReplacement()->entry());
4077 return ON_STACK_REPLACEMENT; 4077 return ON_STACK_REPLACEMENT;
4078 } 4078 }
4079 } // namespace internal 4079 } // namespace internal
4080 } // namespace v8 4080 } // namespace v8
4081 #endif // V8_TARGET_ARCH_PPC 4081 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/full-codegen/mips64/full-codegen-mips64.cc ('k') | src/full-codegen/s390/full-codegen-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698