OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 // Flags: --allow-natives-syntax --expose-gc |
| 6 |
| 7 function getRandomProperty(v, rand) { var properties = Object.getOwnPropertyName
s(v); var proto = Object.getPrototypeOf(v); if (proto) {; } if ("constructor" &&
v.constructor.hasOwnProperty()) {; } if (properties.length == 0) { return "0";
} return properties[rand % properties.length]; } |
| 8 var __v_4 = {}; |
| 9 |
| 10 __v_2 = { |
| 11 FAST_ELEMENTS() { |
| 12 return { |
| 13 get 0() { |
| 14 } }; |
| 15 } , |
| 16 Arguments: { |
| 17 FAST_SLOPPY_ARGUMENTS_ELEMENTS() { |
| 18 var __v_11 = (function( b) { return arguments; })("foo", NaN, "bar"); |
| 19 __v_11.__p_2006760047 = __v_11[getRandomProperty( 2006760047)]; |
| 20 __v_11.__defineGetter__(getRandomProperty( 1698457573), function() { gc()
; __v_4[ 1486458228] = __v_2[ 1286067691]; return __v_11.__p_2006760047; }); |
| 21 ; |
| 22 Array.prototype.includes.call(__v_11); |
| 23 }, |
| 24 Detached_Float64Array() { |
| 25 } } |
| 26 }; |
| 27 function __f_3(suites) { |
| 28 Object.keys(suites).forEach(suite => __f_4(suites[suite])); |
| 29 function __f_4(suite) { |
| 30 Object.keys(suite).forEach(test => suite[test]()); |
| 31 } |
| 32 } |
| 33 __f_3(__v_2); |
OLD | NEW |