Changeset 118966 in webkit for trunk/Source/JavaScriptCore/parser/SourceProvider.h
- Timestamp:
- May 30, 2012, 2:04:23 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/parser/SourceProvider.h
r118960 r118966 41 41 class SourceProvider : public RefCounted<SourceProvider> { 42 42 public: 43 static const intptr_t nullID = 1; 44 43 45 SourceProvider(const UString& url, const TextPosition& startPosition, SourceProviderCache* cache = 0) 44 46 : m_url(url) … … 64 66 intptr_t asID() 65 67 { 66 if (!this) 67 return 1; 68 ASSERT(this); 69 if (!this) // Be defensive in release mode. 70 return nullID; 68 71 return reinterpret_cast<intptr_t>(this); 69 72 }
Note:
See TracChangeset
for help on using the changeset viewer.