Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(339)

Unified Diff: src/liveedit.cc

Issue 668246: Check that function being patched has no activations on any thread stack (Closed)
Patch Set: format Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/liveedit.h ('k') | src/liveedit-delay.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/liveedit.cc
diff --git a/src/liveedit.cc b/src/liveedit.cc
index 2c27e9f0dd7c9d81fb31b94a1bfea936aa57c071..513cc0233f18de5464080317b4a80027d1c6bdbd 100644
--- a/src/liveedit.cc
+++ b/src/liveedit.cc
@@ -320,9 +320,9 @@ JSArray* LiveEdit::GatherCompileInfo(Handle<Script> script,
CompilationZoneScope zone_scope(DELETE_ON_EXIT);
FunctionInfoListener listener;
+ Handle<Object> original_source = Handle<Object>(script->source());
script->set_source(*source);
active_function_info_listener = &listener;
- Handle<Object> original_source = Handle<Object>(script->source());
CompileScriptForTracker(script);
active_function_info_listener = NULL;
script->set_source(*original_source);
« no previous file with comments | « src/liveedit.h ('k') | src/liveedit-delay.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698