Closed Bug 455811 Opened 16 years ago Closed 16 years ago

TM: Unify and cleanup equal and cmp

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: gal, Assigned: gal)

Details

Attachments

(1 file, 1 obsolete file)

cmp and equal are totally gross. This patch tries to unify and streamline the code and add support for more cases. Needs to be tested. I am putting this up for feedback.
Assignee: general → gal
This patch also fixes a bug in cmp/equals. We check for JSVAL_IS_NULL(l) and then assume at runtime that its again a comparison against null, but since null is just one value out of the Object domain we actually have to also check that l_ins->isconst(). Thats fixed in this patch.
Attached patch Working patch.Splinter Review
Attachment #339276 - Flags: review?(danderson)
Attachment #339158 - Attachment is obsolete: true
Attachment #339276 - Flags: review?(danderson) → review+
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Flags: in-testsuite-
Flags: in-litmus-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: