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

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

Issue 668246: Check that function being patched has no activations on any thread stack (Closed)
Patch Set: format Created 10 years, 9 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/liveedit.h » ('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 1968 matching lines...) Expand 10 before | Expand all | Expand 10 after
1979 if (scripts[i].id == script_id) { 1979 if (scripts[i].id == script_id) {
1980 the_script = scripts[i]; 1980 the_script = scripts[i];
1981 } 1981 }
1982 } 1982 }
1983 if (!the_script) { 1983 if (!the_script) {
1984 response.failed('Script not found'); 1984 response.failed('Script not found');
1985 return; 1985 return;
1986 } 1986 }
1987 1987
1988 var change_log = new Array(); 1988 var change_log = new Array();
1989 Debug.LiveEditChangeScript(the_script, change_pos, change_len, new_string, 1989 try {
1990 change_log); 1990 Debug.LiveEditChangeScript(the_script, change_pos, change_len, new_string,
1991 1991 change_log);
1992 } catch (e) {
1993 if (e instanceof Debug.LiveEditChangeScript.Failure) {
1994 // Let's treat it as a "success" so that body with change_log will be
1995 // sent back. "change_log" will have "failure" field set.
1996 change_log.push( { failure: true } );
1997 } else {
1998 throw e;
1999 }
2000 }
1992 response.body = {change_log: change_log}; 2001 response.body = {change_log: change_log};
1993 }; 2002 };
1994 2003
1995 2004
1996 // Check whether the previously processed command caused the VM to become 2005 // Check whether the previously processed command caused the VM to become
1997 // running. 2006 // running.
1998 DebugCommandProcessor.prototype.isRunning = function() { 2007 DebugCommandProcessor.prototype.isRunning = function() {
1999 return this.running_; 2008 return this.running_;
2000 } 2009 }
2001 2010
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
2112 case 'string': 2121 case 'string':
2113 case 'number': 2122 case 'number':
2114 json = value; 2123 json = value;
2115 break 2124 break
2116 2125
2117 default: 2126 default:
2118 json = null; 2127 json = null;
2119 } 2128 }
2120 return json; 2129 return json;
2121 } 2130 }
OLDNEW
« no previous file with comments | « no previous file | src/liveedit.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698