Changeset 241571 in webkit for trunk/Source/JavaScriptCore/parser/VariableEnvironment.h
- Timestamp:
- Feb 14, 2019, 4:06:30 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/parser/VariableEnvironment.h
r240255 r241571 205 205 public: 206 206 class Handle { 207 WTF_MAKE_NONCOPYABLE(Handle); // If we wanted to make this copyable, we'd need to do a hashtable lookup and bump the reference count of the map entry.208 207 public: 208 Handle() = default; 209 209 210 Handle(CompactVariableEnvironment& environment, CompactVariableMap& map) 210 211 : m_environment(&environment) … … 219 220 other.m_environment = nullptr; 220 221 } 222 223 Handle(const Handle&); 224 Handle& operator=(const Handle&); 225 221 226 ~Handle(); 227 228 explicit operator bool() const { return !!m_map; } 222 229 223 230 const CompactVariableEnvironment& environment() const … … 227 234 228 235 private: 229 CompactVariableEnvironment* m_environment ;236 CompactVariableEnvironment* m_environment { nullptr }; 230 237 RefPtr<CompactVariableMap> m_map; 231 238 };
Note:
See TracChangeset
for help on using the changeset viewer.