WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
149853
Clean up Marked classes
https://bugs.webkit.org/show_bug.cgi?id=149853
Summary
Clean up Marked classes
Joseph Pecoraro
Reported
2015-10-06 11:38:41 PDT
Clean up Marked classes. Dead code, unnecessary includes, etc.
Attachments
[PATCH] Proposed Fix
(16.00 KB, patch)
2015-10-06 11:44 PDT
,
Joseph Pecoraro
no flags
Details
Formatted Diff
Diff
[PATCH] Proposed Fix
(16.04 KB, patch)
2015-10-06 13:09 PDT
,
Joseph Pecoraro
darin
: review+
joepeck
: commit-queue-
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Joseph Pecoraro
Comment 1
2015-10-06 11:44:19 PDT
Created
attachment 262531
[details]
[PATCH] Proposed Fix
Joseph Pecoraro
Comment 2
2015-10-06 13:09:56 PDT
Created
attachment 262541
[details]
[PATCH] Proposed Fix
WebKit Commit Bot
Comment 3
2015-10-06 13:11:58 PDT
Attachment 262541
[details]
did not pass style-queue: ERROR: Source/JavaScriptCore/heap/MarkedSpace.cpp:31: Should be indented on a separate line, with the colon or comma first on that line. [whitespace/indent] [4] ERROR: Source/JavaScriptCore/heap/MarkedSpace.cpp:38: Should be indented on a separate line, with the colon or comma first on that line. [whitespace/indent] [4] Total errors found: 2 in 10 files If any of these errors are false positives, please file a bug against check-webkit-style.
Joseph Pecoraro
Comment 4
2015-10-07 20:04:38 PDT
Comment on
attachment 262541
[details]
[PATCH] Proposed Fix View in context:
https://bugs.webkit.org/attachment.cgi?id=262541&action=review
> Source/JavaScriptCore/heap/MarkedBlock.h:-75 > - static const size_t atomShiftAmount = 4; // log_2(atomSize) FIXME: Change atomSize to 16.
cq- because we can also remove these unused mirrors of these shifts that I had missed in this cleanup: llint/LowLevelInterpreter.asm 373:const AtomNumberShift = 3 374:const BitMapWordShift = 4
Darin Adler
Comment 5
2015-10-08 09:27:51 PDT
Comment on
attachment 262541
[details]
[PATCH] Proposed Fix View in context:
https://bugs.webkit.org/attachment.cgi?id=262541&action=review
> Source/JavaScriptCore/heap/MarkedSpace.cpp:30 > +struct Free : MarkedBlock::VoidFunctor {
I would have used class for this, since it has private data members. Also, why not use functions and lambdas instead of this VoidFunctor thing?
> Source/JavaScriptCore/heap/MarkedSpace.cpp:31 > + Free(MarkedSpace* space) : m_markedSpace(space) { }
I think this should take a reference, not a pointer.
> Source/JavaScriptCore/heap/MarkedSpace.cpp:34 > MarkedSpace* m_markedSpace;
I think this should be a reference, not a pointer.
> Source/JavaScriptCore/heap/MarkedSpace.cpp:37 > +struct FreeOrShrink : MarkedBlock::VoidFunctor {
I would have used class for this, since it has private data members. Also, why not use functions and lambdas instead of this VoidFunctor thing?
> Source/JavaScriptCore/heap/MarkedSpace.cpp:38 > + FreeOrShrink(MarkedSpace* space) : m_markedSpace(space) { }
I think this should take a reference, not a pointer.
> Source/JavaScriptCore/heap/MarkedSpace.cpp:41 > + MarkedSpace* m_markedSpace;
I think this should be a reference, not a pointer.
Joseph Pecoraro
Comment 6
2015-10-08 11:56:01 PDT
> Also, why not use functions and lambdas instead of this VoidFunctor thing?
I think this is so the forEach* methods don't need multiple versions, one for a void return value (lambdas) and one where there are return values.
Joseph Pecoraro
Comment 7
2015-10-08 13:20:25 PDT
http://trac.webkit.org/changeset/190739
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