Changeset 204261 in webkit
- Timestamp:
- Aug 8, 2016 11:56:54 AM (8 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JSTests/ChangeLog
r204248 r204261 1 2016-08-08 Mark Lam <mark.lam@apple.com> 2 3 ASSERTION FAILED: hasInlineStorage() in JSFinalObject::visitChildren(). 4 https://bugs.webkit.org/show_bug.cgi?id=160666 5 6 Reviewed by Keith Miller. 7 8 * stress/object-constructor-should-be-new-target-aware.js: 9 1 10 2016-08-07 Yusuke Suzuki <utatane.tea@gmail.com> 2 11 -
trunk/JSTests/stress/object-constructor-should-be-new-target-aware.js
r200421 r204261 15 15 16 16 shouldBe(Reflect.construct(Object, [], Hello).__proto__, Hello.prototype); 17 18 gc(); // Regression test for https:/webkit.org/b/160666. -
trunk/Source/JavaScriptCore/ChangeLog
r204255 r204261 1 2016-08-08 Mark Lam <mark.lam@apple.com> 2 3 ASSERTION FAILED: hasInlineStorage() in JSFinalObject::visitChildren(). 4 https://bugs.webkit.org/show_bug.cgi?id=160666 5 6 Reviewed by Keith Miller. 7 8 This assertion is benign. JSFinalObject::visitChildren() calls 9 JSObject::inlineStorage() to get a pointer to the object's inline storage, and 10 later passes it to visitor.appendValuesHidden() with a previously computed 11 storageSize. When storageSize is 0, appendValuesHidden() ends up doing nothing. 12 However, before we get there, JSObject::inlineStorage() will be asserting 13 hasInlineStorage() and this assertion will fail when storageSize is 0. 14 15 We can fix this assertion failure by simply adding a storageSize check before 16 calling hasInlineStorage() and visitor.appendValuesHidden(). 17 18 * runtime/JSObject.cpp: 19 (JSC::JSFinalObject::visitChildren): 20 1 21 2016-08-08 Brian Burg <bburg@apple.com> 2 22 -
trunk/Source/JavaScriptCore/runtime/JSObject.cpp
r203368 r204261 294 294 295 295 size_t storageSize = structure->inlineSize(); 296 visitor.appendValuesHidden(thisObject->inlineStorage(), storageSize); 296 if (storageSize) 297 visitor.appendValuesHidden(thisObject->inlineStorage(), storageSize); 297 298 298 299 #if !ASSERT_DISABLED
Note: See TracChangeset
for help on using the changeset viewer.