Pārlūkot izejas kodu

Add test for ldlen regopnd jitoptimized fix.

Derek Morris 9 gadi atpakaļ
vecāks
revīzija
48ff0d4599
2 mainītis faili ar 31 papildinājumiem un 0 dzēšanām
  1. 26 0
      test/fieldopts/argobjlengthhoist.js
  2. 5 0
      test/fieldopts/rlexe.xml

+ 26 - 0
test/fieldopts/argobjlengthhoist.js

@@ -0,0 +1,26 @@
+//-------------------------------------------------------------------------------------------------------
+// Copyright (C) Microsoft. All rights reserved.
+// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
+//-------------------------------------------------------------------------------------------------------
+
+function Tm()
+{
+    var n = arguments[0];
+    for(var s = 0; s<n.length; s++)
+    {
+        var f = n.charCodeAt(s);
+    }
+}
+
+Tm("reallyLongTestString" + Math.random());
+Tm("reallyLongTestString" + Math.random());
+Tm("reallyLongTestString" + Math.random());
+Tm("reallyLongTestString" + Math.random());
+Tm("reallyLongTestString" + Math.random());
+Tm("reallyLongTestString" + Math.random());
+Tm("reallyLongTestString" + Math.random());
+Tm("reallyLongTestString" + Math.random());
+Tm("reallyLongTestString" + Math.random());
+Tm("reallyLongTestString" + Math.random());
+
+WScript.Echo("pass");

+ 5 - 0
test/fieldopts/rlexe.xml

@@ -876,4 +876,9 @@
       <baseline>add-prop-to-dictionary.baseline</baseline>
     </default>
   </test>
+  <test>
+    <default>
+      <files>argobjlengthhoist.js</files>
+    </default>
+  </test>
 </regress-exe>