@@ -178,7 +178,7 @@ ThreadContext::ThreadContext(AllocationPolicyManager * allocationPolicyManager,
178
178
telemetryBlock(&localTelemetryBlock),
179
179
configuration(enableExperimentalFeatures),
180
180
jsrtRuntime(nullptr ),
181
- m_propertyMap (nullptr ),
181
+ propertyMap (nullptr ),
182
182
rootPendingClose(nullptr ),
183
183
isProfilingUserCode(true ),
184
184
loopDepth(0 ),
@@ -478,10 +478,10 @@ ThreadContext::~ThreadContext()
478
478
this ->recyclableData ->returnedValueList = nullptr ;
479
479
}
480
480
481
- if (this ->m_propertyMap != nullptr )
481
+ if (this ->propertyMap != nullptr )
482
482
{
483
- HeapDelete (this ->m_propertyMap );
484
- this ->m_propertyMap = nullptr ;
483
+ HeapDelete (this ->propertyMap );
484
+ this ->propertyMap = nullptr ;
485
485
}
486
486
487
487
#if ENABLE_NATIVE_CODEGEN
@@ -850,15 +850,15 @@ ThreadContext::GetPropertyNameImpl(Js::PropertyId propertyId)
850
850
851
851
int propertyIndex = propertyId - Js::PropertyIds::_none;
852
852
853
- if (propertyIndex < 0 || propertyIndex > m_propertyMap ->GetLastIndex ())
853
+ if (propertyIndex < 0 || propertyIndex > propertyMap ->GetLastIndex ())
854
854
{
855
855
propertyIndex = 0 ;
856
856
}
857
857
858
858
const Js::PropertyRecord * propertyRecord = nullptr ;
859
- if (locked) { m_propertyMap ->LockResize (); }
860
- bool found = m_propertyMap ->TryGetValueAt (propertyIndex, &propertyRecord);
861
- if (locked) { m_propertyMap ->UnlockResize (); }
859
+ if (locked) { propertyMap ->LockResize (); }
860
+ bool found = propertyMap ->TryGetValueAt (propertyIndex, &propertyRecord);
861
+ if (locked) { propertyMap ->UnlockResize (); }
862
862
863
863
AssertMsg (found && propertyRecord != nullptr , " using invalid propertyid" );
864
864
return propertyRecord;
@@ -893,11 +893,11 @@ ThreadContext::FindPropertyRecord(const char16 * propertyName, int propertyNameL
893
893
if (IsDirectPropertyName (propertyName, propertyNameLength))
894
894
{
895
895
propertyRecord = propertyNamesDirect[propertyName[0 ]];
896
- Assert (propertyRecord == m_propertyMap ->LookupWithKey (Js::HashedCharacterBuffer<char16>(propertyName, propertyNameLength)));
896
+ Assert (propertyRecord == propertyMap ->LookupWithKey (Js::HashedCharacterBuffer<char16>(propertyName, propertyNameLength)));
897
897
}
898
898
else
899
899
{
900
- propertyRecord = m_propertyMap ->LookupWithKey (Js::HashedCharacterBuffer<char16>(propertyName, propertyNameLength));
900
+ propertyRecord = propertyMap ->LookupWithKey (Js::HashedCharacterBuffer<char16>(propertyName, propertyNameLength));
901
901
}
902
902
903
903
return propertyRecord;
@@ -913,12 +913,12 @@ void ThreadContext::InitializePropertyMaps()
913
913
{
914
914
Assert (this ->recycler != nullptr );
915
915
Assert (this ->recyclableData != nullptr );
916
- Assert (this ->m_propertyMap == nullptr );
916
+ Assert (this ->propertyMap == nullptr );
917
917
Assert (this ->caseInvariantPropertySet == nullptr );
918
918
919
919
try
920
920
{
921
- this ->m_propertyMap = HeapNew (PropertyMap, &HeapAllocator::Instance, TotalNumberOfBuiltInProperties + 700 );
921
+ this ->propertyMap = HeapNew (PropertyMap, &HeapAllocator::Instance, TotalNumberOfBuiltInProperties + 700 );
922
922
#if ENABLE_NATIVE_CODEGEN
923
923
this ->m_pendingJITProperties = HeapNew (PropertyList, &HeapAllocator::Instance);
924
924
#endif
@@ -930,11 +930,11 @@ void ThreadContext::InitializePropertyMaps()
930
930
InitializeAdditionalProperties (this );
931
931
932
932
#if ENABLE_NATIVE_CODEGEN
933
- if (m_propertyMap ->Count () > 0 )
933
+ if (propertyMap ->Count () > 0 )
934
934
{
935
- uint count = (uint)m_propertyMap ->Count ();
935
+ uint count = (uint)propertyMap ->Count ();
936
936
PropertyRecordIDL ** propArray = HeapNewArray (PropertyRecordIDL*, count);
937
- auto iter = m_propertyMap ->GetIterator ();
937
+ auto iter = propertyMap ->GetIterator ();
938
938
while (iter.IsValid ())
939
939
{
940
940
m_pendingJITProperties->Add (iter.CurrentValue ());
@@ -950,11 +950,11 @@ void ThreadContext::InitializePropertyMaps()
950
950
// Initialization failed, undo what was done above. Callees that throw must clean up after themselves. The recycler will
951
951
// be trashed, so clear members that point to recyclable memory. Stuff in 'recyclableData' will be taken care of by the
952
952
// recycler, and the 'recyclableData' instance will be trashed as well.
953
- if (this ->m_propertyMap != nullptr )
953
+ if (this ->propertyMap != nullptr )
954
954
{
955
- HeapDelete (this ->m_propertyMap );
955
+ HeapDelete (this ->propertyMap );
956
956
}
957
- this ->m_propertyMap = nullptr ;
957
+ this ->propertyMap = nullptr ;
958
958
959
959
#if ENABLE_NATIVE_CODEGEN
960
960
if (this ->m_pendingJITProperties != nullptr )
@@ -1025,7 +1025,7 @@ ThreadContext::UncheckedAddPropertyId(JsUtil::CharacterBuffer<WCHAR> const& prop
1025
1025
}
1026
1026
#endif
1027
1027
1028
- this ->m_propertyMap ->EnsureCapacity ();
1028
+ this ->propertyMap ->EnsureCapacity ();
1029
1029
1030
1030
// Automatically bind direct (single-character) property names, so that they can be
1031
1031
// stored in the direct property table
@@ -1116,7 +1116,7 @@ ThreadContext::AddPropertyRecordInternal(const Js::PropertyRecord * propertyReco
1116
1116
#endif
1117
1117
1118
1118
// Add to the map
1119
- m_propertyMap ->Add (propertyRecord);
1119
+ propertyMap ->Add (propertyRecord);
1120
1120
1121
1121
#if ENABLE_NATIVE_CODEGEN
1122
1122
if (JITManager::GetJITManager ()->IsOOPJITEnabled ())
@@ -1266,7 +1266,7 @@ bool ThreadContext::IsActivePropertyId(Js::PropertyId pid)
1266
1266
int propertyIndex = pid - Js::PropertyIds::_none;
1267
1267
1268
1268
const Js::PropertyRecord * propertyRecord;
1269
- if (m_propertyMap ->TryGetValueAt (propertyIndex, &propertyRecord) && propertyRecord != nullptr )
1269
+ if (propertyMap ->TryGetValueAt (propertyIndex, &propertyRecord) && propertyRecord != nullptr )
1270
1270
{
1271
1271
return true ;
1272
1272
}
@@ -1278,20 +1278,20 @@ void ThreadContext::InvalidatePropertyRecord(const Js::PropertyRecord * property
1278
1278
{
1279
1279
InternalInvalidateProtoTypePropertyCaches (propertyRecord->GetPropertyId ()); // use the internal version so we don't check for active property id
1280
1280
1281
- this ->m_propertyMap ->Remove (propertyRecord);
1281
+ this ->propertyMap ->Remove (propertyRecord);
1282
1282
1283
1283
PropertyRecordTrace (_u (" Reclaimed property '%s' at 0x%08x, pid = %d\n " ),
1284
1284
propertyRecord->GetBuffer (), propertyRecord, propertyRecord->GetPropertyId ());
1285
1285
}
1286
1286
1287
1287
Js::PropertyId ThreadContext::GetNextPropertyId ()
1288
1288
{
1289
- return this ->m_propertyMap ->GetNextIndex () + Js::PropertyIds::_none;
1289
+ return this ->propertyMap ->GetNextIndex () + Js::PropertyIds::_none;
1290
1290
}
1291
1291
1292
1292
Js::PropertyId ThreadContext::GetMaxPropertyId ()
1293
1293
{
1294
- auto maxPropertyId = this ->m_propertyMap ->Count () + Js::InternalPropertyIds::Count;
1294
+ auto maxPropertyId = this ->propertyMap ->Count () + Js::InternalPropertyIds::Count;
1295
1295
return maxPropertyId;
1296
1296
}
1297
1297
@@ -1310,10 +1310,10 @@ void ThreadContext::CreateNoCasePropertyMap()
1310
1310
// Thus, don't use BaseDictionary::Map here, as it cannot tolerate changes while mapping.
1311
1311
// Instead, walk the PropertyRecord entries in index order. This will work even if a GC occurs.
1312
1312
1313
- for (int propertyIndex = 0 ; propertyIndex <= this ->m_propertyMap ->GetLastIndex (); propertyIndex++)
1313
+ for (int propertyIndex = 0 ; propertyIndex <= this ->propertyMap ->GetLastIndex (); propertyIndex++)
1314
1314
{
1315
1315
const Js::PropertyRecord * propertyRecord;
1316
- if (this ->m_propertyMap ->TryGetValueAt (propertyIndex, &propertyRecord) && propertyRecord != nullptr )
1316
+ if (this ->propertyMap ->TryGetValueAt (propertyIndex, &propertyRecord) && propertyRecord != nullptr )
1317
1317
{
1318
1318
AddCaseInvariantPropertyRecord (propertyRecord);
1319
1319
}
@@ -4074,7 +4074,7 @@ uint ThreadContext::GetRandomNumber()
4074
4074
#ifdef ENABLE_JS_ETW
4075
4075
void ThreadContext::EtwLogPropertyIdList ()
4076
4076
{
4077
- m_propertyMap ->Map ([&](const Js::PropertyRecord* propertyRecord){
4077
+ propertyMap ->Map ([&](const Js::PropertyRecord* propertyRecord){
4078
4078
EventWriteJSCRIPT_HOSTING_PROPERTYID_LIST (propertyRecord, propertyRecord->GetBuffer ());
4079
4079
});
4080
4080
}
@@ -4436,7 +4436,7 @@ void ThreadContext::SetValidCallTargetForCFG(PVOID callTargetAddress, bool isSet
4436
4436
4437
4437
uint ThreadContext::GetHighestPropertyNameIndex () const
4438
4438
{
4439
- return m_propertyMap ->GetLastIndex () + 1 + Js::InternalPropertyIds::Count;
4439
+ return propertyMap ->GetLastIndex () + 1 + Js::InternalPropertyIds::Count;
4440
4440
}
4441
4441
4442
4442
#if defined(CHECK_MEMORY_LEAK) || defined(LEAK_REPORT)
0 commit comments