Index: src/full-codegen/mips/full-codegen-mips.cc |
diff --git a/src/full-codegen/mips/full-codegen-mips.cc b/src/full-codegen/mips/full-codegen-mips.cc |
index d3139a7d4ecf46b22cca766c416a767967aeb91d..c8da77fba2128ca8c285b3ab2cd5d65556d85778 100644 |
--- a/src/full-codegen/mips/full-codegen-mips.cc |
+++ b/src/full-codegen/mips/full-codegen-mips.cc |
@@ -120,7 +120,7 @@ void FullCodeGenerator::Generate() { |
#ifdef DEBUG |
if (strlen(FLAG_stop_at) > 0 && |
- info->function()->name()->IsUtf8EqualTo(CStrVector(FLAG_stop_at))) { |
+ info->literal()->name()->IsUtf8EqualTo(CStrVector(FLAG_stop_at))) { |
__ stop("stop-at"); |
} |
#endif |
@@ -156,7 +156,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(info->literal()->kind()) || locals_count == 0); |
if (locals_count > 0) { |
if (locals_count >= 128) { |
Label ok; |
@@ -1479,8 +1479,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 { |