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

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

Issue 1711863002: [es6] Fixed POSSIBLY_EVAL_CALL tail calls handling in Full codegen. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 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 2834 matching lines...) Expand 10 before | Expand all | Expand 10 after
2845 2845
2846 // Touch up the stack with the resolved function. 2846 // Touch up the stack with the resolved function.
2847 __ StoreP(r3, MemOperand(sp, (arg_count + 1) * kPointerSize), r0); 2847 __ StoreP(r3, MemOperand(sp, (arg_count + 1) * kPointerSize), r0);
2848 2848
2849 PrepareForBailoutForId(expr->EvalId(), NO_REGISTERS); 2849 PrepareForBailoutForId(expr->EvalId(), NO_REGISTERS);
2850 2850
2851 // Record source position for debugger. 2851 // Record source position for debugger.
2852 SetCallPosition(expr); 2852 SetCallPosition(expr);
2853 __ LoadP(r4, MemOperand(sp, (arg_count + 1) * kPointerSize), r0); 2853 __ LoadP(r4, MemOperand(sp, (arg_count + 1) * kPointerSize), r0);
2854 __ mov(r3, Operand(arg_count)); 2854 __ mov(r3, Operand(arg_count));
2855 __ Call(isolate()->builtins()->Call(), RelocInfo::CODE_TARGET); 2855 __ Call(isolate()->builtins()->Call(ConvertReceiverMode::kAny,
2856 expr->tail_call_mode()),
2857 RelocInfo::CODE_TARGET);
2856 RecordJSReturnSite(expr); 2858 RecordJSReturnSite(expr);
2857 // Restore context register. 2859 // Restore context register.
2858 __ LoadP(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); 2860 __ LoadP(cp, MemOperand(fp, StandardFrameConstants::kContextOffset));
2859 context()->DropAndPlug(1, r3); 2861 context()->DropAndPlug(1, r3);
2860 } 2862 }
2861 2863
2862 2864
2863 void FullCodeGenerator::VisitCallNew(CallNew* expr) { 2865 void FullCodeGenerator::VisitCallNew(CallNew* expr) {
2864 Comment cmnt(masm_, "[ CallNew"); 2866 Comment cmnt(masm_, "[ CallNew");
2865 // According to ECMA-262, section 11.2.2, page 44, the function 2867 // According to ECMA-262, section 11.2.2, page 44, the function
(...skipping 1619 matching lines...) Expand 10 before | Expand all | Expand 10 after
4485 return ON_STACK_REPLACEMENT; 4487 return ON_STACK_REPLACEMENT;
4486 } 4488 }
4487 4489
4488 DCHECK(interrupt_address == 4490 DCHECK(interrupt_address ==
4489 isolate->builtins()->OsrAfterStackCheck()->entry()); 4491 isolate->builtins()->OsrAfterStackCheck()->entry());
4490 return OSR_AFTER_STACK_CHECK; 4492 return OSR_AFTER_STACK_CHECK;
4491 } 4493 }
4492 } // namespace internal 4494 } // namespace internal
4493 } // namespace v8 4495 } // namespace v8
4494 #endif // V8_TARGET_ARCH_PPC 4496 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/full-codegen/mips64/full-codegen-mips64.cc ('k') | src/full-codegen/x64/full-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698