Home | History | Annotate | Download | only in compiler
      1 // Copyright 2015 the V8 project authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 // Flags: --allow-natives-syntax
      6 
      7 
      8 function fastaRandom(n, table) {
      9   var line = new Array(5);
     10   while (n > 0) {
     11     if (n < line.length) line = new Array(n);
     12     %OptimizeOsr();
     13     line[0] = n;
     14     n--;
     15   }
     16 }
     17 
     18 print("---BEGIN 1");
     19 assertEquals(undefined, fastaRandom(6, null));
     20 print("---BEGIN 2");
     21 assertEquals(undefined, fastaRandom(6, null));
     22 print("---END");
     23