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

Unified Diff: include/v8.h

Issue 2108203002: Implement immutable prototype chains (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: simplify Created 4 years, 6 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
« no previous file with comments | « no previous file | src/api.cc » ('j') | src/api-natives.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/v8.h
diff --git a/include/v8.h b/include/v8.h
index 8b8507f5520ff2fcf9ba8dbdbe21def44ead8dfa..ff265c44828a2c5e6ec7b8c601284dc788177231 100644
--- a/include/v8.h
+++ b/include/v8.h
@@ -4827,6 +4827,17 @@ class V8_EXPORT ObjectTemplate : public Template {
*/
void SetInternalFieldCount(int value);
+ /**
+ * Returns true if the object will be an immutable prototype exotic object.
+ */
+ bool ImmutableProto();
+
+ /**
+ * Makes the ObjectTempate for an immutable prototype exotic object, with an
+ * immutable __proto__.
+ */
+ void SetImmutableProto();
+
private:
ObjectTemplate();
static Local<ObjectTemplate> New(internal::Isolate* isolate,
« no previous file with comments | « no previous file | src/api.cc » ('j') | src/api-natives.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698