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

Unified Diff: src/compiler.cc

Issue 464069: Fix for issue 545: don't reuse this VariableProxy. (Closed)
Patch Set: Created 11 years 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 | src/scopes.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler.cc
diff --git a/src/compiler.cc b/src/compiler.cc
index 22b0a03c6ac70e0776431ade122e6244d1a15a59..9b39b597b5e464719a3b0b3803c2749fbc8b943c 100644
--- a/src/compiler.cc
+++ b/src/compiler.cc
@@ -56,6 +56,7 @@ class CodeGenSelector: public AstVisitor {
private:
// Visit an expression in a given expression context.
void ProcessExpression(Expression* expr, Expression::Context context) {
+ ASSERT_EQ(Expression::kUninitialized, expr->context());
Kevin Millikin (Chromium) 2009/12/08 09:35:54 As we discussed, change this to ASSERT(expr->cont
Expression::Context saved = context_;
context_ = context;
Visit(expr);
« no previous file with comments | « no previous file | src/scopes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698