| 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 2ce87412ccb176891dcd6c78801987d191e302f6..db5e1f6d5f768124bf1f06987aa3b7f0550bc3cb 100644
|
| --- a/src/full-codegen/x87/full-codegen-x87.cc
|
| +++ b/src/full-codegen/x87/full-codegen-x87.cc
|
| @@ -94,14 +94,14 @@ void FullCodeGenerator::Generate() {
|
| CompilationInfo* info = info_;
|
| profiling_counter_ = isolate()->factory()->NewCell(
|
| Handle<Smi>(Smi::FromInt(FLAG_interrupt_budget), isolate()));
|
| - SetFunctionPosition(function());
|
| + SetFunctionPosition(literal());
|
| Comment cmnt(masm_, "[ function compiled by full code generator");
|
|
|
| ProfileEntryHookStub::MaybeCallEntryHook(masm_);
|
|
|
| #ifdef DEBUG
|
| if (strlen(FLAG_stop_at) > 0 &&
|
| - function()->name()->IsUtf8EqualTo(CStrVector(FLAG_stop_at))) {
|
| + literal()->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(function()->kind()) || locals_count == 0);
|
| + DCHECK(!IsGeneratorFunction(literal()->kind()) || locals_count == 0);
|
| if (locals_count == 1) {
|
| __ push(Immediate(isolate()->factory()->undefined_value()));
|
| } else if (locals_count > 1) {
|
| @@ -318,7 +318,7 @@ void FullCodeGenerator::Generate() {
|
| ArgumentsAccessStub::Type type;
|
| if (is_strict(language_mode()) || !has_simple_parameters()) {
|
| type = ArgumentsAccessStub::NEW_STRICT;
|
| - } else if (function()->has_duplicate_parameters()) {
|
| + } else if (literal()->has_duplicate_parameters()) {
|
| type = ArgumentsAccessStub::NEW_SLOPPY_SLOW;
|
| } else {
|
| type = ArgumentsAccessStub::NEW_SLOPPY_FAST;
|
| @@ -364,7 +364,7 @@ void FullCodeGenerator::Generate() {
|
|
|
| { Comment cmnt(masm_, "[ Body");
|
| DCHECK(loop_depth() == 0);
|
| - VisitStatements(function()->body());
|
| + VisitStatements(literal()->body());
|
| DCHECK(loop_depth() == 0);
|
| }
|
| }
|
| @@ -457,7 +457,7 @@ void FullCodeGenerator::EmitReturnSequence() {
|
| EmitProfilingCounterReset();
|
| __ bind(&ok);
|
|
|
| - SetReturnPosition(function());
|
| + SetReturnPosition(literal());
|
| int no_frame_start = masm_->pc_offset();
|
| __ leave();
|
|
|
|
|