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

Unified Diff: src/factory.h

Issue 2445333002: Ensure slow properties for simple {__proto__:null} literals. (Closed)
Patch Set: addressing nits Created 3 years, 9 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
Index: src/factory.h
diff --git a/src/factory.h b/src/factory.h
index f43fd8f6009afa8004ce9dde495c8147638c1711..7d5473668a313d73a2769adcbe5118146de2fa07 100644
--- a/src/factory.h
+++ b/src/factory.h
@@ -491,6 +491,10 @@ class V8_EXPORT_PRIVATE Factory final {
Handle<Map> map,
PretenureFlag pretenure = NOT_TENURED,
Handle<AllocationSite> allocation_site = Handle<AllocationSite>::null());
+ Handle<JSObject> NewSlowJSObjectFromMap(
+ Handle<Map> map,
+ int number_of_slow_properties = NameDictionary::kInitialCapacity,
+ PretenureFlag pretenure = NOT_TENURED);
// JS arrays are pretenured when allocated by the parser.
@@ -777,6 +781,7 @@ class V8_EXPORT_PRIVATE Factory final {
// native context.
Handle<Map> ObjectLiteralMapFromCache(Handle<Context> context,
int number_of_properties,
+ bool use_null_prototype,
bool* is_result_from_cache);
Handle<RegExpMatchInfo> NewRegExpMatchInfo();

Powered by Google App Engine
This is Rietveld 408576698