box_jitloopbody2.js 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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 GiantPrintArray = [];
  6. function test0() {
  7. var obj1 = {};
  8. var IntArr0 = [787917310, 4294967296, 926685325, 104, -1308153184, -1073741824, 1868785301, 1064239984, 693100003, 2147483647, 2147483647, -575755389, -615389387];
  9. //Snippet:trycatchstackwind.ecs
  10. function v2201() {
  11. function v2202() {
  12. try {
  13. this.prop1();
  14. } catch (ex) {
  15. }
  16. }
  17. var v2205 = { prop1: 0.1 };
  18. v2205.prop1;
  19. for (var v2206 = 0; v2206 < 1; ++v2206) {
  20. v2202();
  21. var v2207 = v2205.prop1;
  22. v2207 += 1;
  23. // CSE when used within conditional operator
  24. var v2208;
  25. IntArr0 + v2208;
  26. GiantPrintArray.push(v2207);
  27. }
  28. };
  29. v2201();
  30. for (var i = 0; i < GiantPrintArray.length; i++) {
  31. WScript.Echo(GiantPrintArray[i]);
  32. };
  33. };
  34. // generate profile
  35. test0();
  36. // Run Simple JIT
  37. test0();
  38. // run JITted code
  39. runningJITtedCode = true;
  40. test0();