Index: include/v8.h |
diff --git a/include/v8.h b/include/v8.h |
index 29f2508fd638c4d2187e748a1265a31b03303045..24a2028dc7ed75d96c80dc7158af6fce40782c5b 100644 |
--- a/include/v8.h |
+++ b/include/v8.h |
@@ -4016,6 +4016,15 @@ class V8_EXPORT External : public Value { |
}; |
+#define V8_INTRINSICS_LIST(F) F(ArrayProto_values, array_values_iterator) |
+ |
+enum Intrinsic { |
+#define V8_DECL_INTRINSIC(name, iname) k##name, |
+ V8_INTRINSICS_LIST(V8_DECL_INTRINSIC) |
+#undef V8_DECL_INTRINSIC |
+}; |
+ |
+ |
// --- Templates --- |
@@ -4085,6 +4094,13 @@ class V8_EXPORT Template : public Data { |
Local<AccessorSignature> signature = Local<AccessorSignature>(), |
AccessControl settings = DEFAULT); |
+ /** |
+ * During template instantiation, sets the value with the intrinsic property |
+ * from the correct context. |
+ */ |
+ void SetIntrinsicDataProperty(Local<Name> name, Intrinsic intrinsic, |
+ PropertyAttribute attribute = None); |
+ |
private: |
Template(); |