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

Side by Side Diff: test/mjsunit/debug-liveedit-breakpoints.js

Issue 6529055: [Isolates] Merge crankshaft (r5922 from bleeding_edge). (Closed)
Patch Set: Win32 port Created 9 years, 10 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 | « test/mjsunit/debug-liveedit-2.js ('k') | test/mjsunit/debug-liveedit-patch-positions.js » ('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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 + " }\n" 55 + " }\n"
56 + "}\n" 56 + "}\n"
57 ); 57 );
58 58
59 59
60 assertEquals(25, F25()); 60 assertEquals(25, F25());
61 assertEquals(26, F26()); 61 assertEquals(26, F26());
62 62
63 var script = Debug.findScript(F25); 63 var script = Debug.findScript(F25);
64 64
65 assertEquals(0, Debug.scriptBreakPoints().length);
66
65 Debug.setScriptBreakPoint(Debug.ScriptBreakPointType.ScriptId, script.id, 1, 1, "true || false || false"); 67 Debug.setScriptBreakPoint(Debug.ScriptBreakPointType.ScriptId, script.id, 1, 1, "true || false || false");
66 Debug.setScriptBreakPoint(Debug.ScriptBreakPointType.ScriptId, script.id, 6, 1, "true || false || false"); 68 Debug.setScriptBreakPoint(Debug.ScriptBreakPointType.ScriptId, script.id, 6, 1, "true || false || false");
67 Debug.setScriptBreakPoint(Debug.ScriptBreakPointType.ScriptId, script.id, 14, 1, "true || false || false"); 69 Debug.setScriptBreakPoint(Debug.ScriptBreakPointType.ScriptId, script.id, 14, 1, "true || false || false");
68 70
69 assertEquals(3, Debug.scriptBreakPoints().length); 71 assertEquals(3, Debug.scriptBreakPoints().length);
70 72
71 var new_source = script.source.replace(function_z_text, ""); 73 var new_source = script.source.replace(function_z_text, "");
72 print("new source: " + new_source); 74 print("new source: " + new_source);
73 75
74 var change_log = new Array(); 76 var change_log = new Array();
(...skipping 14 matching lines...) Expand all
89 breakpoints_in_script++; 91 breakpoints_in_script++;
90 } 92 }
91 } 93 }
92 94
93 assertEquals(3, breakpoints_in_script); 95 assertEquals(3, breakpoints_in_script);
94 96
95 // Check 2 breakpoints. The one in deleted function should have been moved somew here. 97 // Check 2 breakpoints. The one in deleted function should have been moved somew here.
96 assertTrue(break_position_map[1]); 98 assertTrue(break_position_map[1]);
97 assertTrue(break_position_map[11]); 99 assertTrue(break_position_map[11]);
98 100
101 // Delete all breakpoints to make this test reentrant.
102 var breaks = Debug.scriptBreakPoints();
103 var breaks_ids = [];
104
105 for (var i = 0; i < breaks.length; i++) {
106 breaks_ids.push(breaks[i].number());
107 }
108
109 for (var i = 0; i < breaks_ids.length; i++) {
110 Debug.clearBreakPoint(breaks_ids[i]);
111 }
112
113 assertEquals(0, Debug.scriptBreakPoints().length);
OLDNEW
« no previous file with comments | « test/mjsunit/debug-liveedit-2.js ('k') | test/mjsunit/debug-liveedit-patch-positions.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698