Skip to content

Commit

Permalink
Update metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
Drieger committed Apr 16, 2018
1 parent e6a622d commit a6a7689
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/llv8-constants.cc
Original file line number Diff line number Diff line change
Expand Up @@ -203,10 +203,17 @@ 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 a6a7689

Please sign in to comment.