Bug 810253 - Add tests and comments. r=dvander

This commit is contained in:
Nicolas B. Pierron 2012-12-04 17:34:38 -08:00
parent 6dd2b0c4ea
commit 7a071fabd7
2 changed files with 10 additions and 0 deletions

View File

@ -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.

View 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);