| Index: src/compiler.cc
|
| diff --git a/src/compiler.cc b/src/compiler.cc
|
| index dce817129c0d339b686b1423015e6525dbb94fc4..adb6eaf8d84b8059a87b2d2be55e7398eb04c9d7 100644
|
| --- a/src/compiler.cc
|
| +++ b/src/compiler.cc
|
| @@ -299,14 +299,14 @@ OptimizingCompiler::Status OptimizingCompiler::CreateGraph() {
|
| //
|
| // The encoding is as a signed value, with parameters and receiver using
|
| // the negative indices and locals the non-negative ones.
|
| - const int parameter_limit = -LUnallocated::kMinFixedIndex;
|
| + const int parameter_limit = -LUnallocated::kMinFixedSlotIndex;
|
| Scope* scope = info()->scope();
|
| if ((scope->num_parameters() + 1) > parameter_limit) {
|
| info()->set_bailout_reason("too many parameters");
|
| return AbortOptimization();
|
| }
|
|
|
| - const int locals_limit = LUnallocated::kMaxFixedIndex;
|
| + const int locals_limit = LUnallocated::kMaxFixedSlotIndex;
|
| if (!info()->osr_ast_id().IsNone() &&
|
| scope->num_parameters() + 1 + scope->num_stack_slots() > locals_limit) {
|
| info()->set_bailout_reason("too many parameters/locals");
|
|
|