Reviewers: Jakob,

Description:
Turn ASSERTs in platform setup releated code into CHECKs

This way, we will already catch misconfigurations in release builds,
instead of getting random bug reports way later during runtime.

BUG=none
[email protected]
LOG=n

Please review this at https://codereview.chromium.org/429203002/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files (+3, -3 lines):
  M src/v8.cc


Index: src/v8.cc
diff --git a/src/v8.cc b/src/v8.cc
index cc08d2f2bb2187b77a5d62513e75ca0425a7f439..470c2dc6a54fdc14583b261fb7820f62d6d9751b 100644
--- a/src/v8.cc
+++ b/src/v8.cc
@@ -99,14 +99,14 @@ void V8::InitializeOncePerProcess() {


 void V8::InitializePlatform(v8::Platform* platform) {
-  ASSERT(!platform_);
-  ASSERT(platform);
+  CHECK(!platform_);
+  CHECK(platform);
   platform_ = platform;
 }


 void V8::ShutdownPlatform() {
-  ASSERT(platform_);
+  CHECK(platform_);
   platform_ = NULL;
 }



--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to