mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 810253 - Add tests and comments. r=dvander
This commit is contained in:
parent
6dd2b0c4ea
commit
7a071fabd7
@ -177,6 +177,8 @@ IsPhiObservable(MPhi *phi)
|
||||
if (slot == 1)
|
||||
return true;
|
||||
|
||||
// If the Phi is one of the formal argument, and we are using an argument
|
||||
// object in the function. The phi might be observable after a bailout.
|
||||
CompileInfo &info = phi->block()->info();
|
||||
if (info.fun() && info.hasArguments()) {
|
||||
// We do not support arguments object inside inline frames yet.
|
||||
|
8
js/src/jit-test/tests/ion/bug810253.js
Normal file
8
js/src/jit-test/tests/ion/bug810253.js
Normal file
@ -0,0 +1,8 @@
|
||||
function f(x) {
|
||||
// Enter via OSR.
|
||||
for (var j = 0; j < 100; j++) { };
|
||||
|
||||
for (var i = 0; i < arguments.length; i++)
|
||||
assertEq(arguments[i], i);
|
||||
};
|
||||
f(0, 1, 2, 3);
|
Loading…
Reference in New Issue
Block a user