Chromium Code Reviews

Unified Diff: Source/bindings/v8/UnsafePersistent.h

Issue 26792002: Reland: Reland: Implement new Blink IDL attribute [SetReference] (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: create/check wrapper on creationContext Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: Source/bindings/v8/UnsafePersistent.h
diff --git a/Source/bindings/v8/UnsafePersistent.h b/Source/bindings/v8/UnsafePersistent.h
index 6f512a26f299e2689e08532e476710423266e52b..d1aa957472ce550f11db4cb370854f98e95934ac 100644
--- a/Source/bindings/v8/UnsafePersistent.h
+++ b/Source/bindings/v8/UnsafePersistent.h
@@ -88,6 +88,12 @@ public:
return handle;
}
+ void setReferenceFrom(const v8::Persistent<v8::Object>& parent, v8::Isolate* isolate)
+ {
+ // FIXME: remove As() after v8 roll.
haraken 2013/10/29 01:14:53 Hasn't the V8 roll already done?
kouhei (in TOK) 2013/10/29 04:19:58 Done.
+ isolate->SetReference(parent, persistent()->template As<v8::Value>());
+ }
+
void dispose()
{
persistent()->Dispose();

Powered by Google App Engine