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

Side by Side Diff: src/builtins.cc

Issue 1698273003: [es6] [interpreter] Add tail calls support to Ignition. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@tco-turbo-2
Patch Set: Fixed Bytecodes::IsCallOrNew() 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/builtins.h ('k') | src/code-factory.h » ('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 #include "src/builtins.h" 5 #include "src/builtins.h"
6 6
7 #include "src/api.h" 7 #include "src/api.h"
8 #include "src/api-natives.h" 8 #include "src/api-natives.h"
9 #include "src/arguments.h" 9 #include "src/arguments.h"
10 #include "src/base/once.h" 10 #include "src/base/once.h"
(...skipping 3971 matching lines...) Expand 10 before | Expand all | Expand 10 after
3982 switch (tail_call_mode) { 3982 switch (tail_call_mode) {
3983 case TailCallMode::kDisallow: 3983 case TailCallMode::kDisallow:
3984 return CallBoundFunction(); 3984 return CallBoundFunction();
3985 case TailCallMode::kAllow: 3985 case TailCallMode::kAllow:
3986 return TailCallBoundFunction(); 3986 return TailCallBoundFunction();
3987 } 3987 }
3988 UNREACHABLE(); 3988 UNREACHABLE();
3989 return Handle<Code>::null(); 3989 return Handle<Code>::null();
3990 } 3990 }
3991 3991
3992 Handle<Code> Builtins::InterpreterPushArgsAndCall(TailCallMode tail_call_mode) {
3993 switch (tail_call_mode) {
3994 case TailCallMode::kDisallow:
3995 return InterpreterPushArgsAndCall();
3996 case TailCallMode::kAllow:
3997 return InterpreterPushArgsAndTailCall();
3998 }
3999 UNREACHABLE();
4000 return Handle<Code>::null();
4001 }
3992 4002
3993 namespace { 4003 namespace {
3994 4004
3995 class RelocatableArguments 4005 class RelocatableArguments
3996 : public BuiltinArguments<BuiltinExtraArguments::kTarget>, 4006 : public BuiltinArguments<BuiltinExtraArguments::kTarget>,
3997 public Relocatable { 4007 public Relocatable {
3998 public: 4008 public:
3999 RelocatableArguments(Isolate* isolate, int length, Object** arguments) 4009 RelocatableArguments(Isolate* isolate, int length, Object** arguments)
4000 : BuiltinArguments<BuiltinExtraArguments::kTarget>(length, arguments), 4010 : BuiltinArguments<BuiltinExtraArguments::kTarget>(length, arguments),
4001 Relocatable(isolate) {} 4011 Relocatable(isolate) {}
(...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after
4441 BUILTIN_LIST_C(DEFINE_BUILTIN_ACCESSOR_C) 4451 BUILTIN_LIST_C(DEFINE_BUILTIN_ACCESSOR_C)
4442 BUILTIN_LIST_A(DEFINE_BUILTIN_ACCESSOR_A) 4452 BUILTIN_LIST_A(DEFINE_BUILTIN_ACCESSOR_A)
4443 BUILTIN_LIST_H(DEFINE_BUILTIN_ACCESSOR_H) 4453 BUILTIN_LIST_H(DEFINE_BUILTIN_ACCESSOR_H)
4444 BUILTIN_LIST_DEBUG_A(DEFINE_BUILTIN_ACCESSOR_A) 4454 BUILTIN_LIST_DEBUG_A(DEFINE_BUILTIN_ACCESSOR_A)
4445 #undef DEFINE_BUILTIN_ACCESSOR_C 4455 #undef DEFINE_BUILTIN_ACCESSOR_C
4446 #undef DEFINE_BUILTIN_ACCESSOR_A 4456 #undef DEFINE_BUILTIN_ACCESSOR_A
4447 4457
4448 4458
4449 } // namespace internal 4459 } // namespace internal
4450 } // namespace v8 4460 } // namespace v8
OLDNEW
« no previous file with comments | « src/builtins.h ('k') | src/code-factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698