Index: src/codegen.cc |
diff --git a/src/codegen.cc b/src/codegen.cc |
index 4597ae27669a4954ea1d7c841497dec6be0142af..3700641ba58e739241518fdea07ab3312d6b648b 100644 |
--- a/src/codegen.cc |
+++ b/src/codegen.cc |
@@ -117,9 +117,9 @@ void CodeGenerator::MakeCodePrologue(CompilationInfo* info, const char* kind) { |
#endif // DEBUG |
} |
- |
Handle<Code> CodeGenerator::MakeCodeEpilogue(MacroAssembler* masm, |
- CompilationInfo* info) { |
+ CompilationInfo* info, |
+ Handle<Object> self_reference) { |
Isolate* isolate = info->isolate(); |
// Allocate and install the code. |
@@ -129,11 +129,9 @@ Handle<Code> CodeGenerator::MakeCodeEpilogue(MacroAssembler* masm, |
Code::ExtractKindFromFlags(flags) == Code::OPTIMIZED_FUNCTION || |
info->IsStub(); |
masm->GetCode(&desc); |
- Handle<Code> code = |
- isolate->factory()->NewCode(desc, flags, masm->CodeObject(), |
- false, is_crankshafted, |
- info->prologue_offset(), |
- info->is_debug() && !is_crankshafted); |
+ Handle<Code> code = isolate->factory()->NewCode( |
+ desc, flags, self_reference, 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, |