Index: src/arm64/full-codegen-arm64.cc |
diff --git a/src/arm64/full-codegen-arm64.cc b/src/arm64/full-codegen-arm64.cc |
index 8c7fb5d0abb8649c788987ac36d7cc47cb18e6fe..ebdc9bc9a8c57c85e60da03a4e4f3be2b8f15aa9 100644 |
--- a/src/arm64/full-codegen-arm64.cc |
+++ b/src/arm64/full-codegen-arm64.cc |
@@ -1519,7 +1519,8 @@ void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy) { |
if (var->scope()->DeclarationScope() != scope()->DeclarationScope()) { |
skip_init_check = false; |
} else if (var->is_this()) { |
- CHECK((info_->shared_info()->kind() & kSubclassConstructor) != 0); |
+ CHECK(info_->function() != nullptr && |
+ (info_->function()->kind() & kSubclassConstructor) != 0); |
// TODO(dslomov): implement 'this' hole check elimination. |
skip_init_check = false; |
} else { |