Closed Bug 503160 Opened 16 years ago Closed 16 years ago

integer constants are not automatically demoted

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: sayrer, Assigned: sayrer)

References

Details

(Whiteboard: fixed-in-tracemonkey)

Attachments

(2 files, 3 obsolete files)

shows up in some peacekeeper benchmarks
Blocks: 503141
Summary: needlessly inserting quads into arrays → integer constants are not automatically demoted
Attached patch gal's patch from dependent bug (obsolete) — Splinter Review
Assignee: general → sayrer
Attached patch refactored (obsolete) — Splinter Review
Attachment #390018 - Flags: review?(gal)
Comment on attachment 390018 [details] [diff] [review] refactored Not sure my original code was ever reviewed. Probably better to get dvander to stamp it too. Otherwise I am approving my own stuff here :)
Attachment #390018 - Flags: review?(gal)
Attachment #390018 - Flags: review?(dvander)
Attachment #390018 - Flags: review+
Attachment #390018 - Flags: review?(dvander) → review+
Comment on attachment 390018 [details] [diff] [review] refactored >+ >+static JSBool FASTCALL >+dense_grow(JSContext* cx, JSObject* obj, jsint i, jsval v) this should have been inline. says Shark. >+ if (JS_LIKELY(INT_FITS_IN_JSVAL(j))) >+ v = INT_TO_JSVAL(j); >+ else { style fail!
Attached patch nit fixed, inlined (obsolete) — Splinter Review
Attachment #390005 - Attachment is obsolete: true
Attachment #390018 - Attachment is obsolete: true
Attachment #390107 - Attachment is obsolete: true
Attachment #390109 - Flags: review?(gal)
Attachment #390109 - Flags: review?(gal) → review+
Comment on attachment 390109 [details] [diff] [review] nit fixed, inlined SS, v8 no change or slightly faster (< 3-4ms)
Flags: wanted1.9.2+
Whiteboard: fixed-in-tracemonkey
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: