mirror of
				https://github.com/tc39/test262.git
				synced 2025-10-31 19:53:50 +01:00 
			
		
		
		
	sourceRevisionAtLastExport: 33f2fb0e53d135f0ee17cfccd9d993eb2a6f47de targetRevisionAtLastExport: 31340cbd9add103f586d501b0c3354b7b182abc0
		
			
				
	
	
		
			43 lines
		
	
	
		
			789 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			43 lines
		
	
	
		
			789 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| // Copyright 2015 the V8 project authors. All rights reserved.
 | |
| // Use of this source code is governed by a BSD-style license that can be
 | |
| // found in the LICENSE file.
 | |
| //
 | |
| // Flags: --expose-gc
 | |
| 
 | |
| var __v_9 = {};
 | |
| var depth = 15;
 | |
| var current = 0;
 | |
| 
 | |
| function __f_15(__v_3) {
 | |
|   if ((__v_3 % 50) != 0) {
 | |
|     return __v_3;
 | |
|   } else {
 | |
|     return __v_9 + 0.5;
 | |
|   }
 | |
| }
 | |
| function __f_13(a) {
 | |
|   a[100000 - 2] = 1;
 | |
|   for (var __v_3= 0; __v_3 < 70000; ++__v_3 ) {
 | |
|     a[__v_3] = __f_15(__v_3);
 | |
|   }
 | |
| }
 | |
| function __f_2(size) {
 | |
| 
 | |
| }
 | |
| var tmp;
 | |
| function __f_18(allocator) {
 | |
|   current++;
 | |
|   if (current == depth) return;
 | |
|   var __v_7 = new allocator(100000);
 | |
|   __f_13(__v_7);
 | |
|   var __v_4 = 6;
 | |
|   for (var __v_3= 0; __v_3 < 70000; __v_3 += 501 ) {
 | |
|     tmp += __v_3;
 | |
|   }
 | |
|   __f_18(Array);
 | |
|   current--;
 | |
| }
 | |
| 
 | |
| gc();
 | |
| __f_18(__f_2);
 |