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

Unified Diff: test/cctest/test-debug.cc

Issue 39124: Handle thread preemption in debugger (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/top.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-debug.cc
===================================================================
--- test/cctest/test-debug.cc (revision 1435)
+++ test/cctest/test-debug.cc (working copy)
@@ -511,7 +511,7 @@
v8::Handle<v8::Object> event_data,
v8::Handle<v8::Value> data) {
// When hitting a debug event listener there must be a break set.
- CHECK(v8::internal::Top::is_break());
+ CHECK(v8::internal::Debug::break_id() != 0);
// Count the number of breaks.
if (event == v8::Break) {
@@ -551,7 +551,7 @@
v8::Handle<v8::Object> event_data,
v8::Handle<v8::Value> data) {
// When hitting a debug event listener there must be a break set.
- CHECK(v8::internal::Top::is_break());
+ CHECK(v8::internal::Debug::break_id() != 0);
// Count the number of breaks.
if (event == v8::Break) {
@@ -609,7 +609,7 @@
v8::Handle<v8::Object> event_data,
v8::Handle<v8::Value> data) {
// When hitting a debug event listener there must be a break set.
- CHECK(v8::internal::Top::is_break());
+ CHECK(v8::internal::Debug::break_id() != 0);
if (event == v8::Break) {
for (int i = 0; checks[i].expr != NULL; i++) {
@@ -635,7 +635,7 @@
v8::Handle<v8::Object> event_data,
v8::Handle<v8::Value> data) {
// When hitting a debug event listener there must be a break set.
- CHECK(v8::internal::Top::is_break());
+ CHECK(v8::internal::Debug::break_id() != 0);
if (event == v8::Break) {
break_point_hit_count++;
@@ -653,7 +653,7 @@
v8::Handle<v8::Object> event_data,
v8::Handle<v8::Value> data) {
// When hitting a debug event listener there must be a break set.
- CHECK(v8::internal::Top::is_break());
+ CHECK(v8::internal::Debug::break_id() != 0);
if (event == v8::Break) {
break_point_hit_count++;
@@ -679,7 +679,7 @@
v8::Handle<v8::Object> event_data,
v8::Handle<v8::Value> data) {
// When hitting a debug event listener there must be a break set.
- CHECK(v8::internal::Top::is_break());
+ CHECK(v8::internal::Debug::break_id() != 0);
if (event == v8::Break || event == v8::Exception) {
// Check that the current function is the expected.
@@ -709,7 +709,7 @@
v8::Handle<v8::Object> event_data,
v8::Handle<v8::Value> data) {
// When hitting a debug event listener there must be a break set.
- CHECK(v8::internal::Top::is_break());
+ CHECK(v8::internal::Debug::break_id() != 0);
// Perform a garbage collection when break point is hit and continue. Based
// on the number of break points hit either scavenge or mark compact
@@ -734,7 +734,7 @@
v8::Handle<v8::Object> event_data,
v8::Handle<v8::Value> data) {
// When hitting a debug event listener there must be a break set.
- CHECK(v8::internal::Top::is_break());
+ CHECK(v8::internal::Debug::break_id() != 0);
if (event == v8::Break) {
// Count the number of breaks.
@@ -3695,4 +3695,3 @@
// The host dispatch callback should be called.
CHECK_EQ(1, host_dispatch_hit_count);
}
-
« no previous file with comments | « src/top.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698