Revision: 4363
Author: [email protected]
Date: Thu Apr 8 07:00:51 2010
Log: Fix debug builds.
[email protected]
Review URL: http://codereview.chromium.org/1572029
http://code.google.com/p/v8/source/detail?r=4363
Modified:
/branches/bleeding_edge/src/log.cc
/branches/bleeding_edge/src/vm-state.h
=======================================
--- /branches/bleeding_edge/src/log.cc Thu Apr 8 06:37:39 2010
+++ /branches/bleeding_edge/src/log.cc Thu Apr 8 07:00:51 2010
@@ -1478,7 +1478,7 @@
}
}
- ASSERT(VMState::current_state_ == NULL); // NULL implies outermost
external.
+ ASSERT(VMState::is_outermost_external());
ticker_ = new Ticker(kSamplingIntervalMs);
=======================================
--- /branches/bleeding_edge/src/vm-state.h Thu Apr 8 06:37:39 2010
+++ /branches/bleeding_edge/src/vm-state.h Thu Apr 8 07:00:51 2010
@@ -41,6 +41,11 @@
void set_external_callback(Address external_callback) {
external_callback_ = external_callback;
}
+
+ // Used for debug asserts.
+ static bool is_outermost_external() {
+ return current_state_ == NULL;
+ }
static StateTag current_state() {
return current_state_ ? current_state_->state() : EXTERNAL;
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
To unsubscribe, reply using "remove me" as the subject.