RESOLVED FIXED 29168
Allow anonymous storage inside JSObject
https://bugs.webkit.org/show_bug.cgi?id=29168
Summary Allow anonymous storage inside JSObject
Oliver Hunt
Reported 2009-09-10 22:06:07 PDT
meh
Attachments
Patch v1 (17.56 KB, patch)
2009-09-10 22:26 PDT, Oliver Hunt
ggaren: review-
Oliver Hunt
Comment 1 2009-09-10 22:26:50 PDT
Created attachment 39411 [details] Patch v1
Geoffrey Garen
Comment 2 2009-09-11 12:32:04 PDT
+size_t Structure::put(unsigned count) +{ + m_propertyTable->anonymousSlotCount += count; + return m_propertyTable->keyCount + m_propertyTable->anonymousSlotCount; +} This API seems really weird to me. First, it has a return value, which its only client doesn't use. Second, its name implies that it "puts" a value, but it doesn't take a value as an argument. Third, it increments anonymousSlotCount, but I don't see anonymousSlotCount initialized anywhere. Fourth, m_anonymousSlotsInPrevious gets set directly in Structure::addAnonymousSlotsTransition, so what's special about anonymousSlotCount that it needs a helper function? I think createPropertyMapHashTable needs to initialize anonymousSlotCount to 0. Then, I think addAnonymousSlotsTransition should just directly set anonymousSlotCount, like it directly sets m_anonymousSlotsInPrevious. r- because I'm worried that anonymousSlotCount is uninitialized.
Oliver Hunt
Comment 3 2009-09-15 16:18:46 PDT
Fixed r48403
Note You need to log in before you can comment on or make changes to this bug.