Index: src/compiler.cc |
diff --git a/src/compiler.cc b/src/compiler.cc |
index 7c1770726f83c8e73c03939a698aeba4136a14dd..c753d0491b4905b9996b8f480fe2f4e0cc34da3c 100755 |
--- a/src/compiler.cc |
+++ b/src/compiler.cc |
@@ -213,8 +213,8 @@ static bool MakeCrankshaftCode(CompilationInfo* info) { |
// |
// 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::kMaxFixedIndices / 2); |
- const int locals_limit = parameter_limit - 1; |
+ const int parameter_limit = -LUnallocated::kMinFixedIndex; |
+ const int locals_limit = LUnallocated::kMaxFixedIndex; |
Scope* scope = info->scope(); |
if ((scope->num_parameters() + 1) > parameter_limit || |
scope->num_stack_slots() > locals_limit) { |