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

Side by Side Diff: src/full-codegen/arm/full-codegen-arm.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 | « no previous file | src/full-codegen/arm64/full-codegen-arm64.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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_ARM 5 #if V8_TARGET_ARCH_ARM
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 2845 matching lines...) Expand 10 before | Expand all | Expand 10 after
2856 2856
2857 // Touch up the stack with the resolved function. 2857 // Touch up the stack with the resolved function.
2858 __ str(r0, MemOperand(sp, (arg_count + 1) * kPointerSize)); 2858 __ str(r0, MemOperand(sp, (arg_count + 1) * kPointerSize));
2859 2859
2860 PrepareForBailoutForId(expr->EvalId(), NO_REGISTERS); 2860 PrepareForBailoutForId(expr->EvalId(), NO_REGISTERS);
2861 2861
2862 // Record source position for debugger. 2862 // Record source position for debugger.
2863 SetCallPosition(expr); 2863 SetCallPosition(expr);
2864 __ ldr(r1, MemOperand(sp, (arg_count + 1) * kPointerSize)); 2864 __ ldr(r1, MemOperand(sp, (arg_count + 1) * kPointerSize));
2865 __ mov(r0, Operand(arg_count)); 2865 __ mov(r0, Operand(arg_count));
2866 __ Call(isolate()->builtins()->Call(), RelocInfo::CODE_TARGET); 2866 __ Call(isolate()->builtins()->Call(ConvertReceiverMode::kAny,
2867 expr->tail_call_mode()),
2868 RelocInfo::CODE_TARGET);
2867 RecordJSReturnSite(expr); 2869 RecordJSReturnSite(expr);
2868 // Restore context register. 2870 // Restore context register.
2869 __ ldr(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); 2871 __ ldr(cp, MemOperand(fp, StandardFrameConstants::kContextOffset));
2870 context()->DropAndPlug(1, r0); 2872 context()->DropAndPlug(1, r0);
2871 } 2873 }
2872 2874
2873 2875
2874 void FullCodeGenerator::VisitCallNew(CallNew* expr) { 2876 void FullCodeGenerator::VisitCallNew(CallNew* expr) {
2875 Comment cmnt(masm_, "[ CallNew"); 2877 Comment cmnt(masm_, "[ CallNew");
2876 // According to ECMA-262, section 11.2.2, page 44, the function 2878 // According to ECMA-262, section 11.2.2, page 44, the function
(...skipping 1687 matching lines...) Expand 10 before | Expand all | Expand 10 after
4564 DCHECK(interrupt_address == 4566 DCHECK(interrupt_address ==
4565 isolate->builtins()->OsrAfterStackCheck()->entry()); 4567 isolate->builtins()->OsrAfterStackCheck()->entry());
4566 return OSR_AFTER_STACK_CHECK; 4568 return OSR_AFTER_STACK_CHECK;
4567 } 4569 }
4568 4570
4569 4571
4570 } // namespace internal 4572 } // namespace internal
4571 } // namespace v8 4573 } // namespace v8
4572 4574
4573 #endif // V8_TARGET_ARCH_ARM 4575 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/full-codegen/arm64/full-codegen-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698