Bug 43490 - Clean up collector code
Summary: Clean up collector code
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC All
: P2 Normal
Assignee: Nathan Lawrence
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-04 09:36 PDT by Nathan Lawrence
Modified: 2010-12-20 22:34 PST (History)
4 users (show)

See Also:


Attachments
patch (10.14 KB, patch)
2010-08-04 09:36 PDT, Nathan Lawrence
no flags Details | Formatted Diff | Diff
patch (up to date) (10.15 KB, patch)
2010-08-05 16:01 PDT, Nathan Lawrence
no flags Details | Formatted Diff | Diff
patch (up to date) (10.17 KB, patch)
2010-08-06 10:34 PDT, Nathan Lawrence
darin: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nathan Lawrence 2010-08-04 09:36:08 PDT
Created attachment 63459 [details]
patch

The collector code currently generates a number of style errors.  Additionally, the new WTF::Bitmap class can be used to as an almost drop in replacement to the current bitmap in JSC::Heap.
Comment 1 WebKit Review Bot 2010-08-04 09:38:05 PDT
Attachment 63459 [details] did not pass style-queue:

Failed to run "['WebKitTools/Scripts/check-webkit-style']" exit_code: 1
JavaScriptCore/runtime/Collector.cpp:641:  Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons.  [readability/comparison_to_zero] [5]
JavaScriptCore/runtime/Collector.cpp:653:  Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons.  [readability/comparison_to_zero] [5]
JavaScriptCore/runtime/Collector.h:73:  Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons.  [readability/comparison_to_zero] [5]
Total errors found: 3 in 3 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 2 Oliver Hunt 2010-08-05 13:57:02 PDT
Comment on attachment 63459 [details]
patch

r=me
Comment 3 WebKit Commit Bot 2010-08-05 14:53:56 PDT
Comment on attachment 63459 [details]
patch

Rejecting patch 63459 from commit-queue.

Failed to run "[u'/Users/eseidel/Projects/CommitQueue/WebKitTools/Scripts/svn-apply', u'--reviewer', u'Oliver Hunt', u'--force']" exit_code: 1
Last 500 characters of output:
JavaScriptCore/runtime/Collector.cpp
Hunk #1 succeeded at 282 (offset 2 lines).
Hunk #2 succeeded at 329 (offset 2 lines).
Hunk #3 succeeded at 640 (offset 2 lines).
Hunk #4 succeeded at 652 (offset 2 lines).
Hunk #5 succeeded at 681 (offset 2 lines).
Hunk #6 succeeded at 1055 (offset 2 lines).
Hunk #7 succeeded at 1068 (offset 2 lines).
patching file JavaScriptCore/runtime/Collector.h
Hunk #2 FAILED at 58.
1 out of 4 hunks FAILED -- saving rejects to file JavaScriptCore/runtime/Collector.h.rej

Full output: http://queues.webkit.org/results/3658191
Comment 4 Nathan Lawrence 2010-08-05 16:01:02 PDT
Created attachment 63651 [details]
patch (up to date)
Comment 5 WebKit Review Bot 2010-08-05 16:03:44 PDT
Attachment 63651 [details] did not pass style-queue:

Failed to run "['WebKitTools/Scripts/check-webkit-style']" exit_code: 1
JavaScriptCore/runtime/Collector.cpp:643:  Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons.  [readability/comparison_to_zero] [5]
JavaScriptCore/runtime/Collector.cpp:655:  Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons.  [readability/comparison_to_zero] [5]
JavaScriptCore/runtime/Collector.h:73:  Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons.  [readability/comparison_to_zero] [5]
Total errors found: 3 in 3 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 6 WebKit Commit Bot 2010-08-06 08:25:05 PDT
Comment on attachment 63651 [details]
patch (up to date)

Rejecting patch 63651 from commit-queue.

Failed to run "[u'/Users/eseidel/Projects/CommitQueue/WebKitTools/Scripts/svn-apply', u'--reviewer', u'Oliver Hunt', u'--force']" exit_code: 1
Last 500 characters of output:
at 643 (offset 3 lines).
Hunk #4 succeeded at 655 (offset 3 lines).
Hunk #5 succeeded at 684 (offset 3 lines).
Hunk #6 succeeded at 1090 (offset 35 lines).
Hunk #7 succeeded at 1103 (offset 35 lines).
patching file JavaScriptCore/runtime/Collector.h
Hunk #1 succeeded at 41 (offset 1 line).
Hunk #2 FAILED at 59.
Hunk #3 succeeded at 226 (offset 8 lines).
Hunk #4 succeeded at 271 with fuzz 1 (offset 8 lines).
1 out of 4 hunks FAILED -- saving rejects to file JavaScriptCore/runtime/Collector.h.rej

Full output: http://queues.webkit.org/results/3601784
Comment 7 Nathan Lawrence 2010-08-06 10:34:00 PDT
Created attachment 63740 [details]
patch (up to date)
Comment 8 WebKit Review Bot 2010-08-06 10:35:46 PDT
Attachment 63740 [details] did not pass style-queue:

Failed to run "['WebKitTools/Scripts/check-webkit-style']" exit_code: 1
JavaScriptCore/runtime/Collector.cpp:646:  Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons.  [readability/comparison_to_zero] [5]
JavaScriptCore/runtime/Collector.cpp:658:  Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons.  [readability/comparison_to_zero] [5]
JavaScriptCore/runtime/Collector.h:74:  Tests for true/false, null/non-null, and zero/non-zero should all be done without equality comparisons.  [readability/comparison_to_zero] [5]
Total errors found: 3 in 3 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 9 Eric Seidel (no email) 2010-08-08 03:17:51 PDT
Comment on attachment 63459 [details]
patch

Cleared Oliver Hunt's review+ from obsolete attachment 63459 [details] so that this bug does not appear in http://webkit.org/pending-commit.
Comment 10 Eric Seidel (no email) 2010-08-08 03:17:55 PDT
Comment on attachment 63651 [details]
patch (up to date)

Cleared Oliver Hunt's review+ from obsolete attachment 63651 [details] so that this bug does not appear in http://webkit.org/pending-commit.
Comment 11 Eric Seidel (no email) 2010-12-20 22:34:27 PST
I assume this was landed.  Please re-open with an up-to-date patch if I'm wrong.