From c86ad3630403a3e25f45758ca806b0a109e66c5b Mon Sep 17 00:00:00 2001 From: "yangguo@chromium.org" Date: Thu, 18 Jul 2013 12:25:22 +0000 Subject: [PATCH] Fix GC issue in Runtime_DebugEvaluate. R=hpayer@chromium.org BUG= Review URL: https://codereview.chromium.org/19520006 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@15747 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/runtime.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/runtime.cc b/src/runtime.cc index c22a7f6..9c5cdf9 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 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; } -- 2.7.4