| 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 25262ff850a8471cd2cc787d1f774429ed8885ce..4bb602a758855d5777c14be21b519dcaf5e9713e 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;
|
| }
|
|
|