Closed
Bug 818245
Opened 13 years ago
Closed 13 years ago
Fix some warnings in Assembler-arm.cpp
Categories
(Core :: JavaScript Engine, defect, P4)
Tracking
()
RESOLVED
FIXED
mozilla20
People
(Reporter: cpeterson, Assigned: cpeterson)
Details
Attachments
(2 files)
|
1.47 KB,
patch
|
dvander
:
review+
|
Details | Diff | Splinter Review |
|
1.96 KB,
patch
|
dvander
:
review+
|
Details | Diff | Splinter Review |
When compiling for Android, I see the following compiler warnings about comparing n integer (uintptr_t) with a pointer (NULL):
js/src/ion/arm/Assembler-arm.cpp: In member function 'void js::ion::AutoFlushCache::update(uintptr_t, size_t)':
js/src/ion/arm/Assembler-arm.cpp:2445: warning: NULL used in arithmetic
js/src/ion/arm/Assembler-arm.cpp: In member function 'void js::ion::AutoFlushCache::flushAnyway()':
js/src/ion/arm/Assembler-arm.cpp:2487: warning: NULL used in arithmetic
Attachment #688428 -
Flags: review?(dvander)
Updated•13 years ago
|
Attachment #688428 -
Flags: review?(dvander) → review+
| Assignee | ||
Comment 1•13 years ago
|
||
Part 2: Also mark some Assembler-arm.cpp functions as static because they are only used within that source file.
Attachment #688431 -
Flags: review?(dvander)
Comment on attachment 688431 [details] [diff] [review]
part-2-make-functions-static.patch
Review of attachment 688431 [details] [diff] [review]:
-----------------------------------------------------------------
::: js/src/ion/arm/Assembler-arm.cpp
@@ +2320,1 @@
> bool instIsGuard(Instruction *inst, const PoolHeader **ph)
nit, SpiderMonkey style is:
static bool
instIsGuard(...
r=me if you also want to fix the capitalization (InstIsGuard, InstIsBNop, InstIsArtificialGuard)
Attachment #688431 -
Flags: review?(dvander) → review+
| Assignee | ||
Comment 3•13 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/9534e375800e
https://hg.mozilla.org/integration/mozilla-inbound/rev/9b2656c880e8
Severity: normal → minor
status-firefox19:
--- → wontfix
status-firefox20:
--- → fixed
Target Milestone: --- → mozilla20
Comment 4•13 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/9534e375800e
https://hg.mozilla.org/mozilla-central/rev/9b2656c880e8
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•