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.h

Issue 1688953004: [builtins] Add an initial fast-path to Object.assign. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 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 | « src/messages.cc ('k') | src/objects.cc » ('j') | src/objects.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index 6d34989f1a4a16a9df506e329f0065b1fa52f296..887d2153bcb916d245b921f0a69bf8a3b704eb3c 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -2297,8 +2297,7 @@ class JSObject: public JSReceiver {
KeyAccumulator* keys,
PropertyFilter filter);
- static Handle<FixedArray> GetEnumPropertyKeys(Handle<JSObject> object,
- bool cache_result);
+ static Handle<FixedArray> GetEnumPropertyKeys(Handle<JSObject> object);
// Returns a new map with all transitions dropped from the object's current
// map and the ElementsKind set.
@@ -5847,6 +5846,10 @@ class Map: public HeapObject {
inline Cell* RetrieveDescriptorsPointer();
+ // Checks whether all properties are stored either in the map or on the object
+ // (inobject, properties, or elements backing store), requiring no special
+ // checks.
+ bool OnlyHasSimpleProperties();
inline int EnumLength();
inline void SetEnumLength(int length);
« no previous file with comments | « src/messages.cc ('k') | src/objects.cc » ('j') | src/objects.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698