mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 908939 - Use the original function to construct the |this| type set in inline dispatch in Ion. (r=jandem)
This commit is contained in:
parent
57b9fa9ee2
commit
cdab9c69e0
13
js/src/jit-test/tests/parallel/bug908939.js
Normal file
13
js/src/jit-test/tests/parallel/bug908939.js
Normal file
@ -0,0 +1,13 @@
|
||||
if (getBuildConfiguration().parallelJS) {
|
||||
x = ParallelArray([9937], function() {
|
||||
return /x/
|
||||
})
|
||||
Object.defineProperty(this, "y", {
|
||||
get: function() {
|
||||
return Object.create(x)
|
||||
}
|
||||
})
|
||||
y + x
|
||||
x = x.scatter([]);
|
||||
+ y
|
||||
}
|
@ -4295,7 +4295,7 @@ IonBuilder::inlineCalls(CallInfo &callInfo, AutoObjectVector &targets,
|
||||
if (maybeCache) {
|
||||
JS_ASSERT(callInfo.thisArg() == maybeCache->object());
|
||||
types::StackTypeSet *targetThisTypes =
|
||||
maybeCache->propTable()->buildTypeSetForFunction(target);
|
||||
maybeCache->propTable()->buildTypeSetForFunction(original);
|
||||
if (!targetThisTypes)
|
||||
return false;
|
||||
maybeCache->object()->setResultTypeSet(targetThisTypes);
|
||||
|
Loading…
Reference in New Issue
Block a user