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

Unified Diff: src/property-descriptor.h

Issue 1607943003: [runtime] Introduce maps for the likely cases of FromPropertyDescriptor. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE Created 4 years, 11 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/objects.h ('k') | src/property-descriptor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/property-descriptor.h
diff --git a/src/property-descriptor.h b/src/property-descriptor.h
index 5fbbfa36ec263de2412a0fad6383d59f118c6c64..cba43ed334f05a9a15e645e0949eb4e4ff79ddfa 100644
--- a/src/property-descriptor.h
+++ b/src/property-descriptor.h
@@ -57,6 +57,16 @@ class PropertyDescriptor {
!has_value() && !has_get() && !has_set();
}
+ bool IsRegularAccessorProperty() const {
+ return has_configurable() && has_enumerable() && !has_value() &&
+ !has_writable() && has_get() && has_set();
+ }
+
+ bool IsRegularDataProperty() const {
+ return has_configurable() && has_enumerable() && has_value() &&
+ has_writable() && !has_get() && !has_set();
+ }
+
bool enumerable() const { return enumerable_; }
void set_enumerable(bool enumerable) {
enumerable_ = enumerable;
« no previous file with comments | « src/objects.h ('k') | src/property-descriptor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698