Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(79)

Unified Diff: src/jump-target.cc

Issue 42118: Tweak an assertion in the jump target destructor so that it only... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/jump-target.cc
===================================================================
--- src/jump-target.cc (revision 1496)
+++ src/jump-target.cc (working copy)
@@ -70,7 +70,10 @@
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
for (int i = 0; i < reaching_frames_.length(); i++) {
ASSERT(reaching_frames_[i] == NULL);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698