Lines Matching refs:if
26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 if (str.length > this.length) {
42 if (!obj && typeof obj === 'object') {
58 if (!next) {
70 if (typeof name === 'string' && name.startsWith(last)) {
126 //var lol_is_enabled; // Set to true in d8.cc if LIVE_OBJECT_LIST is defined.
145 if (trace_debug_json) {
152 if (response.type() == 'event') {
169 if (body.breakpoints) {
171 if (body.breakpoints.length > 1) {
176 if (i > 0) {
198 if (body.uncaught) {
206 if (body.sourceLine >= 0) {
226 if (trace_compile) {
229 if (!(source[source.length - 1] == '\n')) {
253 if (body.script) {
254 if (body.script.name) {
270 if (!source_text) {
274 // Create an underline with a caret pointing to the source position. If the
279 if (source_text[i] == '\t') {
295 if (trace_debug_json && result) {
303 // If the very first character is a { assume that a JSON request have been
305 if (cmd_line && cmd_line.length > 0 && cmd_line.charAt(0) == '{') {
312 if (cmd_line == '\n') {
313 if (is_running) {
320 if (!is_running) { // Only save the command if in debugger mode.
331 if (pos == -1) {
339 if ((cmd === undefined) || !cmd) {
512 if (lol_is_enabled) {
539 if (this.command) {
542 if (this.arguments) {
545 if (this.arguments.toJSONProtocol) {
566 if (is_continuation) {
570 if (lines_to_dump) {
575 if (lines_to_dump > kMaxLolLinesToPrintAtATime) {
595 if (lol_is_enabled) {
596 // Check if the expression is a obj id in the form @<obj id>.
598 if (obj_id_match) {
608 // Check if the expression is a handle id in the form #<handle>#.
610 if (handle_match) {
623 // Request a global evaluation if there is no current frame.
624 if (Debug.State.currentFrame == kNoFrame) {
636 if (handle_match) {
662 // Process arguments if any.
664 // Only process args if the command is 'step' which is indicated by type being
666 if (args && args.length > 0) {
669 if (args.length > 2) {
673 if (args.length > 0) {
674 // Check if we have a gdb stype step command. If so, the 1st arg would
675 // be the step count. If it's not a number, then assume that we're
678 if (stepcount == Number.NaN) {
680 if (args.length == 2) {
682 if (isNaN(stepcount) || stepcount <= 0) {
740 if (args.length == 1 && args[0].length > 0) {
742 if (frameCount > 0) {
752 } else if (args.length == 2) {
755 if (isNaN(fromFrame) || fromFrame < 0) {
758 if (isNaN(toFrame) || toFrame < 0) {
761 if (fromFrame > toFrame) {
768 } else if (args.length > 2) {
781 if (args.length > 0 && args[0].length > 0) {
802 if (args.length > 0 && args[0].length > 0) {
813 if (args.length == 0) {
823 if (args.length == 0) {
833 if (args.length == 0) {
844 if (args.length == 0) {
857 if (Debug.State.displaySourceEndLine == -1) {
858 // If we list forwards, we will start listing after the last source end
861 // If we list backwards, we will start listing backwards from the last
872 if (args == '') {
873 } else if ((args.length == 1) && (args[0] == '-')) {
875 } else if (args.length == 2) {
899 if (args.length > 1 && args[0].length > 0 && args[1].length > 0) {
902 } else if (args.length > 0 && args[0].length > 0) {
906 if (from < 0) from = 0;
907 if (lines < 0) lines = 10;
923 // Process arguments if any.
924 if (args && args.length > 0) {
927 if (args.length > 1) {
949 // If the arg is not one of the know one aboves, then it must be a
963 // Process arguments if any.
964 if (args && args.length > 0) {
974 // Break the args into target spec and condition if appropriate.
978 if (pos > 0) {
983 // Check for script breakpoint (name:line[:column]). If no ':' in break
986 if (pos > 0) {
989 if (target[0] == '/' && target[target.length - 1] == '/') {
998 if (pos > 0) {
1004 } else if (target[0] == '#' && target[target.length - 1] == '#') {
1026 if (args && args.length > 0) {
1039 // Process arguments if any.
1040 if (args && args.length > 0) {
1062 if ((command == 'enable' || command == 'disable') &&
1071 if (arg1 == 'exc' || arg1 == 'exception' || arg1 == 'exceptions') {
1075 if (!arg2) {
1076 arg2 = 'all'; // if unspecified, set for all.
1077 } if (arg2 == 'unc') { // check for short cut.
1085 } else if (arg1 == 'all' || arg1 == 'unc' || arg1 == 'uncaught') {
1089 if (arg2 == 'exc' || arg1 == 'exception' || arg1 == 'exceptions') {
1091 if (excType == 'unc') {
1097 // If we matched one of the command formats, then excType will be non-null:
1098 if (excType) {
1113 // Process arguments if any.
1114 if (args && args.length > 0) {
1119 if (pos > 0) {
1161 if (args && (args == 'break' || args == 'br')) {
1165 } else if (args && (args == 'locals' || args == 'lo')) {
1169 } else if (args && (args == 'args' || args == 'ar')) {
1173 } else if (lol_is_enabled &&
1196 if (!args) {
1211 if (cmd == 'young') { cmd = 'quick'; }
1212 else if (cmd == 'old') { cmd = 'full'; }
1243 if (arg === 'verbose' || arg === 'v') {
1248 } else if (arg.match(/^[0-9]+$/)) {
1253 } else if (arg === 'index' || arg === 'i') {
1255 if (args.length < i) {
1260 if (start_index <= 0) {
1267 } else if (arg === 'type' || arg === 't') {
1269 if (args.length < i) {
1275 } else if (arg === 'space' || arg === 'sp') {
1277 if (args.length < i) {
1283 } else if (arg === 'property' || arg === 'prop') {
1285 if (args.length < i) {
1296 if (is_verbose) {
1308 if (type_filter) {
1311 if (space_filter) {
1314 if (prop_filter) {
1325 if (id) {
1336 // Use default command if one is not specified:
1337 if (!args) {
1350 if (cmd.match(/^[0-9]+$/)) {
1370 if (args.length < 2) {
1372 } else if (args.length > 2) {
1376 if (id.match(/^[0-9]+$/)) {
1381 } else if (id === 'all') {
1402 if (cmd === 'ret') cmd = 'retainers';
1403 else if (cmd === 'rp') cmd = 'retaining-paths';
1405 if (!first_arg_index) first_arg_index = 2;
1407 if (args.length < first_arg_index) {
1417 if (cmd === 'diff') {
1420 } else if (cmd == 'list') {
1440 if (args.length > 2) {
1452 if (args.length > 2) {
1494 if (args && args.length > 0) {
1495 if (args == 'compile') {
1498 } else if (args === 'debug json' || args === 'json' || args === 'packets') {
1513 if (args && args.length > 0) {
1519 print(' e.g. d[elete] - you get the same command if you type d or delete.');
1570 if (lol_is_enabled) {
1575 print(' If \'all\' is unspecified instead, will clear all.');
1579 print(' getid <address> - gets the obj id for the specified address if available.');
1582 print(' If N is specified, will print N items at a time.');
1591 print(' If only one id is specified, will print the path from');
1592 print(' roots to the specified object if available.');
1593 print(' print <id> - prints the obj for the specified obj id if available.');
1598 print(' If unspecified, N will default to '+
1606 print(' If the verbose option, or an option that implies a verbose dump');
1621 if (value.handle() >= 0) {
1642 if (include_properties) {
1649 if (property_value instanceof ProtocolReference) {
1652 if (property_value && property_value.type()) {
1701 if (value.isString()) {
1703 } else if (value.isPrimitive()) {
1705 } else if (value.isObject()) {
1729 if (value === 0) value = 1;
1756 if (has_more || (first_index != 1)) {
1771 if (last_count > 0) {
1775 if (last_size > 0) {
1783 if (has_more) {
1788 if (length === 0) result += ' none\n';
1809 if (summary) {
1818 if (found_root !== 0) {
1821 if (found_weak_root !== 0) {
1828 if (found_root !== 0) {
1835 if (found_weak_root !== 0) {
1854 if (body.size) {
1865 if (has_more || (first_index != 1)) {
1870 if (length === 0) result += ' none\n';
1877 if (entry.id > max_id) max_id = entry.id;
1878 if (entry.size > max_size) max_size = entry.size;
1887 if (entry.id !== 0) {
1896 if (has_more) {
1901 if (length === 0) result += ' none\n';
1931 if (body.id == 0) {
1955 if (!response.success()) {
1993 if (breakpoint.script_id) {
1996 if (breakpoint.script_name) {
1999 if (breakpoint.script_regexp) {
2003 if (breakpoint.column != null) {
2006 if (breakpoint.groupId) {
2009 if (breakpoint.ignoreCount) {
2012 if (breakpoint.active === false) {
2015 if (breakpoint.condition) {
2020 if (body.breakpoints.length === 0) {
2025 if (body.breakOnExceptions) {
2027 } else if (body.breakOnUncaughtExceptions) {
2042 if (body.totalFrames == 0) {
2048 if (i != 0) result += '\n';
2056 if (last_cmd === 'info locals') {
2058 if (locals.length === 0) {
2068 } else if (last_cmd === 'info args') {
2070 if (args.length === 0) {
2092 if (body.totalScopes == 0) {
2098 if (i != 0) {
2118 if (last_cmd == 'p' || last_cmd == 'print') {
2122 if (lookup_handle) {
2127 if (value.isObject()) {
2132 if (!value.isUndefined() && !value.isNull()) {
2134 if (value.isString()) {
2138 if (value.isString()) {
2166 if (maxdigits < 3) {
2171 // Check if there's an extra newline at the end.
2172 if (num == (lines.length - 1) && lines[num].length == 0) {
2178 if (current_line == Debug.State.currentSourceLine + 1) {
2198 if (i != 0) result += '\n';
2199 if (body[i].id) {
2205 if (body[i].name) {
2208 if (body[i].compilationType == Debug.ScriptCompilationType.Eval
2216 } else if (body[i].compilationType ==
2227 if (body[i].type == Debug.ScriptType.Native) {
2229 } else if (body[i].type == Debug.ScriptType.Extension) {
2234 if (sourceStart.length > 40) {
2240 if (body.length == 0) {
2268 if (body.after > (1024*1024)) {
2272 } else if (body.after > 1024) {
2329 if (this.packet_.refs) {
2394 if (index != null) {
2409 if (value) {
2448 * @return {boolean} true if the value is primitive
2467 * @return {boolean} true if the value is undefined
2476 * @return {boolean} true if the value is null
2485 * @return {boolean} true if the value is a boolean
2494 * @return {boolean} true if the value is a number
2503 * @return {boolean} true if the value is a string
2512 * @return {boolean} true if the value is an object
2566 if (this.value_.properties[i].name == name) {
2586 * @return {boolean} true if the value is a string
2665 if (ctrlCharTest_.test(value)) {
2669 // Use charmap if possible.
2671 if (mapped) return mapped;
2737 if (typeof key == 'string') {
2744 if (property_value === null) {
2746 } else if (typeof property_value.toJSONProtocol == 'function') {
2748 } else if (property_value.constructor.name == 'Array'){
2771 // Add the property if relevant.
2772 if (property_value_json) {
2793 if (i != 0) {
2797 if (elem.toJSONProtocol) {
2799 } else if (typeof(elem) === 'object') {
2801 } else if (typeof(elem) === 'boolean') {
2803 } else if (typeof(elem) === 'number') {
2805 } else if (typeof(elem) === 'string') {