diff options
Diffstat (limited to 'js/src/jit-test/tests/arguments/inline-arguments-profiler.js')
-rw-r--r-- | js/src/jit-test/tests/arguments/inline-arguments-profiler.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/arguments/inline-arguments-profiler.js b/js/src/jit-test/tests/arguments/inline-arguments-profiler.js new file mode 100644 index 0000000000..6d89b3d72b --- /dev/null +++ b/js/src/jit-test/tests/arguments/inline-arguments-profiler.js @@ -0,0 +1,11 @@ +function foo() { return arguments; } +function bar(x) { return foo(x); } + +// Turning on the profiler uses up a register and increases register pressure. +enableGeckoProfiling(); +with ({}) {} +for (var i = 0; i < 100; i++) { + var result = bar(3); + assertEq(result.length, 1); + assertEq(result[0], 3); +} |