Closed
Bug 1380953
Opened 8 years ago
Closed 5 years ago
Ion retrieves "prototype" property too often from NewTarget
Categories
(Core :: JavaScript Engine: JIT, defect, P3)
Core
JavaScript Engine: JIT
Tracking
()
RESOLVED
DUPLICATE
of bug 1607670
People
(Reporter: anba, Unassigned)
Details
Test case:
---
var q = 0;
function fn() {}
var newTarget = Object.defineProperty(fn.bind(), "prototype", {
get() {
++q;
return null;
}
});
for (var i = 0; i < 10; ++i) {
Reflect.construct(fn, [], newTarget);
}
print(q);
---
Actual:
- When called with "--no-ion", prints "10"
- When called with "--ion-eager --no-threads", prints "16"
Expected:
- Always prints "10".
| Reporter | ||
Comment 1•8 years ago
|
||
I guess this happens because of the MCallGetProperty here: http://searchfox.org/mozilla-central/rev/cbd628b085ac809bf5a536109e6288aa91cbdff0/js/src/jit/IonBuilder.cpp#4869-4871
Updated•8 years ago
|
Priority: -- → P3
| Reporter | ||
Comment 2•5 years ago
|
||
Fixed in bug 1607670.
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•