@@ -256,7 +256,7 @@ namespace Js
256
256
memset (byteCodeHistogram, 0 , sizeof (byteCodeHistogram));
257
257
#endif
258
258
259
- memset (propertyStrings, 0 , sizeof (PropertyStringMap*)* 80 );
259
+ memset (this -> Cache ()-> propertyStrings , 0 , sizeof (PropertyStringMap*)* 80 );
260
260
261
261
#if DBG || defined(RUNTIME_DATA_COLLECTION)
262
262
this ->allocId = threadContext->GetScriptContextCount ();
@@ -801,12 +801,12 @@ namespace Js
801
801
return NULL ;
802
802
}
803
803
const uint i = PropertyStringMap::PStrMapIndex (ch1);
804
- if (propertyStrings[i] == NULL )
804
+ if (this -> Cache ()-> propertyStrings [i] == NULL )
805
805
{
806
806
return NULL ;
807
807
}
808
808
const uint j = PropertyStringMap::PStrMapIndex (ch2);
809
- return propertyStrings[i]->strLen2 [j];
809
+ return this -> Cache ()-> propertyStrings [i]->strLen2 [j];
810
810
}
811
811
812
812
void ScriptContext::FindPropertyRecord (JavascriptString *pstName, PropertyRecord const ** propertyRecord)
@@ -1550,8 +1550,8 @@ namespace Js
1550
1550
1551
1551
void ScriptContext::InitPropertyStringMap (int i)
1552
1552
{
1553
- propertyStrings[i] = AnewStruct ( GeneralAllocator (), PropertyStringMap);
1554
- memset (propertyStrings[i]->strLen2 , 0 , sizeof (PropertyString*)* 80 );
1553
+ this -> Cache ()-> propertyStrings [i] = RecyclerNewStruct ( GetRecycler (), PropertyStringMap);
1554
+ memset (this -> Cache ()-> propertyStrings [i]->strLen2 , 0 , sizeof (PropertyString*)* 80 );
1555
1555
}
1556
1556
1557
1557
void ScriptContext::TrackPid (const PropertyRecord* propertyRecord)
@@ -1597,17 +1597,18 @@ namespace Js
1597
1597
{
1598
1598
const char16* buf = propString->GetBuffer ();
1599
1599
const uint i = PropertyStringMap::PStrMapIndex (buf[0 ]);
1600
- if (propertyStrings[i] == NULL )
1600
+ PropertyStringMap* strMap = this ->Cache ()->propertyStrings [i];
1601
+ if (strMap == NULL )
1601
1602
{
1602
1603
InitPropertyStringMap (i);
1603
1604
}
1604
1605
const uint j = PropertyStringMap::PStrMapIndex (buf[1 ]);
1605
- if (propertyStrings[i] ->strLen2 [j] == NULL && !isClosed)
1606
+ if (strMap ->strLen2 [j] == NULL && !isClosed)
1606
1607
{
1607
- propertyStrings[i] ->strLen2 [j] = GetLibrary ()->CreatePropertyString (propString);
1608
+ strMap ->strLen2 [j] = GetLibrary ()->CreatePropertyString (propString);
1608
1609
this ->TrackPid (propString);
1609
1610
}
1610
- return propertyStrings[i] ->strLen2 [j];
1611
+ return strMap ->strLen2 [j];
1611
1612
}
1612
1613
1613
1614
PropertyString* ScriptContext::CachePropertyString2 (const PropertyRecord* propString)
0 commit comments