Index: include/v8.h |
diff --git a/include/v8.h b/include/v8.h |
index 25a1d58fb9e0ed1f46c389dfee0bdab7e459a10f..98ad4c4bd82f091b7276d86606b2c43d25d7b650 100644 |
--- a/include/v8.h |
+++ b/include/v8.h |
@@ -4008,6 +4008,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 --- |
@@ -4077,6 +4086,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(); |