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

Unified Diff: src/variables.cc

Issue 18901003: Compute expected type for variables (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 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
« src/variables.h ('K') | « src/variables.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/variables.cc
diff --git a/src/variables.cc b/src/variables.cc
index 488da42ce665ed7322ca7f53e27fc3ec9c109e58..0a6d30a88b139cc6a86db7bf41fa69dccf92a2bc 100644
--- a/src/variables.cc
+++ b/src/variables.cc
@@ -66,6 +66,7 @@ Variable::Variable(Scope* scope,
name_(name),
mode_(mode),
kind_(kind),
+ expected_type_(Type::Any(), name->GetIsolate()),
location_(UNALLOCATED),
index_(-1),
initializer_position_(RelocInfo::kNoPosition),
« src/variables.h ('K') | « src/variables.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698