Closed Bug 839115 Opened 12 years ago Closed 12 years ago

BaselineCompiler: IC for object equality

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: evilpie, Assigned: evilpie)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

This will be easy after we removed the object equality hook.
Assignee: general → evilpies
Status: NEW → ASSIGNED
Attached patch v1 (deleted) — Splinter Review
Very simple object equality hook. This passes jit-tests, but we should maybe wait until the equality hook removal is merged.
Attachment #712948 - Flags: review?(kvijayan)
Comment on attachment 712948 [details] [diff] [review]
v1

Review of attachment 712948 [details] [diff] [review]:
-----------------------------------------------------------------

::: js/src/ion/BaselineIC.cpp
@@ +1238,5 @@
>              stub->addNewStub(stringStub);
>              return true;
>          }
> +
> +        if (lhs.isObject() && rhs.isObject() && !stub->hasStub(ICStub::Compare_Object)) {

The |!stub->hasStub(ICStub::Compare_Object)| check can be moved into the conditional and made into an ASSERT.

If we've attached a Compare_Object stub, then we should never hit the fallback stub when both lhs and rhs are objects.
Attachment #712948 - Flags: review?(kvijayan) → review+
https://hg.mozilla.org/projects/ionmonkey/rev/39662d8948a6
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: