Changeset 249499 in webkit
- Timestamp:
- Sep 4, 2019, 2:12:47 PM (6 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r249495 r249499 1 2019-09-03 Mark Lam <mark.lam@apple.com> 2 3 Structure::storedPrototype() and storedPrototypeObject() should assert with isCompilationThread(), not !isMainThread(). 4 https://bugs.webkit.org/show_bug.cgi?id=201449 5 6 Reviewed by Yusuke Suzuki. 7 8 Using !isMainThread() in the assertion also disables the assertion for the mutator 9 of worker threads. This is not what we intended. 10 11 * runtime/StructureInlines.h: 12 (JSC::Structure::storedPrototype const): 13 (JSC::Structure::storedPrototypeObject const): 14 1 15 2019-09-04 Mark Lam <mark.lam@apple.com> 2 16 -
trunk/Source/JavaScriptCore/runtime/StructureInlines.h
r249247 r249499 33 33 #include "StructureChain.h" 34 34 #include "StructureRareDataInlines.h" 35 #include <wtf/Threading.h> 35 36 36 37 namespace JSC { … … 109 110 ALWAYS_INLINE JSValue Structure::storedPrototype(const JSObject* object) const 110 111 { 111 ASSERT( !isMainThread() || object->structure() == this);112 ASSERT(isCompilationThread() || Thread::mayBeGCThread() || object->structure() == this); 112 113 if (hasMonoProto()) 113 114 return storedPrototype(); … … 117 118 ALWAYS_INLINE JSObject* Structure::storedPrototypeObject(const JSObject* object) const 118 119 { 119 ASSERT( !isMainThread() || object->structure() == this);120 ASSERT(isCompilationThread() || Thread::mayBeGCThread() || object->structure() == this); 120 121 if (hasMonoProto()) 121 122 return storedPrototypeObject();
Note:
See TracChangeset
for help on using the changeset viewer.