Revision: 22734
Author: [email protected]
Date: Thu Jul 31 08:06:24 2014 UTC
Log: 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
Review URL: https://codereview.chromium.org/429203002
http://code.google.com/p/v8/source/detail?r=22734
Modified:
/branches/bleeding_edge/src/v8.cc
=======================================
--- /branches/bleeding_edge/src/v8.cc Wed Jul 30 13:54:45 2014 UTC
+++ /branches/bleeding_edge/src/v8.cc Thu Jul 31 08:06:24 2014 UTC
@@ -103,14 +103,14 @@
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.