Index: src/full-codegen/ia32/full-codegen-ia32.cc |
diff --git a/src/full-codegen/ia32/full-codegen-ia32.cc b/src/full-codegen/ia32/full-codegen-ia32.cc |
index 2ed198b18403844254ac96453605952a113a650d..a46cf1e0ea6e1af44b50622e6e8f9f5b08e134a7 100644 |
--- a/src/full-codegen/ia32/full-codegen-ia32.cc |
+++ b/src/full-codegen/ia32/full-codegen-ia32.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) { |
@@ -321,7 +321,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; |
@@ -367,7 +367,7 @@ void FullCodeGenerator::Generate() { |
{ Comment cmnt(masm_, "[ Body"); |
DCHECK(loop_depth() == 0); |
- VisitStatements(function()->body()); |
+ VisitStatements(literal()->body()); |
DCHECK(loop_depth() == 0); |
} |
} |
@@ -460,7 +460,7 @@ void FullCodeGenerator::EmitReturnSequence() { |
EmitProfilingCounterReset(); |
__ bind(&ok); |
- SetReturnPosition(function()); |
+ SetReturnPosition(literal()); |
int no_frame_start = masm_->pc_offset(); |
__ leave(); |
@@ -1412,8 +1412,8 @@ void FullCodeGenerator::EmitVariableLoad(VariableProxy* proxy, |
if (var->scope()->DeclarationScope() != scope()->DeclarationScope()) { |
skip_init_check = false; |
} else if (var->is_this()) { |
- CHECK(function() != nullptr && |
- (function()->kind() & kSubclassConstructor) != 0); |
+ CHECK(literal() != nullptr && |
+ (literal()->kind() & kSubclassConstructor) != 0); |
// TODO(dslomov): implement 'this' hole check elimination. |
skip_init_check = false; |
} else { |