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

Unified Diff: src/objects.cc

Issue 1469883002: Allow in-object properties in JSFunctions. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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 | « src/heap/scavenger.cc ('k') | src/objects-body-descriptors-inl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.cc
diff --git a/src/objects.cc b/src/objects.cc
index f44e10b206095e1455f58b07f5d9e8358b246cf1..b64ec7985424bcd3ad8ea681c2907718a14f6a27 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -11960,6 +11960,7 @@ bool CanSubclassHaveInobjectProperties(InstanceType instance_type) {
case JS_MAP_ITERATOR_TYPE:
case JS_ITERATOR_RESULT_TYPE:
case JS_PROMISE_TYPE:
+ case JS_FUNCTION_TYPE:
return true;
case JS_TYPED_ARRAY_TYPE:
@@ -11972,7 +11973,6 @@ bool CanSubclassHaveInobjectProperties(InstanceType instance_type) {
case JS_WEAK_MAP_TYPE:
case JS_WEAK_SET_TYPE:
case JS_ARRAY_BUFFER_TYPE:
- case JS_FUNCTION_TYPE:
return false;
case JS_GLOBAL_PROXY_TYPE:
« no previous file with comments | « src/heap/scavenger.cc ('k') | src/objects-body-descriptors-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698