RESOLVED FIXED60532
Fixed up some #include dependencies so the WriteBarrier class can actually call Heap::writeBarrier
https://bugs.webkit.org/show_bug.cgi?id=60532
Summary Fixed up some #include dependencies so the WriteBarrier class can actually ca...
Geoffrey Garen
Reported 2011-05-09 21:54:11 PDT
Fixed up some #include dependencies so the WriteBarrier class can actually call Heap::writeBarrier
Attachments
Patch (15.05 KB, patch)
2011-05-09 21:58 PDT, Geoffrey Garen
webkit.review.bot: commit-queue-
Patch (17.50 KB, patch)
2011-05-09 22:35 PDT, Geoffrey Garen
darin: review+
webkit.review.bot: commit-queue-
Geoffrey Garen
Comment 1 2011-05-09 21:58:18 PDT
Gyuyoung Kim
Comment 2 2011-05-09 22:14:05 PDT
Geoffrey Garen
Comment 3 2011-05-09 22:35:43 PDT
WebKit Review Bot
Comment 4 2011-05-09 23:00:15 PDT
WebKit Review Bot
Comment 5 2011-05-09 23:44:57 PDT
Darin Adler
Comment 6 2011-05-10 08:54:34 PDT
Comment on attachment 92922 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=92922&action=review r=me, but I think you need to find out why this failed on the Mac EWS > Source/JavaScriptCore/heap/MarkStack.h:42 > + template <typename T> class WriteBarrierBase; I think we should consider a style guideline of omitting the space between the word template and the <> arguments, by analogy with how there is no space after a function name before its () arguments. > Source/JavaScriptCore/heap/MarkStack.h:65 > + inline void appendValues(WriteBarrierBase<Unknown>*, size_t count, MarkSetProperties = NoNullValues); I believe the inline keyword here has no effect and so should be omitted.
Geoffrey Garen
Comment 7 2011-05-10 14:04:46 PDT
> r=me, but I think you need to find out why this failed on the Mac EWS This builds locally, so I think the EWS may have gotten confused with the other path attached here. I'll watch the bots to make sure. > > Source/JavaScriptCore/heap/MarkStack.h:42 > > + template <typename T> class WriteBarrierBase; > > I think we should consider a style guideline of omitting the space between the word template and the <> arguments, by analogy with how there is no space after a function name before its () arguments. You keep telling me this, and I keep forgetting. Maybe today's the day I remember? > > Source/JavaScriptCore/heap/MarkStack.h:65 > > + inline void appendValues(WriteBarrierBase<Unknown>*, size_t count, MarkSetProperties = NoNullValues); > > I believe the inline keyword here has no effect and so should be omitted. Actually, it opts you in to this warning in the case where you forget to #include the defining header: "scratch.cc:9: warning: inline function ‘void f()’ used but never defined". I think that's a little better than just getting a linker error, since linker errors on Mac OS X can be cryptic.
Geoffrey Garen
Comment 8 2011-05-10 19:29:55 PDT
Note You need to log in before you can comment on or make changes to this bug.