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

Unified Diff: src/variables.h

Issue 7549008: Preliminary code for block scopes and block contexts. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Next iteration Created 9 years, 4 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
Index: src/variables.h
diff --git a/src/variables.h b/src/variables.h
index a9c06d1eeaa486411e95b66ec7eab69a729b29f9..509396f9b6536c67f83c754c683e2e7d1afefe37 100644
--- a/src/variables.h
+++ b/src/variables.h
@@ -99,6 +99,7 @@ class Variable: public ZoneObject {
return is_accessed_from_inner_scope_;
}
void MarkAsAccessedFromInnerScope() {
+ ASSERT(mode_ != TEMPORARY);
is_accessed_from_inner_scope_ = true;
}
bool is_used() { return is_used_; }

Powered by Google App Engine
This is Rietveld 408576698