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

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

Issue 1609893003: [es6] Tail calls support. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebasing Created 4 years, 11 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/flag-definitions.h ('k') | 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 2851 matching lines...) Expand 10 before | Expand all | Expand 10 after
2862 void FullCodeGenerator::EmitCall(Call* expr, ConvertReceiverMode mode) { 2862 void FullCodeGenerator::EmitCall(Call* expr, ConvertReceiverMode mode) {
2863 // Load the arguments. 2863 // Load the arguments.
2864 ZoneList<Expression*>* args = expr->arguments(); 2864 ZoneList<Expression*>* args = expr->arguments();
2865 int arg_count = args->length(); 2865 int arg_count = args->length();
2866 for (int i = 0; i < arg_count; i++) { 2866 for (int i = 0; i < arg_count; i++) {
2867 VisitForStackValue(args->at(i)); 2867 VisitForStackValue(args->at(i));
2868 } 2868 }
2869 2869
2870 PrepareForBailoutForId(expr->CallId(), NO_REGISTERS); 2870 PrepareForBailoutForId(expr->CallId(), NO_REGISTERS);
2871 SetCallPosition(expr); 2871 SetCallPosition(expr);
2872 Handle<Code> ic = CodeFactory::CallIC(isolate(), arg_count, mode).code(); 2872 Handle<Code> ic =
2873 CodeFactory::CallIC(isolate(), arg_count, mode, expr->tail_call_mode())
2874 .code();
2873 __ mov(r3, Operand(SmiFromSlot(expr->CallFeedbackICSlot()))); 2875 __ mov(r3, Operand(SmiFromSlot(expr->CallFeedbackICSlot())));
2874 __ ldr(r1, MemOperand(sp, (arg_count + 1) * kPointerSize)); 2876 __ ldr(r1, MemOperand(sp, (arg_count + 1) * kPointerSize));
2875 // Don't assign a type feedback id to the IC, since type feedback is provided 2877 // Don't assign a type feedback id to the IC, since type feedback is provided
2876 // by the vector above. 2878 // by the vector above.
2877 CallIC(ic); 2879 CallIC(ic);
2878 2880
2879 RecordJSReturnSite(expr); 2881 RecordJSReturnSite(expr);
2880 // Restore context register. 2882 // Restore context register.
2881 __ ldr(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); 2883 __ ldr(cp, MemOperand(fp, StandardFrameConstants::kContextOffset));
2882 context()->DropAndPlug(1, r0); 2884 context()->DropAndPlug(1, r0);
(...skipping 1970 matching lines...) Expand 10 before | Expand all | Expand 10 after
4853 DCHECK(interrupt_address == 4855 DCHECK(interrupt_address ==
4854 isolate->builtins()->OsrAfterStackCheck()->entry()); 4856 isolate->builtins()->OsrAfterStackCheck()->entry());
4855 return OSR_AFTER_STACK_CHECK; 4857 return OSR_AFTER_STACK_CHECK;
4856 } 4858 }
4857 4859
4858 4860
4859 } // namespace internal 4861 } // namespace internal
4860 } // namespace v8 4862 } // namespace v8
4861 4863
4862 #endif // V8_TARGET_ARCH_ARM 4864 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/full-codegen/arm64/full-codegen-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698