Browse files

gen-postmortem-metadata.py: fix code generator

* update tools/gen-postmortem-metadata.py
* add postmortem=on switch to the Makefile
  • Loading branch information...
1 parent 7900e38 commit add415297d779999a0c443eed975b199756d2a5f @bnoordhuis committed Jul 20, 2012
Showing with 12 additions and 5 deletions.
  1. +4 −0 Makefile
  2. +8 −5 tools/gen-postmortem-metadata.py
View
4 Makefile
@@ -79,6 +79,10 @@ endif
ifeq ($(debuggersupport), off)
GYPFLAGS += -Dv8_enable_debugger_support=0
endif
+# postmortem=on
+ifeq ($(postmortem), on)
+ GYPFLAGS += -Dv8_postmortem_support=true
+endif
# soname_version=1.2.3
ifdef soname_version
GYPFLAGS += -Dsoname_version=$(soname_version)
View
13 tools/gen-postmortem-metadata.py
@@ -78,14 +78,17 @@
{ 'name': 'SmiValueShift', 'value': 'kSmiTagSize' },
{ 'name': 'PointerSizeLog2', 'value': 'kPointerSizeLog2' },
- { 'name': 'prop_idx_transitions',
- 'value': 'DescriptorArray::kTransitionsIndex' },
+ { 'name': 'prop_idx_elements_transitions',
+ 'value': 'TransitionArray::kElementsTransitionIndex' },
+ { 'name': 'prop_idx_prototype_transitions',
+ 'value': 'TransitionArray::kPrototypeTransitionsIndex' },
{ 'name': 'prop_idx_first',
- 'value': 'DescriptorArray::kFirstIndex' },
+ 'value': 'TransitionArray::kFirstIndex' },
+
{ 'name': 'prop_type_field',
'value': 'FIELD' },
{ 'name': 'prop_type_first_phantom',
- 'value': 'MAP_TRANSITION' },
+ 'value': 'Code::MAP_TRANSITION' },
{ 'name': 'prop_type_mask',
'value': 'PropertyDetails::TypeField::kMask' },
@@ -107,7 +110,7 @@
'JSObject, elements, Object, kElementsOffset',
'FixedArray, data, uintptr_t, kHeaderSize',
'Map, instance_attributes, int, kInstanceAttributesOffset',
- 'Map, instance_descriptors, int, kInstanceDescriptorsOrBitField3Offset',
+ 'Map, instance_descriptors, uintptr_t, kTransitionsOrBackPointerOffset',
'Map, inobject_properties, int, kInObjectPropertiesOffset',
'Map, instance_size, int, kInstanceSizeOffset',
'HeapNumber, value, double, kValueOffset',

0 comments on commit add4152

Please sign in to comment.