SegmentMapFlagResetInJSArrayConstructor.js 850 B

12345678910111213141516171819202122232425262728
  1. //-------------------------------------------------------------------------------------------------------
  2. // Copyright (C) Microsoft. All rights reserved.
  3. // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
  4. //-------------------------------------------------------------------------------------------------------
  5. var shouldBailout = false;
  6. function test0(){
  7. var FloatArr0 = [231762358,-2147483648,438008391,138,2.12355879560872E+18];
  8. FloatArr0[12] = 1;
  9. FloatArr0[6] = 1;
  10. if(FloatArr0[((shouldBailout ? (FloatArr0[1] = 'x') : undefined ), 1)]) {
  11. }
  12. };
  13. // generate profile
  14. test0();
  15. // Run Simple JIT
  16. test0();
  17. test0();
  18. // run JITted code
  19. runningJITtedCode = true;
  20. test0();
  21. // run code with bailouts enabled
  22. shouldBailout = true;
  23. test0();
  24. WScript.Echo("Pass");