Chromium Code Reviews

Unified Diff: src/compiler.cc

Issue 294021: Add support for global variable references in toplevel code. We use... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: src/compiler.cc
===================================================================
--- src/compiler.cc (revision 3095)
+++ src/compiler.cc (working copy)
@@ -606,8 +606,7 @@
void CodeGenSelector::VisitVariableProxy(VariableProxy* expr) {
Expression* rewrite = expr->var()->rewrite();
- if (rewrite == NULL) BAILOUT("global variable reference");
- Visit(rewrite);
+ if (rewrite != NULL) Visit(rewrite);
}

Powered by Google App Engine