Commit ab59ea5a authored by ager@chromium.org's avatar ager@chromium.org

I will lint my code before submitting...

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@2508 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 6d641a81
...@@ -2495,7 +2495,7 @@ void v8::Object::SetPointerInInternalField(int index, void* value) { ...@@ -2495,7 +2495,7 @@ void v8::Object::SetPointerInInternalField(int index, void* value) {
// Currently internal fields are used by DOM wrappers which only // Currently internal fields are used by DOM wrappers which only
// get garbage collected by the mark-sweep collector, so we // get garbage collected by the mark-sweep collector, so we
// pretenure the proxy. // pretenure the proxy.
HandleScope scope; HandleScope scope;
i::Handle<i::Proxy> proxy = i::Handle<i::Proxy> proxy =
i::Factory::NewProxy(reinterpret_cast<i::Address>(value), i::TENURED); i::Factory::NewProxy(reinterpret_cast<i::Address>(value), i::TENURED);
if (!proxy.is_null()) obj->SetInternalField(index, *proxy); if (!proxy.is_null()) obj->SetInternalField(index, *proxy);
......
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