Lines Matching refs:if
26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
95 if (value) {
105 if (value) {
130 if (opt_script_break_point) {
163 if (this.script_break_point()) {
171 if (this.script_break_point() && this.script_break_point().condition()) {
210 if (!this.active()) return false;
213 if (this.condition()) {
214 // If break point has condition try to evaluate it in the top frame.
217 // If no sensible mirror or non true value break point not triggered.
218 if (!(mirror instanceof ValueMirror) || !%ToBoolean(mirror.value_)) {
229 if (this.script_break_point_) {
233 // If the break point has an ignore count it is not triggered.
234 if (this.ignoreCount_ > 0) {
244 // Function called from the runtime when a break point is hit. Returns true if
257 if (type == Debug.ScriptBreakPointType.ScriptId) {
259 } else if (type == Debug.ScriptBreakPointType.ScriptName) {
261 } else if (type == Debug.ScriptBreakPointType.ScriptRegExp) {
395 if (this.type_ == Debug.ScriptBreakPointType.ScriptId) {
399 if (!(script.line_offset <= this.line_ &&
403 if (this.type_ == Debug.ScriptBreakPointType.ScriptName) {
405 } else if (this.type_ == Debug.ScriptBreakPointType.ScriptRegExp) {
418 // If the column is undefined the break is on the line. To help locate the
421 if (IS_UNDEFINED(column)) {
425 if (!script.sourceColumnStart_) {
429 // Fill cache if needed and get column where the actual source starts.
430 if (IS_UNDEFINED(script.sourceColumnStart_[line])) {
440 // If the position is not found in the script (the script might be shorter
442 if (position === null) return;
448 if (IS_UNDEFINED(actual_position)) {
464 if (break_points[i].script_break_point() &&
481 if ((break_point.type() == Debug.ScriptBreakPointType.ScriptName ||
493 if (script_break_points[i].matchesScript(script)) {
502 if (!IS_FUNCTION(listener) && !IS_UNDEFINED(listener) && !IS_NULL(listener)) {
514 if (!IS_FUNCTION(f)) throw new Error('Parameters have wrong types.');
518 // Returns a Script object. If the parameter is a function the return value
519 // is the script in which the function is defined. If the parameter is a string
521 // value. If it is a regexp and there is a unique script whose name matches
524 if (IS_FUNCTION(func_or_script_name)) {
526 } else if (IS_REGEXP(func_or_script_name)) {
532 if (func_or_script_name.test(script.name)) {
537 // Return the unique script matching the regexp. If there are more
542 if
552 // Returns the script source. If the parameter is a function the return value
553 // is the script source for the script in which the function is defined. If the
561 if (!IS_FUNCTION(f)) throw new Error('Parameters have wrong types.');
566 if (!IS_FUNCTION(f)) throw new Error('Parameters have wrong types.');
571 if (!IS_FUNCTION(f)) throw new Error('Parameters have wrong types.');
576 if (!IS_FUNCTION(f)) throw new Error('Parameters have wrong types.');
581 if (!IS_FUNCTION(f)) throw new Error('Parameters have wrong types.');
604 if (break_points[i].number() == break_point_number) {
606 // Remove the break point from the list if requested.
607 if (remove) {
613 if (break_point) {
622 if (script_break_points[i].number() == break_point_number) {
627 if (break_points[i].number() == break_point_number) {
635 if (!IS_FUNCTION(func)) throw new Error('Parameters have wrong types.');
637 if (%FunctionIsAPIFunction(func)) {
647 if (script.type == Debug.ScriptType.Native) {
650 // If the script for the function has a name convert this to a script break
652 if (script && script.id) {
682 if (!enabled) {
687 if (script_id == scripts[i].id) {
699 // Only enable if the breakpoint hasn't been deleted:
700 if (break_point) {
708 // Only enable if the breakpoint hasn't been deleted:
709 if (break_point) {
722 if (ignoreCount < 0) {
732 if (break_point) {
736 if (!break_point) {
766 if (script_break_points[i].number() == break_point_number) {
768 // Remove the break point from the list if requested.
769 if (remove) {
795 // Run through all scripts to see if this script break point matches any
799 if (script_break_point.matchesScript(scripts[i])) {
856 if (ignoreCount < 0) {
898 if (!IS_FUNCTION(f)) throw new Error('Parameters have wrong types.');
902 if (!locations) return source;
944 if (!IS_UNDEFINED(opt_action)) action = %ToNumber(opt_action);
966 // If no index supplied return the selected frame.
967 if (opt_index == null) opt_index = this.selected_frame;
968 if (opt_index < 0 || opt_index >= this.frameCount()) {
976 if (i < 0 || i >= this.frameCount()) throw new Error('Illegal frame index.');
1043 // Add script related information to the event if available.
1045 if (script) {
1052 // Add an Array of break points hit if any.
1053 if (this.breakPointsHit()) {
1061 if (script_break_point) {
1133 if (this.exec_state_.frameCount() > 0) {
1138 // Add script information to the event if available.
1140 if (script) {
1169 if (this.before_) {
1185 if (this.before_) {
1260 if (!IS_UNDEFINED(script.data())) {
1263 if (include_source) {
1285 if (request) {
1286 // If message is based on a request this is a response. Fill the initial
1292 // If message is not based on a request it is a dabugger generated event.
1302 if (!this.options_) {
1319 if (this.request_seq) {
1323 if (this.event) {
1326 if (this.command) {
1329 if (this.success) {
1334 if (this.body) {
1338 if (this.body instanceof Mirror) {
1340 } else if (this.body instanceof Array) {
1343 if (this.body[i] instanceof Mirror) {
1355 if (this.message) {
1380 if (!request.type) {
1384 if (request.type != 'request') {
1388 if (!request.command) {
1392 if (request.arguments) {
1396 if (args.inlineRefs || args.compactFormat) {
1399 if (!IS_UNDEFINED(args.maxStringLength)) {
1404 if (request.command == 'continue') {
1406 } else if (request.command == 'break') {
1408 } else if (request.command == 'setbreakpoint') {
1410 } else if (request.command == 'changebreakpoint') {
1412 } else if (request.command == 'clearbreakpoint') {
1414 } else if (request.command == 'clearbreakpointgroup') {
1416 } else if (request.command == 'disconnect') {
1418 } else if (request.command == 'setexceptionbreak') {
1420 } else if (request.command == 'listbreakpoints') {
1422 } else if (request.command == 'backtrace') {
1424 } else if (request.command == 'frame') {
1426 } else if (request.command == 'scopes') {
1428 } else if (request.command == 'scope') {
1430 } else if (request.command == 'evaluate') {
1432 } else if (lol_is_enabled && request.command == 'getobj') {
1434 } else if (request.command == 'lookup') {
1436 } else if (request.command == 'references') {
1438 } else if (request.command == 'source') {
1440 } else if (request.command == 'scripts') {
1442 } else if (request.command == 'threads') {
1444 } else if (request.command == 'suspend') {
1446 } else if (request.command == 'version') {
1448 } else if (request.command == 'profile') {
1450 } else if (request.command == 'changelive') {
1452 } else if (request.command == 'flags') {
1454 } else if (request.command == 'v8flags') {
1458 } else if (request.command == 'gc') {
1462 } else if (lol_is_enabled && request.command == 'lol-capture') {
1464 } else if (lol_is_enabled && request.command == 'lol-delete') {
1466 } else if (lol_is_enabled && request.command == 'lol-diff') {
1468 } else if (lol_is_enabled && request.command == 'lol-getid') {
1470 } else if (lol_is_enabled && request.command == 'lol-info') {
1472 } else if (lol_is_enabled && request.command == 'lol-reset') {
1474 } else if (lol_is_enabled && request.command == 'lol-retainers') {
1476 } else if (lol_is_enabled && request.command == 'lol-path') {
1478 } else if (lol_is_enabled && request.command == 'lol-print') {
1480 } else if (lol_is_enabled && request.command == 'lol-stats') {
1487 // If there is no response object created one (without command).
1488 if (!response) {
1497 if (!IS_UNDEFINED(response.running)) {
1520 if (request.arguments) {
1528 // Get the stepcount argument if any.
1529 if (stepcount) {
1531 if (count < 0) {
1537 if (stepaction) {
1538 if (stepaction == 'in') {
1540 } else if (stepaction == 'min') {
1542 } else if (stepaction == 'next') {
1544 } else if (stepaction == 'out') {
1568 if (!request.arguments) {
1585 if (!type || IS_UNDEFINED(target)) {
1592 if (type == 'function') {
1594 if (!IS_STRING(target)) {
1607 if (!IS_FUNCTION(f)) {
1614 } else if (type == 'handle') {
1618 if (!mirror) {
1621 if (!mirror.isFunction()) {
1628 } else if (type == 'script') {
1633 } else if (type == 'scriptId') {
1636 } else if (type == 'scriptRegExp') {
1647 if (ignoreCount) {
1650 if (!enabled) {
1659 if (break_point instanceof ScriptBreakPoint) {
1660 if (break_point.type() == Debug.ScriptBreakPointType.ScriptId) {
1663 } else if (break_point.type() == Debug.ScriptBreakPointType.ScriptName) {
1666 } else if (break_point.type() == Debug.ScriptBreakPointType.ScriptRegExp) {
1686 if (!request.arguments) {
1698 if (!break_point) {
1703 // Change enabled state if supplied.
1704 if (!IS_UNDEFINED(enabled)) {
1705 if (enabled) {
1712 // Change condition if supplied
1713 if (!IS_UNDEFINED(condition)) {
1717 // Change ignore count if supplied
1718 if (!IS_UNDEFINED(ignoreCount)) {
1727 if (!request.arguments) {
1736 if (!group_id) {
1745 if (next_break_point.groupId() == group_id) {
1762 if (!request.arguments) {
1771 if (!break_point) {
1802 if (break_point.type() == Debug.ScriptBreakPointType.ScriptId) {
1805 } else if (break_point.type() == Debug.ScriptBreakPointType.ScriptName) {
1808 } else if (break_point.type() == Debug.ScriptBreakPointType.ScriptRegExp) {
1836 if (!request.arguments) {
1843 if (!type) {
1850 if (type == 'all') {
1852 } else if (type == 'uncaught') {
1856 // Pull out and check the 'enabled' argument if present:
1857 if (!IS_UNDEFINED(request.arguments.enabled)) {
1859 if ((enabled != true) && (enabled != false)) {
1865 if (type == 'all') {
1867 } else if (type == 'uncaught') {
1883 // Create simple response if there are no frames.
1884 if (total_frames == 0) {
1896 if (request.arguments) {
1897 if (request.arguments.fromFrame) {
1900 if (request.arguments.toFrame) {
1903 if (request.arguments.bottom) {
1908 if (from_index < 0 || to_index < 0) {
1916 if (to_index <= from_index) {
1937 if (this.exec_state_.frameCount() == 0) {
1942 if (request.arguments) {
1944 if (index < 0 || this.exec_state_.frameCount() <= index) {
1957 if (request.arguments && !IS_UNDEFINED(request.arguments.frameNumber)) {
1959 if (frame_index < 0 || this.exec_state_.frameCount() <= frame_index) {
1971 if (this.exec_state_.frameCount() == 0) {
1995 if (this.exec_state_.frameCount() == 0) {
2004 if (request.arguments && !IS_UNDEFINED(request.arguments.number)) {
2006 if (scope_index < 0 || frame.scopeCount() <= scope_index) {
2016 if (!request.arguments) {
2036 if (!IS_UNDEFINED(frame) && global) {
2041 if (additional_context) {
2045 if (!IS_STRING(mapping.name) || !IS_NUMBER(mapping.handle)) {
2050 if (!context_value_mirror) {
2059 if (global) {
2067 if (IS_UNDEFINED(disable_break)) {
2072 if (this.exec_state_.frameCount() == 0) {
2077 if (!IS_UNDEFINED(frame)) {
2079 if (frame_number < 0 || frame_number >= this.exec_state_.frameCount()) {
2096 if (!request.arguments) {
2104 if (IS_UNDEFINED(obj_id)) {
2114 if (!request.arguments) {
2122 if (IS_UNDEFINED(handles)) {
2127 if (!IS_UNDEFINED(request.arguments.includeSource)) {
2137 if (!mirror) {
2148 if (!request.arguments) {
2157 if (IS_UNDEFINED(type)) {
2160 if (IS_UNDEFINED(handle)) {
2163 if (type != 'referencedBy' && type != 'constructedBy') {
2169 if (mirror) {
2170 if (type == 'referencedBy') {
2183 if (this.exec_state_.frameCount() == 0) {
2190 if (request.arguments) {
2195 if (!IS_UNDEFINED(request.arguments.frame)) {
2197 if (frame_number < 0 || frame_number >= this.exec_state_.frameCount()) {
2206 if (!script) {
2212 if (!slice) {
2229 if (request.arguments) {
2231 if (!IS_UNDEFINED(request.arguments.types)) {
2233 if (isNaN(types) || types < 0) {
2239 if (!IS_UNDEFINED(request.arguments.includeSource)) {
2244 if (IS_ARRAY(request.arguments.ids)) {
2254 if (!IS_UNDEFINED(request.arguments.filter)) {
2256 if (!isNaN(num)) {
2269 if (idsToInclude && !idsToInclude[scripts[i].id]) {
2272 if (filterStr || filterNum) {
2275 if (filterNum && !found) {
2276 if (script.id && script.id === filterNum) {
2280 if (filterStr && !found) {
2281 if (script.name && script.name.indexOf(filterStr) >= 0) {
2285 if (!found) continue;
2287 if (types & ScriptTypeFlag(scripts[i].type)) {
2329 if (request.arguments.command == 'resume') {
2331 } else if (request.arguments.command == 'pause') {
2342 if (!Debug.LiveEdit) {
2345 if (!request.arguments) {
2355 if (scripts[i].id == script_id) {
2359 if (!the_script) {
2366 if (!IS_STRING(request.arguments.new_source)) {
2376 if (!preview_only && !this.running_ && result_description.stack_modified) {
2385 if (!request.arguments) {
2394 if (!IS_UNDEFINED(flags)) {
2398 if (!debugger_flag) {
2401 if ('value' in flags[i]) {
2417 if (!flags) flags = '';
2424 if (!type) type = 'all';
2444 if (result) {
2457 if (verbose === true) {
2545 * @param {MirrorSerializer} mirror_serializer The serializer to use if any
2553 if (typeof key == 'string') {
2557 // Add the property if relevant.
2558 if (!IS_UNDEFINED(property_value_json)) {
2572 * @param {MirrorSerializer} mirror_serializer The serializer to use if any
2588 * @param {MirrorSerializer} mirror_serializer The serializer to use if any
2597 if (value instanceof Mirror) {
2599 } else if (IS_ARRAY(value)){