| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 |
| 11 // with the distribution. | 11 // with the distribution. |
| (...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 471 break_points = remaining_break_points; | 471 break_points = remaining_break_points; |
| 472 this.break_points_ = []; | 472 this.break_points_ = []; |
| 473 }; | 473 }; |
| 474 | 474 |
| 475 | 475 |
| 476 // Function called from runtime when a new script is compiled to set any script | 476 // Function called from runtime when a new script is compiled to set any script |
| 477 // break points set in this script. | 477 // break points set in this script. |
| 478 function UpdateScriptBreakPoints(script) { | 478 function UpdateScriptBreakPoints(script) { |
| 479 for (var i = 0; i < script_break_points.length; i++) { | 479 for (var i = 0; i < script_break_points.length; i++) { |
| 480 var break_point = script_break_points[i]; | 480 var break_point = script_break_points[i]; |
| 481 if ((break_point.type() == Debug.ScriptBreakPointType.ScriptName) && | 481 if ((break_point.type() == Debug.ScriptBreakPointType.ScriptName || |
| 482 break_point.type() == Debug.ScriptBreakPointType.ScriptRegExp) && |
| 482 break_point.matchesScript(script)) { | 483 break_point.matchesScript(script)) { |
| 483 break_point.set(script); | 484 break_point.set(script); |
| 484 } | 485 } |
| 485 } | 486 } |
| 486 } | 487 } |
| 487 | 488 |
| 488 | 489 |
| 489 function GetScriptBreakPoints(script) { | 490 function GetScriptBreakPoints(script) { |
| 490 var result = []; | 491 var result = []; |
| 491 for (var i = 0; i < script_break_points.length; i++) { | 492 for (var i = 0; i < script_break_points.length; i++) { |
| (...skipping 2114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2606 case 'string': | 2607 case 'string': |
| 2607 case 'number': | 2608 case 'number': |
| 2608 json = value; | 2609 json = value; |
| 2609 break; | 2610 break; |
| 2610 | 2611 |
| 2611 default: | 2612 default: |
| 2612 json = null; | 2613 json = null; |
| 2613 } | 2614 } |
| 2614 return json; | 2615 return json; |
| 2615 } | 2616 } |
| OLD | NEW |