Changeset 243609 in webkit
- Timestamp:
- Mar 28, 2019, 10:50:19 AM (7 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
parser/SourceCodeKey.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r243603 r243609 1 2019-03-28 Tadeu Zagallo <tzagallo@apple.com> 2 3 In-memory code cache should not share bytecode across domains 4 https://bugs.webkit.org/show_bug.cgi?id=196321 5 6 Reviewed by Geoffrey Garen. 7 8 Use the SourceProvider's URL to make sure that the hosts match for the 9 two SourceCodeKeys in operator==. 10 11 * parser/SourceCodeKey.h: 12 (JSC::SourceCodeKey::host const): 13 (JSC::SourceCodeKey::operator== const): 14 1 15 2019-03-28 Víctor Manuel Jáquez Leal <vjaquez@igalia.com> 2 16 -
trunk/Source/JavaScriptCore/parser/SourceCodeKey.h
r240511 r243609 111 111 StringView string() const { return m_sourceCode.view(); } 112 112 113 StringView host() const { return m_sourceCode.provider().url().host(); } 114 113 115 bool operator==(const SourceCodeKey& other) const 114 116 { … … 118 120 && m_functionConstructorParametersEndPosition == other.m_functionConstructorParametersEndPosition 119 121 && m_name == other.m_name 122 && host() == other.host() 120 123 && string() == other.string(); 121 124 }
Note:
See TracChangeset
for help on using the changeset viewer.