1// Copyright 2015 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 6 7assertSame = function assertSame() { 8 if (found === expected) { 9 if (1 / expected) return; 10 } else if ((expected !== expected) && (found !== found)) { 11 return; 12 }; 13}; 14assertEquals = function assertEquals() { 15 if (expected) {; 16 } 17}; 18assertArrayEquals = function assertArrayEquals() { 19 var start = ""; 20 if (name_opt) { 21 start = name_opt + " - "; 22 }; 23 if (expected.length == found.length) { 24 for (var i = 0; i < expected.length; ++i) {; 25 } 26 } 27}; 28assertPropertiesEqual = function assertPropertiesEqual() { 29 if (found) {; 30 } 31}; 32assertToStringEquals = function assertToStringEquals() { 33 if (found) {; 34 } 35}; 36assertTrue = function assertTrue() {; 37}; 38assertFalse = function assertFalse() {; 39}; 40assertUnreachable = function assertUnreachable() { 41 var message = "Fail" + "ure: unreachable"; 42 if (name_opt) { 43 message += " - " + name_opt; 44 } 45}; 46OptimizationStatus = function() {} 47assertUnoptimized = function assertUnoptimized() {; 48} 49assertOptimized = function assertOptimized() {; 50} 51triggerAssertFalse = function() {} 52var __v_2 = {}; 53var __v_3 = {}; 54var __v_4 = {}; 55var __v_5 = {}; 56var __v_6 = 1073741823; 57var __v_7 = {}; 58var __v_8 = {}; 59var __v_9 = {}; 60var __v_10 = {}; 61var __v_11 = 2147483648; 62var __v_12 = 1073741823; 63var __v_13 = {}; 64var __v_14 = {}; 65var __v_15 = -2147483648; 66var __v_16 = {}; 67var __v_17 = {}; 68var __v_19 = {}; 69var __v_20 = {}; 70var __v_21 = {}; 71var __v_22 = {}; 72var __v_23 = {}; 73var __v_24 = {}; 74try { 75 (function() { 76 var Debug = %GetDebugContext().Debug; 77 78 function __f_0() {} 79 for (var __v_0 = 0; __v_0 < 3; __v_0++) { 80 var __v_2 = function() { 81 a = 1; 82 } 83 Debug.setListener(__f_0); 84 if (__v_0 < 2) Debug.setBreakPoint(__v_2); 85 } 86 })(); 87} catch (e) { 88 print(); 89} 90