| Index: src/x87/full-codegen-x87.cc
|
| diff --git a/src/x87/full-codegen-x87.cc b/src/x87/full-codegen-x87.cc
|
| index f8176c0d2555acfa9704c968c1b40406f4d5579a..f02e98f961d7bb205a75e4801694b342658b9d25 100644
|
| --- a/src/x87/full-codegen-x87.cc
|
| +++ b/src/x87/full-codegen-x87.cc
|
| @@ -1451,7 +1451,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 {
|
|
|