OLD | NEW |
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 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
381 } | 381 } |
382 break_points = remaining_break_points; | 382 break_points = remaining_break_points; |
383 }; | 383 }; |
384 | 384 |
385 | 385 |
386 // Function called from runtime when a new script is compiled to set any script | 386 // Function called from runtime when a new script is compiled to set any script |
387 // break points set in this script. | 387 // break points set in this script. |
388 function UpdateScriptBreakPoints(script) { | 388 function UpdateScriptBreakPoints(script) { |
389 for (var i = 0; i < script_break_points.length; i++) { | 389 for (var i = 0; i < script_break_points.length; i++) { |
390 if (script_break_points[i].type() == Debug.ScriptBreakPointType.ScriptName &
& | 390 if (script_break_points[i].type() == Debug.ScriptBreakPointType.ScriptName &
& |
391 script_break_points[i].script_name() == script.name) { | 391 script_break_points[i].matchesScript(script)) { |
392 script_break_points[i].set(script); | 392 script_break_points[i].set(script); |
393 } | 393 } |
394 } | 394 } |
395 } | 395 } |
396 | 396 |
397 | 397 |
398 Debug.setListener = function(listener, opt_data) { | 398 Debug.setListener = function(listener, opt_data) { |
399 if (!IS_FUNCTION(listener) && !IS_UNDEFINED(listener) && !IS_NULL(listener)) { | 399 if (!IS_FUNCTION(listener) && !IS_UNDEFINED(listener) && !IS_NULL(listener)) { |
400 throw new Error('Parameters have wrong types.'); | 400 throw new Error('Parameters have wrong types.'); |
401 } | 401 } |
(...skipping 1575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1977 case 'string': | 1977 case 'string': |
1978 case 'number': | 1978 case 'number': |
1979 json = value; | 1979 json = value; |
1980 break | 1980 break |
1981 | 1981 |
1982 default: | 1982 default: |
1983 json = null; | 1983 json = null; |
1984 } | 1984 } |
1985 return json; | 1985 return json; |
1986 } | 1986 } |
OLD | NEW |