Revision: 16144
Author:   [email protected]
Date:     Mon Aug 12 01:19:06 2013
Log:      Return i18n object holders directly.

BUG=none
[email protected],[email protected]
http://code.google.com/p/v8/source/detail?r=16144

Modified:
 /branches/bleeding_edge/src/runtime.cc

=======================================
--- /branches/bleeding_edge/src/runtime.cc      Fri Aug  9 02:51:09 2013
+++ /branches/bleeding_edge/src/runtime.cc      Mon Aug 12 01:19:06 2013
@@ -13619,9 +13619,8 @@
                                  v8::Utils::ToLocal(local_object));
// Make object handle weak so we can delete the data format once GC kicks in.
   wrapper.MakeWeak<void>(NULL, &DateFormat::DeleteDateFormat);
-  Handle<Object> result = Utils::OpenPersistent(wrapper);
   wrapper.ClearAndLeak();
-  return *result;
+  return *local_object;
 }


@@ -13724,9 +13723,8 @@
// Make object handle weak so we can delete the number format once GC kicks
   // in.
   wrapper.MakeWeak<void>(NULL, &NumberFormat::DeleteNumberFormat);
-  Handle<Object> result = Utils::OpenPersistent(wrapper);
   wrapper.ClearAndLeak();
-  return *result;
+  return *local_object;
 }


@@ -13837,9 +13835,8 @@
                                  v8::Utils::ToLocal(local_object));
// Make object handle weak so we can delete the collator once GC kicks in.
   wrapper.MakeWeak<void>(NULL, &Collator::DeleteCollator);
-  Handle<Object> result = Utils::OpenPersistent(wrapper);
   wrapper.ClearAndLeak();
-  return *result;
+  return *local_object;
 }


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