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

Unified Diff: src/runtime.cc

Issue 19520006: Fix GC issue in Runtime_DebugEvaluate. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/runtime.cc
diff --git a/src/runtime.cc b/src/runtime.cc
index c22a7f65a8a3e37fa292ff03eca8abc371144b1a..9c5cdf9172198933f417ab92fee593548dc8e97e 100644
--- a/src/runtime.cc
+++ b/src/runtime.cc
@@ -12614,11 +12614,13 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_DebugEvaluate) {
if (!maybe_result->ToObject(&evaluate_result_object)) return maybe_result;
}
+ Handle<Object> result(evaluate_result_object, isolate);
+
// Write back potential changes to materialized stack locals to the stack.
UpdateStackLocalsFromMaterializedObject(
isolate, materialized, function, frame, inlined_jsframe_index);
- return evaluate_result_object;
+ return *result;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698