Index: src/full-codegen/full-codegen.cc |
diff --git a/src/full-codegen/full-codegen.cc b/src/full-codegen/full-codegen.cc |
index 1ac118ca916cd09220419e587a5e0c3e69a92718..45e8d68768b1863fab2efa22289e6cdf505219e9 100644 |
--- a/src/full-codegen/full-codegen.cc |
+++ b/src/full-codegen/full-codegen.cc |
@@ -1934,7 +1934,7 @@ bool FullCodeGenerator::NeedsHoleCheckForLoad(VariableProxy* proxy) { |
DCHECK(var->initializer_position() != RelocInfo::kNoPosition); |
DCHECK(proxy->position() != RelocInfo::kNoPosition); |
- return var->mode() == CONST_LEGACY || var->scope()->is_nonlinear() || |
+ return var->scope()->is_nonlinear() || |
var->initializer_position() >= proxy->position(); |
} |