Index: src/x64/fast-codegen-x64.cc |
=================================================================== |
--- src/x64/fast-codegen-x64.cc (revision 3788) |
+++ src/x64/fast-codegen-x64.cc (working copy) |
@@ -37,7 +37,7 @@ |
void FastCodeGenerator::EmitLoadReceiver(Register reg) { |
// Offset 2 is due to return address and saved frame pointer. |
- int index = 2 + function()->scope()->num_parameters(); |
+ int index = 2 + scope()->num_parameters(); |
__ movq(reg, Operand(rbp, index * kPointerSize)); |
} |
@@ -102,10 +102,8 @@ |
} |
-void FastCodeGenerator::Generate(FunctionLiteral* fun, CompilationInfo* info) { |
- ASSERT(function_ == NULL); |
+void FastCodeGenerator::Generate(CompilationInfo* info) { |
ASSERT(info_ == NULL); |
- function_ = fun; |
info_ = info; |
// Save the caller's frame pointer and set up our own. |
@@ -120,7 +118,7 @@ |
// Receiver (this) is allocated to rdx if there are this properties. |
if (has_this_properties()) EmitReceiverMapCheck(); |
- VisitStatements(fun->body()); |
+ VisitStatements(info->function()->body()); |
Comment return_cmnt(masm(), ";; Return(<undefined>)"); |
__ LoadRoot(rax, Heap::kUndefinedValueRootIndex); |
@@ -128,7 +126,7 @@ |
Comment epilogue_cmnt(masm(), ";; Epilogue"); |
__ movq(rsp, rbp); |
__ pop(rbp); |
- __ ret((fun->scope()->num_parameters() + 1) * kPointerSize); |
+ __ ret((scope()->num_parameters() + 1) * kPointerSize); |
__ bind(&bailout_); |
} |