Closed
Bug 682060
Opened 14 years ago
Closed 14 years ago
IonMonkey: Implement LTestDAndBranch
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
People
(Reporter: dvander, Assigned: dvander)
References
Details
Attachments
(1 file)
|
29.85 KB,
patch
|
sstangl
:
review+
|
Details | Diff | Splinter Review |
No description provided.
| Assignee | ||
Updated•14 years ago
|
Assignee: general → dvander
Status: NEW → ASSIGNED
| Assignee | ||
Comment 1•14 years ago
|
||
This patch implements LTestDAndBranch, LCompareD, and LCompareDAndBranch. It also refactors a lot of the comparison boilerplate.
Attachment #557401 -
Flags: review?(sstangl)
Comment 2•14 years ago
|
||
Comment on attachment 557401 [details] [diff] [review]
patch
Review of attachment 557401 [details] [diff] [review]:
-----------------------------------------------------------------
::: js/src/ion/Lowering.cpp
@@ -122,5 @@
> MDefinition *opd = test->getOperand(0);
> MBasicBlock *ifTrue = test->ifTrue();
> MBasicBlock *ifFalse = test->ifFalse();
>
> - if (opd->isConstant()) {
I am unclear on why this block was removed. If it is because constant tests are now not generated, can we assert !opd->isConstant()?
Attachment #557401 -
Flags: review?(sstangl) → review+
| Assignee | ||
Comment 3•14 years ago
|
||
I removed it since it was premature optimization, and rather out of place. Ideally this folding should be done in MIR, but if that's too hard and there's a situation where this optimization is necessary, we can add it back.
| Assignee | ||
Comment 4•14 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•