| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- //-------------------------------------------------------------------------------------------------------
- // Copyright (C) Microsoft. All rights reserved.
- // Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
- //-------------------------------------------------------------------------------------------------------
- var GiantPrintArray = [];
- function test0()
- {
- GiantPrintArray.push(3.2);
- GiantPrintArray.push(true);
- }
- test0();
- //Profiled as NativeFloatArray
- test0();
- for(var i =0;i<GiantPrintArray.length;i++){
- WScript.Echo(GiantPrintArray[i]);
- };
- function test1()
- {
- var ary;
- GiantPrintArray.push(2);
- GiantPrintArray.push(ary);
- }
- test1();
- //Profiled as NativeIntArray
- test1();
- for(var i =0;i<GiantPrintArray.length;i++){
- WScript.Echo(GiantPrintArray[i]);
- };
- function test2(a)
- {
- GiantPrintArray.push(a);
- }
- var GiantPrintArray = [1.1];
- test2(1);
- //Profiled as NativeFloatArray
- var ary;
- test2(ary);
- for(var i =0;i<GiantPrintArray.length;i++){
- WScript.Echo(GiantPrintArray[i]);
- };
- function test3()
- {
- GiantPrintArray = [{}];
- GiantPrintArray.push(7);
- }
- test3();
- //Profiled as Var Array
- test3();
- for(var i =0;i<GiantPrintArray.length;i++){
- WScript.Echo(GiantPrintArray[i]);
- };
|