Index: src/full-codegen.cc |
diff --git a/src/full-codegen.cc b/src/full-codegen.cc |
index 40a1d6661fa4dc8827a15b7242ee4b2c50a2a4b9..d7e250448f01c3d01db067b8766382896391f55e 100644 |
--- a/src/full-codegen.cc |
+++ b/src/full-codegen.cc |
@@ -32,6 +32,7 @@ |
#include "full-codegen.h" |
#include "stub-cache.h" |
#include "debug.h" |
+#include "liveedit.h" |
namespace v8 { |
namespace internal { |
@@ -448,6 +449,8 @@ Handle<Code> FullCodeGenerator::MakeCode(CompilationInfo* info) { |
CodeGenerator::MakeCodePrologue(info); |
const int kInitialBufferSize = 4 * KB; |
MacroAssembler masm(NULL, kInitialBufferSize); |
+ LiveEditFunctionTracker live_edit_tracker(info->function()); |
+ |
FullCodeGenerator cgen(&masm); |
cgen.Generate(info, PRIMARY); |
if (cgen.HasStackOverflow()) { |
@@ -455,7 +458,9 @@ Handle<Code> FullCodeGenerator::MakeCode(CompilationInfo* info) { |
return Handle<Code>::null(); |
} |
Code::Flags flags = Code::ComputeFlags(Code::FUNCTION, NOT_IN_LOOP); |
- return CodeGenerator::MakeCodeEpilogue(&masm, flags, info); |
+ Handle<Code> result = CodeGenerator::MakeCodeEpilogue(&masm, flags, info); |
+ live_edit_tracker.RecordFunctionCode(result); |
+ return result; |
} |