Index: src/arm/full-codegen-arm.cc |
diff --git a/src/arm/full-codegen-arm.cc b/src/arm/full-codegen-arm.cc |
index f82d506f9ee9538dfebb0605c14771b937c80d12..c97d4319acfc8ac2bf48f5bb4fe270fb516e5189 100644 |
--- a/src/arm/full-codegen-arm.cc |
+++ b/src/arm/full-codegen-arm.cc |
@@ -1539,7 +1539,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 { |