@@ -212,8 +212,13 @@ void Map::Load() {
212212
213213
214214void JSObject::Load () {
215- kPropertiesOffset = LoadConstant (" class_JSReceiver__properties__FixedArray" ,
216- " class_JSObject__properties__FixedArray" );
215+ kPropertiesOffset =
216+ LoadConstant (" class_JSReceiver__raw_properties_or_hash__Object" ,
217+ " class_JSReceiver__properties__FixedArray" );
218+
219+ if (kPropertiesOffset == -1 )
220+ kPropertiesOffset = LoadConstant (" class_JSObject__properties__FixedArray" );
221+
217222 kElementsOffset = LoadConstant (" class_JSObject__elements__Object" );
218223 kInternalFieldsOffset =
219224 LoadConstant (" class_JSObject__internal_fields__uintptr_t" );
@@ -262,19 +267,27 @@ void JSDate::Load() {
262267
263268
264269void SharedInfo::Load () {
265- kNameOffset = LoadConstant (" class_SharedFunctionInfo__name__Object" );
270+ kNameOffset = LoadConstant (" class_SharedFunctionInfo__raw_name__Object" ,
271+ " class_SharedFunctionInfo__name__Object" );
266272 kInferredNameOffset =
267273 LoadConstant (" class_SharedFunctionInfo__inferred_name__String" ,
268274 " class_SharedFunctionInfo__function_identifier__Object" );
269275 kScriptOffset = LoadConstant (" class_SharedFunctionInfo__script__Object" );
270276 kCodeOffset = LoadConstant (" class_SharedFunctionInfo__code__Code" );
271277 kStartPositionOffset =
272- LoadConstant (" class_SharedFunctionInfo__start_position_and_type__SMI" );
278+ LoadConstant (" class_SharedFunctionInfo__start_position_and_type__int" ,
279+ " class_SharedFunctionInfo__start_position_and_type__SMI" );
273280 kEndPositionOffset =
274- LoadConstant (" class_SharedFunctionInfo__end_position__SMI" );
281+ LoadConstant (" class_SharedFunctionInfo__end_position__int" ,
282+ " class_SharedFunctionInfo__end_position__SMI" );
275283 kParameterCountOffset = LoadConstant (
276- " class_SharedFunctionInfo__internal_formal_parameter_count__SMI" ,
277- " class_SharedFunctionInfo__formal_parameter_count__SMI" );
284+ " class_SharedFunctionInfo__internal_formal_parameter_count__int" ,
285+ " class_SharedFunctionInfo__internal_formal_parameter_count__SMI" );
286+
287+ if (kParameterCountOffset == -1 ) {
288+ kParameterCountOffset =
289+ LoadConstant (" class_SharedFunctionInfo__formal_parameter_count__SMI" );
290+ }
278291
279292 // NOTE: Could potentially be -1 on v4 and v5 node, should check in llv8
280293 kScopeInfoOffset =
@@ -288,6 +301,11 @@ void SharedInfo::Load() {
288301 kStartPositionShift = 2 ;
289302 kStartPositionMask = ~((1 << kStartPositionShift ) - 1 );
290303 }
304+
305+ if (LoadConstant (" class_SharedFunctionInfo__compiler_hints__int" ) == -1 )
306+ kEndPositionShift = 1 ;
307+ else
308+ kEndPositionShift = 0 ;
291309}
292310
293311
@@ -301,7 +319,6 @@ void ScopeInfo::Load() {
301319 kParameterCountOffset = LoadConstant (" scopeinfo_idx_nparams" );
302320 kStackLocalCountOffset = LoadConstant (" scopeinfo_idx_nstacklocals" );
303321 kContextLocalCountOffset = LoadConstant (" scopeinfo_idx_ncontextlocals" );
304- kContextGlobalCountOffset = LoadConstant (" scopeinfo_idx_ncontextglobals" );
305322 kVariablePartIndex = LoadConstant (" scopeinfo_idx_first_vars" );
306323}
307324
@@ -377,6 +394,14 @@ void FixedArray::Load() {
377394}
378395
379396
397+ void FixedTypedArrayBase::Load () {
398+ kBasePointerOffset =
399+ LoadConstant (" class_FixedTypedArrayBase__base_pointer__Object" );
400+ kExternalPointerOffset =
401+ LoadConstant (" class_FixedTypedArrayBase__external_pointer__Object" );
402+ }
403+
404+
380405void Oddball::Load () {
381406 kKindOffset = LoadConstant (" class_Oddball__kind_offset__int" );
382407
@@ -446,7 +471,6 @@ void DescriptorArray::Load() {
446471 LoadConstant (" prop_attributes_DONT_ENUM" );
447472
448473 kPropertyKindMask = LoadConstant (" prop_kind_mask" );
449- kPropertyKindShift = LoadConstant (" prop_kind_shift" , int64_t (0 ));
450474 kPropertyKindEnum_kAccessor = LoadConstant (" prop_kind_Accessor" );
451475 kPropertyKindEnum_kData = LoadConstant (" prop_kind_Data" );
452476
@@ -516,7 +540,8 @@ void Frame::Load() {
516540
517541 kAdaptorFrame = LoadConstant (" frametype_ArgumentsAdaptorFrame" );
518542 kEntryFrame = LoadConstant (" frametype_EntryFrame" );
519- kEntryConstructFrame = LoadConstant (" frametype_EntryConstructFrame" );
543+ kEntryConstructFrame = LoadConstant (" frametype_ConstructEntryFrame" ,
544+ " frametype_EntryConstructFrame" );
520545 kExitFrame = LoadConstant (" frametype_ExitFrame" );
521546 kInternalFrame = LoadConstant (" frametype_InternalFrame" );
522547 kConstructFrame = LoadConstant (" frametype_ConstructFrame" );
@@ -537,7 +562,8 @@ void Types::Load() {
537562 kOddballType = LoadConstant (" type_Oddball__ODDBALL_TYPE" );
538563 kJSObjectType = LoadConstant (" type_JSObject__JS_OBJECT_TYPE" );
539564 kJSAPIObjectType = LoadConstant (" APIObjectType" );
540- kJSSpecialAPIObjectType = LoadConstant (" APISpecialObjectType" );
565+ kJSSpecialAPIObjectType =
566+ LoadConstant (" SpecialAPIObjectType" , " APISpecialObjectType" );
541567 kJSArrayType = LoadConstant (" type_JSArray__JS_ARRAY_TYPE" );
542568 kCodeType = LoadConstant (" type_Code__CODE_TYPE" );
543569 kJSFunctionType = LoadConstant (" type_JSFunction__JS_FUNCTION_TYPE" );
0 commit comments