| Index: src/full-codegen/x64/full-codegen-x64.cc
|
| diff --git a/src/full-codegen/x64/full-codegen-x64.cc b/src/full-codegen/x64/full-codegen-x64.cc
|
| index eda5207026b8fdff1484eb837f9252ace5646311..7e0553103f3fff12a0106dc2bdb63f20845091e3 100644
|
| --- a/src/full-codegen/x64/full-codegen-x64.cc
|
| +++ b/src/full-codegen/x64/full-codegen-x64.cc
|
| @@ -100,7 +100,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))) {
|
| __ int3();
|
| }
|
| #endif
|
| @@ -138,7 +138,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 == 1) {
|
| __ PushRoot(Heap::kUndefinedValueRootIndex);
|
| } else if (locals_count > 1) {
|
| @@ -1441,8 +1441,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 {
|
|
|