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

Side by Side Diff: src/full-codegen/arm64/full-codegen-arm64.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
« no previous file with comments | « src/full-codegen/arm/full-codegen-arm.cc ('k') | src/full-codegen/ia32/full-codegen-ia32.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 2651 matching lines...) Expand 10 before | Expand all | Expand 10 after
2662 __ Poke(x0, (arg_count + 1) * kPointerSize); 2662 __ Poke(x0, (arg_count + 1) * kPointerSize);
2663 2663
2664 PrepareForBailoutForId(expr->EvalId(), NO_REGISTERS); 2664 PrepareForBailoutForId(expr->EvalId(), NO_REGISTERS);
2665 2665
2666 // Record source position for debugger. 2666 // Record source position for debugger.
2667 SetCallPosition(expr); 2667 SetCallPosition(expr);
2668 2668
2669 // Call the evaluated function. 2669 // Call the evaluated function.
2670 __ Peek(x1, (arg_count + 1) * kXRegSize); 2670 __ Peek(x1, (arg_count + 1) * kXRegSize);
2671 __ Mov(x0, arg_count); 2671 __ Mov(x0, arg_count);
2672 __ Call(isolate()->builtins()->Call(), RelocInfo::CODE_TARGET); 2672 __ Call(isolate()->builtins()->Call(ConvertReceiverMode::kAny,
2673 expr->tail_call_mode()),
2674 RelocInfo::CODE_TARGET);
2673 RecordJSReturnSite(expr); 2675 RecordJSReturnSite(expr);
2674 // Restore context register. 2676 // Restore context register.
2675 __ Ldr(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); 2677 __ Ldr(cp, MemOperand(fp, StandardFrameConstants::kContextOffset));
2676 context()->DropAndPlug(1, x0); 2678 context()->DropAndPlug(1, x0);
2677 } 2679 }
2678 2680
2679 2681
2680 void FullCodeGenerator::VisitCallNew(CallNew* expr) { 2682 void FullCodeGenerator::VisitCallNew(CallNew* expr) {
2681 Comment cmnt(masm_, "[ CallNew"); 2683 Comment cmnt(masm_, "[ CallNew");
2682 // According to ECMA-262, section 11.2.2, page 44, the function 2684 // According to ECMA-262, section 11.2.2, page 44, the function
(...skipping 1856 matching lines...) Expand 10 before | Expand all | Expand 10 after
4539 } 4541 }
4540 4542
4541 return INTERRUPT; 4543 return INTERRUPT;
4542 } 4544 }
4543 4545
4544 4546
4545 } // namespace internal 4547 } // namespace internal
4546 } // namespace v8 4548 } // namespace v8
4547 4549
4548 #endif // V8_TARGET_ARCH_ARM64 4550 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/full-codegen/arm/full-codegen-arm.cc ('k') | src/full-codegen/ia32/full-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698