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

Unified Diff: src/compiler/js-operator.cc

Issue 1259203002: [turbofan] Implement tail calls with differing stack parameter counts (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix bugs in frameless tail calls Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: src/compiler/js-operator.cc
diff --git a/src/compiler/js-operator.cc b/src/compiler/js-operator.cc
index 6a5bdfd69219dda85d691a80e6238fded8603a19..fe8f061d630a490ee5a5e9ad4ecebcc071bbf97e 100644
--- a/src/compiler/js-operator.cc
+++ b/src/compiler/js-operator.cc
@@ -62,7 +62,9 @@ size_t hash_value(CallRuntimeParameters const& p) {
std::ostream& operator<<(std::ostream& os, CallRuntimeParameters const& p) {
- return os << p.id() << ", " << p.arity();
+ return os << p.id() << ", " << p.arity() << ", "
+ << ((p.mode() == ALLOW_TAIL_CALLS) ? "ALLOW_TAIL_CALLS"
+ : "NO_TAIL_CALLS");
}
@@ -538,8 +540,9 @@ const Operator* JSOperatorBuilder::CallFunction(size_t arity,
const Operator* JSOperatorBuilder::CallRuntime(Runtime::FunctionId id,
- size_t arity) {
- CallRuntimeParameters parameters(id, arity);
+ size_t arity,
+ TailCallMode mode) {
+ CallRuntimeParameters parameters(id, arity, mode);
const Runtime::Function* f = Runtime::FunctionForId(parameters.id());
DCHECK(f->nargs == -1 || f->nargs == static_cast<int>(parameters.arity()));
return new (zone()) Operator1<CallRuntimeParameters>( // --

Powered by Google App Engine
This is Rietveld 408576698