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

Unified Diff: src/property-details.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
Index: src/property-details.h
diff --git a/src/property-details.h b/src/property-details.h
index 01592610681aecc9d2a7f6b08c3fedcf6b7aff7e..fdf2c6c4ab5fc0c6cec0d00921583451c5c7848a 100644
--- a/src/property-details.h
+++ b/src/property-details.h
@@ -330,6 +330,7 @@ class PropertyDetails BASE_EMBEDDED {
bool IsReadOnly() const { return (attributes() & READ_ONLY) != 0; }
bool IsConfigurable() const { return (attributes() & DONT_DELETE) == 0; }
bool IsDontEnum() const { return (attributes() & DONT_ENUM) != 0; }
+ bool IsEnumerable() const { return !IsDontEnum(); }
PropertyCellType cell_type() const {
return PropertyCellTypeField::decode(value_);
}
« src/objects.cc ('K') | « src/objects.cc ('k') | test/mjsunit/es6/object-assign.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698