Commit 00a2d793 authored by jochen@chromium.org's avatar jochen@chromium.org

Return i18n object holders directly.

BUG=none
R=dcarney@chromium.org,mstarzinger@chromium.org

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@16144 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent ee53b0a5
......@@ -13619,9 +13619,8 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_CreateDateTimeFormat) {
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 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_CreateNumberFormat) {
// 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 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_CreateCollator) {
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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment