Index: src/codegen.cc |
diff --git a/src/codegen.cc b/src/codegen.cc |
index 35201394f06da448d4b811ae16d69a48116a14b5..d4c1e438cb3654212f10476e2eeef15d44241d3e 100644 |
--- a/src/codegen.cc |
+++ b/src/codegen.cc |
@@ -120,8 +120,7 @@ |
Handle<Code> CodeGenerator::MakeCodeEpilogue(MacroAssembler* masm, |
EhFrameWriter* eh_frame_writer, |
- CompilationInfo* info, |
- Handle<Object> self_reference) { |
+ CompilationInfo* info) { |
Isolate* isolate = info->isolate(); |
// Allocate and install the code. |
@@ -132,9 +131,11 @@ |
info->IsStub(); |
masm->GetCode(&desc); |
if (eh_frame_writer) eh_frame_writer->GetEhFrame(&desc); |
- Handle<Code> code = isolate->factory()->NewCode( |
- desc, flags, self_reference, false, is_crankshafted, |
- info->prologue_offset(), info->is_debug() && !is_crankshafted); |
+ Handle<Code> code = |
+ isolate->factory()->NewCode(desc, flags, masm->CodeObject(), |
+ false, is_crankshafted, |
+ info->prologue_offset(), |
+ info->is_debug() && !is_crankshafted); |
isolate->counters()->total_compiled_code_size()->Increment( |
code->instruction_size()); |
isolate->heap()->IncrementCodeGeneratedBytes(is_crankshafted, |