Index: src/variables.h |
diff --git a/src/variables.h b/src/variables.h |
index f20bd399c542aefc74400fd957ff9c6a7a8fa229..f49b6e127638a4743a7f320ee8df1c15403a2c5a 100644 |
--- a/src/variables.h |
+++ b/src/variables.h |
@@ -29,6 +29,7 @@ |
#define V8_VARIABLES_H_ |
#include "zone.h" |
+#include "interface.h" |
namespace v8 { |
namespace internal { |
@@ -78,7 +79,8 @@ class Variable: public ZoneObject { |
VariableMode mode, |
bool is_valid_lhs, |
Kind kind, |
- InitializationFlag initialization_flag); |
+ InitializationFlag initialization_flag, |
+ Interface* interface = Interface::NewValue()); |
// Printing support |
static const char* Mode2String(VariableMode mode); |
@@ -153,6 +155,7 @@ class Variable: public ZoneObject { |
InitializationFlag initialization_flag() const { |
return initialization_flag_; |
} |
+ Interface* interface() const { return interface_; } |
void AllocateTo(Location location, int index) { |
location_ = location; |
@@ -183,6 +186,9 @@ class Variable: public ZoneObject { |
bool force_context_allocation_; // set by variable resolver |
bool is_used_; |
InitializationFlag initialization_flag_; |
+ |
+ // Module type info. |
+ Interface* interface_; |
}; |