Closed Bug 1267163 Opened 8 years ago Closed 7 years ago

Port primitive value getprop stub to CacheIR

Categories

(Core :: JavaScript Engine: JIT, defect, P5)

defect

Tracking

()

RESOLVED FIXED
mozilla52
Tracking Status
firefox52 --- fixed

People

(Reporter: jandem, Assigned: jandem)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Attached patch PatchSplinter Review
This is just a port of the existing stub. I think with the IR it'd be easy now to also handle properties on the proto's prototype (Object.prototype), but we can do that later.

 7 files changed, 99 insertions(+), 202 deletions(-)
Attachment #8744841 - Flags: review?(efaustbmo)
Comment on attachment 8744841 [details] [diff] [review]
Patch

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

It strikes me that we should have a commented list of what IR ops already exist, so that people adding new stuff later don't feel compelled to re-invent the wheel.

::: js/src/jit/CacheIR.cpp
@@ +72,3 @@
>      }
>  
> +    if (!emitted_ && !tryAttachPrimitive(*writer, valId))

Is this better than else { }?

Either way is fine.
Attachment #8744841 - Flags: review?(efaustbmo) → review+
I should just land this.
Priority: -- → P5
Pushed by jandemooij@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/71808c547e9c
Port primitive value getprop stub to CacheIR. r=efaust
Pushed by jandemooij@gmail.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/c64ed9250f55
followup - Use static_assert instead of MOZ_ASSERT. r=red, CLOSED TREE
https://hg.mozilla.org/mozilla-central/rev/71808c547e9c
https://hg.mozilla.org/mozilla-central/rev/c64ed9250f55
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla52
See Also: → 1347486
You need to log in before you can comment on or make changes to this bug.