Fix debug builds.

TBR=ager@chromium.org

Review URL: http://codereview.chromium.org/1572029

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@4363 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent d265cc8e
......@@ -1478,7 +1478,7 @@ bool Logger::Setup() {
}
}
ASSERT(VMState::current_state_ == NULL); // NULL implies outermost external.
ASSERT(VMState::is_outermost_external());
ticker_ = new Ticker(kSamplingIntervalMs);
......
......@@ -42,6 +42,11 @@ class VMState BASE_EMBEDDED {
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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment