Index: src/compiler/js-global-object-specialization.cc |
diff --git a/src/compiler/js-global-object-specialization.cc b/src/compiler/js-global-object-specialization.cc |
index 5ced04e9c1538058283c2d03c763a3f7abc9f249..6c021980764732b687c0a25b98e001db5b68e6cf 100644 |
--- a/src/compiler/js-global-object-specialization.cc |
+++ b/src/compiler/js-global-object-specialization.cc |
@@ -246,7 +246,7 @@ bool JSGlobalObjectSpecialization::LookupInScriptContextTable( |
Handle<Context> script_context = ScriptContextTable::GetContext( |
script_context_table, lookup_result.context_index); |
result->context = script_context; |
- result->immutable = IsImmutableVariableMode(lookup_result.mode); |
+ result->immutable = lookup_result.mode == CONST; |
result->index = lookup_result.slot_index; |
return true; |
} |