bug547302.js 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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. function test0(){
  6. var d = 1;
  7. var __loopvar0 = 0;
  8. do {
  9. __loopvar0++;
  10. if((this.prop0 <= d)) {
  11. var __loopvar3 = 0;
  12. do {
  13. __loopvar3++;
  14. 1 // Snippet switch1
  15. switch(Object.keys(arrObj0).length){
  16. case 1:
  17. GiantPrintArray.push(1);
  18. break;
  19. case 2:
  20. GiantPrintArray.push(2);
  21. break;
  22. case 3:
  23. GiantPrintArray.push(3);
  24. break;
  25. case 4:
  26. GiantPrintArray.push(4);
  27. case arrObj0:
  28. GiantPrintArray.push(arrObj0);
  29. case 5:
  30. d *=1;
  31. GiantPrintArray.push(5);
  32. break;
  33. case 6:
  34. GiantPrintArray.push(6);
  35. break;
  36. case 7:
  37. GiantPrintArray.push(7);
  38. case 8:
  39. GiantPrintArray.push(8);
  40. break;
  41. default:
  42. GiantPrintArray.push("Default");
  43. break;
  44. }
  45. } while(((d = 1)) && __loopvar3 < 3)
  46. d ^=IntArr1[(1)];
  47. for (var _i in arguments[1]) {
  48. d =2.62877767046713E+18;
  49. };
  50. }
  51. } while((1) && __loopvar0 < 3)
  52. };
  53. // generate profile
  54. test0();
  55. test0();
  56. // Run Simple JIT
  57. test0();
  58. test0();
  59. test0();
  60. test0();
  61. test0();
  62. // run JITted code
  63. runningJITtedCode = true;
  64. test0();
  65. test0();
  66. // run code with bailouts enabled
  67. shouldBailout = true;
  68. test0();
  69. WScript.Echo("PASSED");