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

Side by Side Diff: test/mjsunit/debug-return-value.js

Issue 1234833003: Debugger: use debug break slots to break at function exit. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix for arm Created 5 years, 5 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/cctest/test-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 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 frames = response.body().frames; 117 frames = response.body().frames;
118 assertTrue(frames[0].atReturn); 118 assertTrue(frames[0].atReturn);
119 assertEquals(expected_return_value, 119 assertEquals(expected_return_value,
120 response.lookup(frames[0].returnValue.ref).value); 120 response.lookup(frames[0].returnValue.ref).value);
121 121
122 listener_complete = true; 122 listener_complete = true;
123 } 123 }
124 } 124 }
125 } catch (e) { 125 } catch (e) {
126 exception = e 126 exception = e
127 print(e + e.stack)
127 }; 128 };
128 }; 129 };
129 130
130 // Add the debug event listener. 131 // Add the debug event listener.
131 Debug.setListener(listener); 132 Debug.setListener(listener);
132 133
133 // Four steps from the debugger statement in this function will position us at 134 // Four steps from the debugger statement in this function will position us at
134 // the function return. 135 // the function return.
135 // 0 1 2 3 4 5 136 // 0 1 2 3 4 5
136 // 0123456789012345678901234567890123456789012345678901 137 // 0123456789012345678901234567890123456789012345678901
(...skipping 17 matching lines...) Expand all
154 assertTrue(listener_complete); 155 assertTrue(listener_complete);
155 assertEquals(4, break_count); 156 assertEquals(4, break_count);
156 157
157 break_count = 0; 158 break_count = 0;
158 expected_return_value = 2; 159 expected_return_value = 2;
159 listener_complete = false; 160 listener_complete = false;
160 f(false); 161 f(false);
161 assertFalse(exception, "exception in listener") 162 assertFalse(exception, "exception in listener")
162 assertTrue(listener_complete); 163 assertTrue(listener_complete);
163 assertEquals(4, break_count); 164 assertEquals(4, break_count);
OLDNEW
« no previous file with comments | « test/cctest/test-debug.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698