Index: src/liveedit.cc |
diff --git a/src/liveedit.cc b/src/liveedit.cc |
index ecbc115301172c0cbd5d2b0d4bdb5ac1b6b89a0b..3cbd244693368a433d6674b2caed878cc5d13490 100644 |
--- a/src/liveedit.cc |
+++ b/src/liveedit.cc |
@@ -404,18 +404,16 @@ static void CompileScriptForTracker(Handle<Script> script) { |
// Build AST. |
CompilationInfo info(script); |
info.MarkAsGlobal(); |
- if (!Parser::Parse(&info)) return; |
- |
- // Compile the code. |
- LiveEditFunctionTracker tracker(info.function()); |
- Handle<Code> code = MakeCodeForLiveEdit(&info); |
- |
- // Check for stack-overflow exceptions. |
- if (code.is_null()) { |
- Top::StackOverflow(); |
- return; |
+ if (Parser::Parse(&info)) { |
+ // Compile the code. |
+ LiveEditFunctionTracker tracker(info.function()); |
+ if (Compiler::MakeCodeForLiveEdit(&info)) { |
+ ASSERT(!info.code().is_null()); |
+ tracker.RecordRootFunctionInfo(info.code()); |
+ } else { |
+ Top::StackOverflow(); |
+ } |
} |
- tracker.RecordRootFunctionInfo(code); |
} |