WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
30372
Make typeinfo flags default to false
https://bugs.webkit.org/show_bug.cgi?id=30372
Summary
Make typeinfo flags default to false
Oliver Hunt
Reported
2009-10-14 20:06:16 PDT
It's difficult to ensure correct semantics for typeinfo flags in the dom bindings, as we can't easily propagate the typeinfo flags. To make it easier to propagate we want to make flags be specifically for the exceptional cases.
Attachments
Reverse the meaning of HasDefaultGetPropertySlot
(29.19 KB, patch)
2009-10-14 20:11 PDT
,
Oliver Hunt
no flags
Details
Formatted Diff
Diff
HasDefaultMark to OverridesMarkChildren
(35.58 KB, patch)
2009-10-15 11:28 PDT
,
Oliver Hunt
no flags
Details
Formatted Diff
Diff
HasDefaultGetPropertyNames -> OverridesGetPropertyNames
(31.81 KB, patch)
2009-10-16 11:58 PDT
,
Oliver Hunt
barraclough
: review+
Details
Formatted Diff
Diff
Move OverridesMarkChildren flag from DatePrototype to its parent class
(2.33 KB, patch)
2009-10-20 02:26 PDT
,
Gabor Loki
oliver
: review+
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Oliver Hunt
Comment 1
2009-10-14 20:11:40 PDT
Created
attachment 41202
[details]
Reverse the meaning of HasDefaultGetPropertySlot
Geoffrey Garen
Comment 2
2009-10-14 20:16:26 PDT
Comment on
attachment 41202
[details]
Reverse the meaning of HasDefaultGetPropertySlot r=me w/ChangeLog
Oliver Hunt
Comment 3
2009-10-15 11:28:37 PDT
Created
attachment 41237
[details]
HasDefaultMark to OverridesMarkChildren
Darin Adler
Comment 4
2009-10-15 12:34:44 PDT
Comment on
attachment 41237
[details]
HasDefaultMark to OverridesMarkChildren
> - return Structure::create(prototype, TypeInfo(ObjectType)); > + return Structure::create(prototype, TypeInfo(ObjectType, JSC::OverridesGetOwnPropertySlot | JSC::HasNonDefaultMark));
Extra space here, and "JSC::" is not needed. I guess the assertion we have will catch if we got this wrong anywhere at runtime. Please be sure to run all the regression tests before landing since that will be caught at runtime, not compile time. r=me
Oliver Hunt
Comment 5
2009-10-15 12:57:18 PDT
Landed default mark patch in
r49649
Oliver Hunt
Comment 6
2009-10-16 11:58:47 PDT
Created
attachment 41304
[details]
HasDefaultGetPropertyNames -> OverridesGetPropertyNames
Oliver Hunt
Comment 7
2009-10-16 14:54:47 PDT
Landed r 49694
Gabor Loki
Comment 8
2009-10-20 02:26:26 PDT
Created
attachment 41491
[details]
Move OverridesMarkChildren flag from DatePrototype to its parent class The following simple JS fails on ARM JIT (JSValue32): --- [new Date()] gc() --- It looks like JSWrapperObject::markChildren was called for DateInstance in JSArray, but the m_internalValue was already on anonymous slots. The attached patch fixes this issue by moving OverridesMarkChildren flag from DatePrototype to DateInstance. BTW, is there any delivered class which should still use JSWrapperObject::markChildren?
Csaba Osztrogonác
Comment 9
2009-10-20 02:43:53 PDT
(In reply to
comment #8
)
> Created an attachment (id=41491) [details]
Sending JavaScriptCore/ChangeLog Sending JavaScriptCore/runtime/DateInstance.h Sending JavaScriptCore/runtime/DatePrototype.h Transmitting file data ... Committed revision 49845.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug