Commit 340920e1 authored by Adam Klein's avatar Adam Klein Committed by Commit Bot

[mjsunit] Improve performance of compiler/osr-assert test

This test currently takes nearly 10 minutes on the arm64 debug builder.

Bug: v8:7783
Change-Id: I500fc026b01873e666f32062d790eca3f34455b9
Reviewed-on: https://chromium-review.googlesource.com/c/1318495
Commit-Queue: Adam Klein <adamk@chromium.org>
Reviewed-by: 's avatarJakob Gruber <jgruber@chromium.org>
Cr-Commit-Position: refs/heads/master@{#57298}
parent 09b29b09
...@@ -25,17 +25,20 @@ ...@@ -25,17 +25,20 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// Flags: --use-osr // Flags: --use-osr --allow-natives-syntax
function f(x, b, c) { function f(x, b, c) {
var outer = 1000000; var outer = 10;
var a = 1; var a = 1;
while (outer > 0) { while (outer > 0) {
a = a + 5; a = a + 5;
assertEquals(b + 1, c); assertEquals(b + 1, c);
outer--; outer--;
if (outer === 5) {
%OptimizeOsr();
}
} }
return a + 4; return a + 4;
} }
assertEquals(5000005, f(5, "122", "1221")); assertEquals(55, f(5, "122", "1221"));
...@@ -368,7 +368,6 @@ ...@@ -368,7 +368,6 @@
'array-splice': [PASS, SLOW], 'array-splice': [PASS, SLOW],
'bit-not': [PASS, SLOW], 'bit-not': [PASS, SLOW],
'compiler/alloc-number': [PASS, SLOW], 'compiler/alloc-number': [PASS, SLOW],
'compiler/osr-assert': [PASS, SLOW],
'compiler/osr-with-args': [PASS, SLOW], 'compiler/osr-with-args': [PASS, SLOW],
'generated-transition-stub': [PASS, SLOW], 'generated-transition-stub': [PASS, SLOW],
'json2': [PASS, SLOW], 'json2': [PASS, SLOW],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment