Closed
Bug 482565
Opened 16 years ago
Closed 12 years ago
Various xhydra bugfixes/enhancements
Categories
(Developer Infrastructure :: Source Code Analysis, defect)
Developer Infrastructure
Source Code Analysis
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: cjones, Unassigned)
References
(Blocks 1 open bug)
Details
Attachments
(1 file, 2 obsolete files)
(deleted),
patch
|
taras.mozilla
:
review+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2a1pre) Gecko/20090302 Minefield/3.2a1pre
Build Identifier:
Most of these bugs are fairly trivial, so this bug will act as a catchall. The list follows, in order of modifications in the patch.
* add a TYPE_OFFSET_BASETYPE function --- a direct transliteration of the gcc macro
* add support for printing OFFSET_TYPE nodes (utilizing TYPE_OFFSET_BASETYPE)
* add support for printing RESULT_DECLs
* give more information about instruction nodes we don't know how to print
* add an isEmpty() method to the Set ADT
* handle RESULT_DECL, RESX_EXPR, and LABEL_EXPR in isn_defs() and isn_uses()
* allow consumers of ESP.Analysis to provide initial "blames" for property variables
* add an option to do_dehydra_dump that prints the indentation level along with the object's properties (not enabled by default by dehydra_dump())
Reproducible: Always
Reporter | ||
Comment 1•16 years ago
|
||
Comment 2•16 years ago
|
||
Pre-review comments:
- I see what looks like a few nugatory whitespace changes. Are those fixes, or something that should be removed from the patch?
- return statements are weird in GIMPLE. I believe they can (a) contain nothing ('return;'), (b) wrap a GIMPLE_MODIFY_STMT ('return x;' -> R.0124 := x'), and occasionally (c) wrap a simple expression. It's not clear why both (b) and (c) exist. Anyway, that's the source of the pretty-printing code that surprised you.
Otherwise, looks pretty good.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Reporter | ||
Comment 3•16 years ago
|
||
Attempt to address comment 2. I saw one unnecessary whitespace delta that I removed.
BTW, these bugfixes were present in the first patch, but omitted in comment 0:
* fixed bug in isn_defs()
* use 'Date.now()' instead of 'new Date()' when checking for esp timeout
I think the patch is ready for review.
Comment 4•16 years ago
|
||
Comment on attachment 366649 [details] [diff] [review]
Bugfixes, v2
Some minor issues here. In the future can you set the review? to me/dmandelin when you are ready for review. Otherwise we might miss your comment.
>--- a/libs/gcc_print.js
>+++ b/libs/gcc_print.js
>@@ -64,18 +64,17 @@ function type_string(type) {
> return type_string(TREE_TYPE(type)) + infix + '[]';
> } else if (code == REFERENCE_TYPE) {
> return type_string(TREE_TYPE(type)) + infix + '&';
> } else if (code == FUNCTION_TYPE) {
> return type_string(TREE_TYPE(type)) + ' (*)(' + type_args_string(type) + ')';
> } else if (code == METHOD_TYPE) {
> return type_string(TREE_TYPE(type)) + ' (?::*)(' + type_args_string(type) + ')';
> } else if (code == OFFSET_TYPE) {
>- return type_string(TREE_TYPE(type)) + " "
>- + type_string(TYPE_OFFSET_BASETYPE(type))+ "::*"
>+ return 'offsetof('+ type_string(TYPE_OFFSET_BASETYPE(type)) +', '+ type_string(TREE_TYPE (type));
> }
While changing this, would you mind making that if/else chain into a switch?
>
>+ /** True if this Set has no elements. */
>+ Set.prototype.isEmpty = function() {
>+ for (let k in this.items ()) {
>+ return false;
>+ }
>+ return true;
>+ };
>+
I think that should just be return this.map.isEmpty()
Dave can comment on the rest
Reporter | ||
Comment 5•16 years ago
|
||
Thanks! Missed the "review" flag.
Requested tglek for review; please advise if it'd be better for dmandelin to review this.
Attachment #366623 -
Attachment is obsolete: true
Attachment #366649 -
Attachment is obsolete: true
Attachment #366768 -
Flags: review?(tglek)
Comment 6•16 years ago
|
||
Comment on attachment 366768 [details] [diff] [review]
Bugfixes, v3
parts I know look good to me.
Attachment #366768 -
Flags: review?(dmandelin)
Updated•16 years ago
|
Attachment #366768 -
Flags: review?(tglek) → review+
Reporter | ||
Updated•16 years ago
|
Assignee: nobody → jones.chris.g
Comment 7•13 years ago
|
||
Comment on attachment 366768 [details] [diff] [review]
Bugfixes, v3
Cleaning up ancient review requests.
Attachment #366768 -
Flags: review?(dmandelin)
Reporter | ||
Updated•12 years ago
|
Assignee: jones.chris.g → nobody
Comment 8•12 years ago
|
||
Dehydra and treehydra are no longer maintained by Mozilla.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WONTFIX
Updated•7 years ago
|
Product: Core → Firefox Build System
Updated•2 years ago
|
Product: Firefox Build System → Developer Infrastructure
You need to log in
before you can comment on or make changes to this bug.
Description
•