Reviewers: Hannes Payer,

Description:
Fix GC issue in Runtime_DebugEvaluate.

[email protected]
BUG=

Please review this at https://codereview.chromium.org/19520006/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files:
  M src/runtime.cc


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;
 }




--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to