From 9ea5fe3d9eb4758b811d41eb0d8e9f2fbc225788 Mon Sep 17 00:00:00 2001 From: "sgjesse@chromium.org" Date: Fri, 6 Mar 2009 12:08:55 +0000 Subject: [PATCH] Fix lint errors TBR=christian.plesner.hansen@gmail.com Review URL: http://codereview.chromium.org/39253 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@1438 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/debug.h | 2 +- test/cctest/test-debug.cc | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/debug.h b/src/debug.h index 41193b41a1..9f4e0472ff 100644 --- a/src/debug.h +++ b/src/debug.h @@ -615,7 +615,7 @@ class EnterDebugger BASE_EMBEDDED { StackGuard::Preempt(); Debug::set_preemption_pending(false); } - + // Leaving this debugger entry. Debug::set_debugger_entry(prev_); } diff --git a/test/cctest/test-debug.cc b/test/cctest/test-debug.cc index 253ab44a8f..c745011921 100644 --- a/test/cctest/test-debug.cc +++ b/test/cctest/test-debug.cc @@ -511,7 +511,7 @@ static void DebugEventBreakPointHitCount(v8::DebugEvent event, v8::Handle event_data, v8::Handle data) { // When hitting a debug event listener there must be a break set. - CHECK(v8::internal::Debug::break_id() != 0); + CHECK_NE(v8::internal::Debug::break_id(), 0); // Count the number of breaks. if (event == v8::Break) { @@ -551,7 +551,7 @@ static void DebugEventCounter(v8::DebugEvent event, v8::Handle event_data, v8::Handle data) { // When hitting a debug event listener there must be a break set. - CHECK(v8::internal::Debug::break_id() != 0); + CHECK_NE(v8::internal::Debug::break_id(), 0); // Count the number of breaks. if (event == v8::Break) { @@ -609,7 +609,7 @@ static void DebugEventEvaluate(v8::DebugEvent event, v8::Handle event_data, v8::Handle data) { // When hitting a debug event listener there must be a break set. - CHECK(v8::internal::Debug::break_id() != 0); + CHECK_NE(v8::internal::Debug::break_id(), 0); if (event == v8::Break) { for (int i = 0; checks[i].expr != NULL; i++) { @@ -635,7 +635,7 @@ static void DebugEventRemoveBreakPoint(v8::DebugEvent event, v8::Handle event_data, v8::Handle data) { // When hitting a debug event listener there must be a break set. - CHECK(v8::internal::Debug::break_id() != 0); + CHECK_NE(v8::internal::Debug::break_id(), 0); if (event == v8::Break) { break_point_hit_count++; @@ -653,7 +653,7 @@ static void DebugEventStep(v8::DebugEvent event, v8::Handle event_data, v8::Handle data) { // When hitting a debug event listener there must be a break set. - CHECK(v8::internal::Debug::break_id() != 0); + CHECK_NE(v8::internal::Debug::break_id(), 0); if (event == v8::Break) { break_point_hit_count++; @@ -679,7 +679,7 @@ static void DebugEventStepSequence(v8::DebugEvent event, v8::Handle event_data, v8::Handle data) { // When hitting a debug event listener there must be a break set. - CHECK(v8::internal::Debug::break_id() != 0); + CHECK_NE(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 @@ static void DebugEventBreakPointCollectGarbage( v8::Handle event_data, v8::Handle data) { // When hitting a debug event listener there must be a break set. - CHECK(v8::internal::Debug::break_id() != 0); + CHECK_NE(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 @@ static void DebugEventBreak(v8::DebugEvent event, v8::Handle event_data, v8::Handle data) { // When hitting a debug event listener there must be a break set. - CHECK(v8::internal::Debug::break_id() != 0); + CHECK_NE(v8::internal::Debug::break_id(), 0); if (event == v8::Break) { // Count the number of breaks.