childCallsEvalJitLoopBody.js 1.0 KB

1234567891011121314151617181920212223242526
  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. // Due to the eval, 'a' get put in a slot and should not be assigned a non-temp register. The uses of 'a' in the loop should be
  6. // given a temp register so that they are not loaded/restored from the jitted loop body.
  7. (function(){
  8. var __loopvar0 = 0;
  9. while((1) && __loopvar0 < 3) {
  10. __loopvar0++;
  11. for(var __loopvar1 = 0; __loopvar1 < 3; ++__loopvar1) {
  12. (function(){
  13. (function(){
  14. eval("");
  15. })(1, 1, 1, 1);
  16. var __loopvar3 = 0;
  17. while((1) && __loopvar3 < 3) {
  18. __loopvar3++;
  19. d =Math.sin((-1012552393 * (__loopvar1 << a)));
  20. var a = 1;
  21. }
  22. })(1);
  23. }
  24. }
  25. })();