Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: src/d8.js

Issue 2132003: Remove tabs (Closed)
Patch Set: Created 10 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/debug-debugger.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2008 the V8 project authors. All rights reserved. 1 // Copyright 2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 945 matching lines...) Expand 10 before | Expand all | Expand 10 after
956 details.text = result; 956 details.text = result;
957 break; 957 break;
958 958
959 case 'clearbreakpoint': 959 case 'clearbreakpoint':
960 result = 'cleared breakpoint #'; 960 result = 'cleared breakpoint #';
961 result += body.breakpoint; 961 result += body.breakpoint;
962 details.text = result; 962 details.text = result;
963 break; 963 break;
964 964
965 case 'listbreakpoints': 965 case 'listbreakpoints':
966 » result = 'breakpoints: (' + body.breakpoints.length + ')'; 966 result = 'breakpoints: (' + body.breakpoints.length + ')';
967 » for (var i = 0; i < body.breakpoints.length; i++) { 967 for (var i = 0; i < body.breakpoints.length; i++) {
968 var breakpoint = body.breakpoints[i]; 968 var breakpoint = body.breakpoints[i];
969 result += '\n id=' + breakpoint.number; 969 result += '\n id=' + breakpoint.number;
970 result += ' type=' + breakpoint.type; 970 result += ' type=' + breakpoint.type;
971 if (breakpoint.script_id) { 971 if (breakpoint.script_id) {
972 result += ' script_id=' + breakpoint.script_id; 972 result += ' script_id=' + breakpoint.script_id;
973 } 973 }
974 if (breakpoint.script_name) { 974 if (breakpoint.script_name) {
975 result += ' script_name=' + breakpoint.script_name; 975 result += ' script_name=' + breakpoint.script_name;
976 } 976 }
977 result += ' line=' + breakpoint.line; 977 result += ' line=' + breakpoint.line;
978 if (breakpoint.column != null) { 978 if (breakpoint.column != null) {
979 result += ' column=' + breakpoint.column; 979 result += ' column=' + breakpoint.column;
980 } 980 }
981 if (breakpoint.groupId) { 981 if (breakpoint.groupId) {
982 result += ' groupId=' + breakpoint.groupId; 982 result += ' groupId=' + breakpoint.groupId;
983 } 983 }
984 if (breakpoint.ignoreCount) { 984 if (breakpoint.ignoreCount) {
985 result += ' ignoreCount=' + breakpoint.ignoreCount; 985 result += ' ignoreCount=' + breakpoint.ignoreCount;
986 } 986 }
987 if (breakpoint.active === false) { 987 if (breakpoint.active === false) {
988 result += ' inactive'; 988 result += ' inactive';
989 } 989 }
990 if (breakpoint.condition) { 990 if (breakpoint.condition) {
991 result += ' condition=' + breakpoint.condition; 991 result += ' condition=' + breakpoint.condition;
992 } 992 }
993 result += ' hit_count=' + breakpoint.hit_count; 993 result += ' hit_count=' + breakpoint.hit_count;
994 » } 994 }
995 » details.text = result; 995 details.text = result;
996 » break; 996 break;
997 997
998 case 'backtrace': 998 case 'backtrace':
999 if (body.totalFrames == 0) { 999 if (body.totalFrames == 0) {
1000 result = '(empty stack)'; 1000 result = '(empty stack)';
1001 } else { 1001 } else {
1002 var result = 'Frames #' + body.fromFrame + ' to #' + 1002 var result = 'Frames #' + body.fromFrame + ' to #' +
1003 (body.toFrame - 1) + ' of ' + body.totalFrames + '\n'; 1003 (body.toFrame - 1) + ' of ' + body.totalFrames + '\n';
1004 for (i = 0; i < body.frames.length; i++) { 1004 for (i = 0; i < body.frames.length; i++) {
1005 if (i != 0) result += '\n'; 1005 if (i != 0) result += '\n';
1006 result += body.frames[i].text; 1006 result += body.frames[i].text;
(...skipping 667 matching lines...) Expand 10 before | Expand all | Expand 10 after
1674 json += NumberToJSON_(elem); 1674 json += NumberToJSON_(elem);
1675 } else if (typeof(elem) === 'string') { 1675 } else if (typeof(elem) === 'string') {
1676 json += StringToJSON_(elem); 1676 json += StringToJSON_(elem);
1677 } else { 1677 } else {
1678 json += elem; 1678 json += elem;
1679 } 1679 }
1680 } 1680 }
1681 json += ']'; 1681 json += ']';
1682 return json; 1682 return json;
1683 } 1683 }
OLDNEW
« no previous file with comments | « no previous file | src/debug-debugger.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698