Closed Bug 720925 Opened 12 years ago Closed 12 years ago

IonMonkey: Add Object comparison

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: dvander, Assigned: dvander)

References

(Blocks 1 open bug)

Details

Attachments

(1 file, 1 obsolete file)

This is needed to run kraken-ai-astar.
Attached patch patch (obsolete) — Splinter Review
Attachment #591546 - Flags: review?(sstangl)
Attached patch actual patchSplinter Review
Attachment #591546 - Attachment is obsolete: true
Attachment #591546 - Flags: review?(sstangl)
Attachment #591548 - Flags: review?
Comment on attachment 591548 [details] [diff] [review]
actual patch

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

::: js/src/ion/LIR-Common.h
@@ +385,1 @@
>  class LCompareI : public LInstructionHelper<1, 2, 0>

Keeping the I suffix seems misleading. LCompareIO? LCompareIvO (the "v" being "or")? Same with LCompareIAndBranch.

::: js/src/ion/Lowering.cpp
@@ +223,5 @@
>          MCompare *comp = opd->toCompare();
>          MDefinition *left = comp->getOperand(0);
>          MDefinition *right = comp->getOperand(1);
>  
> +        if (comp->specialization() == MIRType_Int32|| comp->specialization() == MIRType_Object) {

nit: space between MIRType_Int32 and ||.

::: js/src/ion/TypePolicy.h
@@ +118,5 @@
>  
>    public:
> +    ComparePolicy() : specialization_(MIRType_None)
> +    {
> +    }

nit:
ComparePolicy()
  : specialization_(MIRType_None)
{ }

::: js/src/ion/shared/CodeGenerator-x86-shared.cpp
@@ +226,5 @@
>      }
>  }
>  
> +void
> +CodeGeneratorX86Shared::emitCompare(MIRType type, const LAllocation *left, const LAllocation *right)

emitCompareIvO?

@@ +227,5 @@
>  }
>  
> +void
> +CodeGeneratorX86Shared::emitCompare(MIRType type, const LAllocation *left, const LAllocation *right)
> +{

JS_ASSERT(type == MIRType_Object || type == MIRType_Int32);
Attachment #591548 - Flags: review? → review+
http://hg.mozilla.org/projects/ionmonkey/rev/b2a4c499d052
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
It's a bug or this patch really made IM 5.4x times faster than JM+TI? (looking at awfy)
On 652377 testcase.
(In reply to Guilherme Lima from comment #5)
> It's a bug or this patch really made IM 5.4x times faster than JM+TI?
> (looking at awfy)

It's a bug: debug builds trip an assert.
It's also unrelated to this patch (awfy only tests on the hour) - bug 721272 fixed a typo that caused more paths to compile, exposing more bugs.
You need to log in before you can comment on or make changes to this bug.