File tree 3 files changed +6
-7
lines changed
3 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -1276,9 +1276,8 @@ void Environment::set_main_utf16(std::unique_ptr<v8::String::Value> str) {
1276
1276
#define VS (PropertyName, StringValue ) V(v8::String, PropertyName)
1277
1277
#define V (TypeName, PropertyName ) \
1278
1278
inline \
1279
- v8::Local<TypeName> IsolateData::PropertyName (v8::Isolate* isolate) const { \
1280
- /* Strings are immutable so casting away const-ness here is okay. */ \
1281
- return const_cast <IsolateData*>(this )->PropertyName ## _.Get (isolate); \
1279
+ v8::Local<TypeName> IsolateData::PropertyName () const { \
1280
+ return PropertyName ## _ .Get (isolate_); \
1282
1281
}
1283
1282
PER_ISOLATE_PRIVATE_SYMBOL_PROPERTIES (VP)
1284
1283
PER_ISOLATE_SYMBOL_PROPERTIES (VY)
@@ -1293,7 +1292,7 @@ void Environment::set_main_utf16(std::unique_ptr<v8::String::Value> str) {
1293
1292
#define VS (PropertyName, StringValue ) V(v8::String, PropertyName)
1294
1293
#define V (TypeName, PropertyName ) \
1295
1294
inline v8::Local<TypeName> Environment::PropertyName () const { \
1296
- return isolate_data ()->PropertyName (isolate ()); \
1295
+ return isolate_data ()->PropertyName (); \
1297
1296
}
1298
1297
PER_ISOLATE_PRIVATE_SYMBOL_PROPERTIES (VP)
1299
1298
PER_ISOLATE_SYMBOL_PROPERTIES (VY)
Original file line number Diff line number Diff line change @@ -181,12 +181,12 @@ IsolateData::IsolateData(Isolate* isolate,
181
181
182
182
void IsolateData::MemoryInfo (MemoryTracker* tracker) const {
183
183
#define V (PropertyName, StringValue ) \
184
- tracker->TrackField (#PropertyName, PropertyName (isolate () ));
184
+ tracker->TrackField (#PropertyName, PropertyName ());
185
185
PER_ISOLATE_SYMBOL_PROPERTIES (V)
186
186
#undef V
187
187
188
188
#define V (PropertyName, StringValue ) \
189
- tracker->TrackField (#PropertyName, PropertyName (isolate () ));
189
+ tracker->TrackField (#PropertyName, PropertyName ());
190
190
PER_ISOLATE_STRING_PROPERTIES (V)
191
191
#undef V
192
192
Original file line number Diff line number Diff line change @@ -503,7 +503,7 @@ class IsolateData : public MemoryRetainer {
503
503
#define VY (PropertyName, StringValue ) V(v8::Symbol, PropertyName)
504
504
#define VS (PropertyName, StringValue ) V(v8::String, PropertyName)
505
505
#define V (TypeName, PropertyName ) \
506
- inline v8::Local<TypeName> PropertyName (v8::Isolate* isolate ) const ;
506
+ inline v8::Local<TypeName> PropertyName () const ;
507
507
PER_ISOLATE_PRIVATE_SYMBOL_PROPERTIES (VP)
508
508
PER_ISOLATE_SYMBOL_PROPERTIES (VY)
509
509
PER_ISOLATE_STRING_PROPERTIES (VS)
You can’t perform that action at this time.
0 commit comments