Skip to content

Commit

Permalink
src: update constants to match V8 6.4 (nodejs#186)
Browse files Browse the repository at this point in the history
Fixes: nodejs#158
  • Loading branch information
Drieger authored and joyeecheung committed Apr 22, 2018
1 parent 7564d2b commit 6dbd9dd
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/llv8-constants.cc
Original file line number Diff line number Diff line change
Expand Up @@ -203,10 +203,16 @@ void Map::Load() {
kInObjectPropertiesOffset = LoadConstant(
"class_Map__inobject_properties_or_constructor_function_index__int",
"class_Map__inobject_properties__int");
kInstanceSizeOffset = LoadConstant("class_Map__instance_size__int");

kDictionaryMapShift = LoadConstant("bit_field3_dictionary_map_shift");
if (kInObjectPropertiesOffset == -1) {
kInObjectPropertiesOffset = LoadConstant(
"class_Map__inobject_properties_start_or_constructor_function_index__"
"char");
}

kInstanceSizeOffset = LoadConstant("class_Map__instance_size__int",
"class_Map__instance_size_in_words__char");
kDictionaryMapShift = LoadConstant("bit_field3_dictionary_map_shift",
"bit_field3_is_dictionary_map_shift");
kNumberOfOwnDescriptorsShift =
LoadConstant("bit_field3_number_of_own_descriptors_shift");
kNumberOfOwnDescriptorsMask =
Expand Down

0 comments on commit 6dbd9dd

Please sign in to comment.