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

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

Issue 10249: Removed some unused debugger functions. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 12 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « src/debug.cc ('k') | no next file » | 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 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 // break points set in this script. 350 // break points set in this script.
351 function UpdateScriptBreakPoints(script) { 351 function UpdateScriptBreakPoints(script) {
352 for (var i = 0; i < script_break_points.length; i++) { 352 for (var i = 0; i < script_break_points.length; i++) {
353 if (script_break_points[i].script_name() == script.name) { 353 if (script_break_points[i].script_name() == script.name) {
354 script_break_points[i].set(script); 354 script_break_points[i].set(script);
355 } 355 }
356 } 356 }
357 } 357 }
358 358
359 359
360 // Function called from the runtime to handle a debug request receiced from the
361 // debugger. When this function is called the debugger is in the broken state
362 // reflected by the exec_state parameter. When pending requests are handled the
363 // parameter stopping indicate the expected running state.
364 function ProcessDebugRequest(exec_state, request, stopping) {
365 return exec_state.debugCommandProcessor().processDebugJSONRequest(request, sto pping);
366 }
367
368
369 Debug.addListener = function(listener, opt_data) { 360 Debug.addListener = function(listener, opt_data) {
370 if (!IS_FUNCTION(listener)) throw new Error('Parameters have wrong types.'); 361 if (!IS_FUNCTION(listener)) throw new Error('Parameters have wrong types.');
371 %AddDebugEventListener(listener, opt_data); 362 %AddDebugEventListener(listener, opt_data);
372 }; 363 };
373 364
374 Debug.removeListener = function(listener) { 365 Debug.removeListener = function(listener) {
375 if (!IS_FUNCTION(listener)) throw new Error('Parameters have wrong types.'); 366 if (!IS_FUNCTION(listener)) throw new Error('Parameters have wrong types.');
376 %RemoveDebugEventListener(listener); 367 %RemoveDebugEventListener(listener);
377 }; 368 };
378 369
(...skipping 1642 matching lines...) Expand 10 before | Expand all | Expand 10 after
2021 json += NumberToJSON_(elem); 2012 json += NumberToJSON_(elem);
2022 } else if (IS_STRING(elem)) { 2013 } else if (IS_STRING(elem)) {
2023 json += StringToJSON_(elem); 2014 json += StringToJSON_(elem);
2024 } else { 2015 } else {
2025 json += elem; 2016 json += elem;
2026 } 2017 }
2027 } 2018 }
2028 json += ']'; 2019 json += ']';
2029 return json; 2020 return json;
2030 } 2021 }
OLDNEW
« no previous file with comments | « src/debug.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698