Index: src/full-codegen/x87/full-codegen-x87.cc |
diff --git a/src/full-codegen/x87/full-codegen-x87.cc b/src/full-codegen/x87/full-codegen-x87.cc |
index 36fdd306ec5f5bc472a33f93da1881e5a27e1b53..cfa752c19145dbc388117afad86cbb167868563e 100644 |
--- a/src/full-codegen/x87/full-codegen-x87.cc |
+++ b/src/full-codegen/x87/full-codegen-x87.cc |
@@ -101,7 +101,7 @@ void FullCodeGenerator::Generate() { |
#ifdef DEBUG |
if (strlen(FLAG_stop_at) > 0 && |
- info->function()->name()->IsUtf8EqualTo(CStrVector(FLAG_stop_at))) { |
+ function()->name()->IsUtf8EqualTo(CStrVector(FLAG_stop_at))) { |
__ int3(); |
} |
#endif |
@@ -139,7 +139,7 @@ void FullCodeGenerator::Generate() { |
{ Comment cmnt(masm_, "[ Allocate locals"); |
int locals_count = info->scope()->num_stack_slots(); |
// Generators allocate locals, if any, in context slots. |
- DCHECK(!IsGeneratorFunction(info->function()->kind()) || locals_count == 0); |
+ DCHECK(!IsGeneratorFunction(function()->kind()) || locals_count == 0); |
if (locals_count == 1) { |
__ push(Immediate(isolate()->factory()->undefined_value())); |
} else if (locals_count > 1) { |
@@ -1405,8 +1405,8 @@ void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy, |
if (var->scope()->DeclarationScope() != scope()->DeclarationScope()) { |
skip_init_check = false; |
} else if (var->is_this()) { |
- CHECK(info_->function() != nullptr && |
- (info_->function()->kind() & kSubclassConstructor) != 0); |
+ CHECK(info_->has_literal() && |
+ (info_->literal()->kind() & kSubclassConstructor) != 0); |
// TODO(dslomov): implement 'this' hole check elimination. |
skip_init_check = false; |
} else { |