Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Unified Diff: src/api-natives.h

Issue 1367953002: Allow JavaScript accessors on API objects. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: typo, and/or defective time machine. Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« src/api.cc ('K') | « src/api.cc ('k') | src/api-natives.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/api-natives.h
diff --git a/src/api-natives.h b/src/api-natives.h
index c5e398296cfb840c52efb0679177ac3995aa8e04..41c28b1daf93459fd323a7d25ac52b3fdaf87309 100644
--- a/src/api-natives.h
+++ b/src/api-natives.h
@@ -50,6 +50,13 @@ class ApiNatives {
Handle<FunctionTemplateInfo> setter,
PropertyAttributes attributes);
+#ifdef V8_JS_ACCESSORS
+ static void AddAccessorProperty(Isolate* isolate, Handle<TemplateInfo> info,
epertoso 2015/09/24 12:09:06 These two overloads of AddAccessorProperty are int
vogelheim 2015/09/24 16:35:49 Done.
+ Handle<Name> name, Handle<JSFunction> getter,
+ Handle<JSFunction> setter,
+ PropertyAttributes attributes);
+#endif // V8_JS_ACCESSORS
+
static void AddNativeDataProperty(Isolate* isolate, Handle<TemplateInfo> info,
Handle<AccessorInfo> property);
};
« src/api.cc ('K') | « src/api.cc ('k') | src/api-natives.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698