mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1155807 - Watch for converted native groups with unknown properties, r=jandem.
This commit is contained in:
parent
2ba65800c2
commit
2337513828
15
js/src/jit-test/tests/ion/bug1155807.js
Normal file
15
js/src/jit-test/tests/ion/bug1155807.js
Normal file
@ -0,0 +1,15 @@
|
||||
|
||||
for (var i = 0; i < 2; i++) {
|
||||
setJitCompilerOption("ion.warmup.trigger", 8)
|
||||
function f(state) {
|
||||
this.s = state
|
||||
}
|
||||
f.prototype.g = function(v, y) {
|
||||
this.t
|
||||
}
|
||||
x = ['', '']
|
||||
j = new f(false)
|
||||
x.filter(j.g, j)
|
||||
x.filter(j.g, new f(false))
|
||||
j.__proto__ = {}
|
||||
}
|
@ -9468,6 +9468,10 @@ IonBuilder::getDefiniteSlot(TemporaryTypeSet* types, PropertyName* name, uint32_
|
||||
if (!convertUnboxedGroups.append(key->group()))
|
||||
CrashAtUnhandlableOOM("IonBuilder::getDefiniteSlot");
|
||||
key = TypeSet::ObjectKey::get(nativeGroup);
|
||||
if (key->unknownProperties()) {
|
||||
trackOptimizationOutcome(TrackedOutcome::UnknownProperties);
|
||||
return UINT32_MAX;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user