| 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>( // --
|
|
|