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

Side by Side Diff: src/debug-debugger.js

Issue 3066018: Roll over again fixed 3029033 Fix 'step in' after live edit stack manipulation (Closed)
Patch Set: merge Created 10 years, 4 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 | « src/debug.cc ('k') | src/ia32/debug-ia32.cc » ('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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-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 2097 matching lines...) Expand 10 before | Expand all | Expand 10 after
2108 2108
2109 if (!IS_STRING(request.arguments.new_source)) { 2109 if (!IS_STRING(request.arguments.new_source)) {
2110 throw "new_source argument expected"; 2110 throw "new_source argument expected";
2111 } 2111 }
2112 2112
2113 var new_source = request.arguments.new_source; 2113 var new_source = request.arguments.new_source;
2114 2114
2115 var result_description = Debug.LiveEdit.SetScriptSource(the_script, 2115 var result_description = Debug.LiveEdit.SetScriptSource(the_script,
2116 new_source, preview_only, change_log); 2116 new_source, preview_only, change_log);
2117 response.body = {change_log: change_log, result: result_description}; 2117 response.body = {change_log: change_log, result: result_description};
2118
2119 if (!preview_only && !this.running_ && result_description.stack_modified) {
2120 response.body.stepin_recommended = true;
2121 }
2118 }; 2122 };
2119 2123
2120 2124
2121 DebugCommandProcessor.prototype.debuggerFlagsRequest_ = function(request, 2125 DebugCommandProcessor.prototype.debuggerFlagsRequest_ = function(request,
2122 response) { 2126 response) {
2123 // Check for legal request. 2127 // Check for legal request.
2124 if (!request.arguments) { 2128 if (!request.arguments) {
2125 response.failed('Missing arguments'); 2129 response.failed('Missing arguments');
2126 return; 2130 return;
2127 } 2131 }
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
2270 case 'string': 2274 case 'string':
2271 case 'number': 2275 case 'number':
2272 json = value; 2276 json = value;
2273 break 2277 break
2274 2278
2275 default: 2279 default:
2276 json = null; 2280 json = null;
2277 } 2281 }
2278 return json; 2282 return json;
2279 } 2283 }
OLDNEW
« no previous file with comments | « src/debug.cc ('k') | src/ia32/debug-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698