Index: src/js/macros.py |
diff --git a/src/js/macros.py b/src/js/macros.py |
index 14670218fc0324e999698e3b1928b680b91f686f..5efb6b4b84397b99c73787fbeb03371d97bbc37a 100644 |
--- a/src/js/macros.py |
+++ b/src/js/macros.py |
@@ -174,6 +174,16 @@ |
# 1-based so index of 1 returns the first capture |
macro OVERRIDE_CAPTURE(override, index) = ((override)[(index)]); |
+# PropertyDescriptor return value indices - must match |
+# PropertyDescriptorIndices in runtime-object.cc. |
+define IS_ACCESSOR_INDEX = 0; |
+define VALUE_INDEX = 1; |
+define GETTER_INDEX = 2; |
+define SETTER_INDEX = 3; |
+define WRITABLE_INDEX = 4; |
+define ENUMERABLE_INDEX = 5; |
+define CONFIGURABLE_INDEX = 6; |
+ |
# For messages.js |
# Matches Script::Type from objects.h |
define TYPE_NATIVE = 0; |
@@ -240,6 +250,7 @@ |
define kMarkDequeOverflow = 3; |
define kStoreBufferOverflow = 4; |
define kSlotsBufferOverflow = 5; |
+define kObjectObserve = 6; |
define kForcedGC = 7; |
define kSloppyMode = 8; |
define kStrictMode = 9; |