Tweak an assertion in the jump target destructor so that it only

applies to initialized jump targets, and not in the case of a stack
overflow.
Review URL: http://codereview.chromium.org/42118

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@1498 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 04cc9cff
...@@ -70,7 +70,10 @@ void JumpTarget::Initialize(CodeGenerator* cgen, Directionality direction) { ...@@ -70,7 +70,10 @@ void JumpTarget::Initialize(CodeGenerator* cgen, Directionality direction) {
void JumpTarget::Unuse() { void JumpTarget::Unuse() {
ASSERT(!is_linked()); // We should not deallocate jump targets that have unresolved jumps
// to them. In the event of a compile-time stack overflow or an
// unitialized jump target, we don't care.
ASSERT(!is_linked() || cgen_ == NULL || cgen_->HasStackOverflow());
#ifdef DEBUG #ifdef DEBUG
for (int i = 0; i < reaching_frames_.length(); i++) { for (int i = 0; i < reaching_frames_.length(); i++) {
ASSERT(reaching_frames_[i] == NULL); ASSERT(reaching_frames_[i] == NULL);
......
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