Index: src/mips64/full-codegen-mips64.cc |
diff --git a/src/mips64/full-codegen-mips64.cc b/src/mips64/full-codegen-mips64.cc |
index 7aeb11839d5d91f9e8806bf9739d6105d51eddd3..2653728d296c8854dbf48d59b02521d503e59473 100644 |
--- a/src/mips64/full-codegen-mips64.cc |
+++ b/src/mips64/full-codegen-mips64.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 { |