Closed Bug 784765 Opened 12 years ago Closed 12 years ago

IonMonkey: Inline actual string compare

Categories

(Core :: JavaScript Engine, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla18

People

(Reporter: evilpie, Assigned: evilpie)

References

(Blocks 1 open bug)

Details

(Whiteboard: [ion:t])

Attachments

(1 file, 1 obsolete file)

At the moment we only handle some cases, but we never actually compare the chars, even for linear strings.
Memo: Just calling memcmp doesn't seem to improve anything. And implementing this inline requires quite a lot of registers.
Attached patch v1 only compare string.length (obsolete) — Splinter Review
Just comparing the string length is an easy win. We should do this in the meantime. https://tbpl.mozilla.org/?tree=Try&rev=1b867253e1f9
Attachment #668568 - Attachment is obsolete: true
Attachment #668779 - Flags: review?(jdemooij)
Comment on attachment 668779 [details] [diff] [review] v2 now with moar compiling code! Review of attachment 668779 [details] [diff] [review]: ----------------------------------------------------------------- Thanks, great idea!
Attachment #668779 - Flags: review?(jdemooij) → review+
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla18
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: