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

Unified Diff: src/variables.h

Issue 1161393007: OLD type Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix Created 5 years, 6 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
« no previous file with comments | « src/typing-asm.cc ('k') | test/mjsunit/harmony/asm.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/variables.h
diff --git a/src/variables.h b/src/variables.h
index 0cb50c87e985580c1fd1c7fc5ea9b3fde63f4206..e4ffef41821bfa0f2671611f067dabaaf232cea9 100644
--- a/src/variables.h
+++ b/src/variables.h
@@ -130,6 +130,9 @@ class Variable: public ZoneObject {
return initialization_flag_;
}
+ Handle<Type> type() const { return type_; }
+ void set_type(Handle<Type> type) { type_ = type; }
+
void AllocateTo(Location location, int index) {
location_ = location;
index_ = index;
@@ -179,6 +182,7 @@ class Variable: public ZoneObject {
// Usage info.
bool force_context_allocation_; // set by variable resolver
bool is_used_;
+ Handle<Type> type_;
InitializationFlag initialization_flag_;
MaybeAssignedFlag maybe_assigned_;
};
« no previous file with comments | « src/typing-asm.cc ('k') | test/mjsunit/harmony/asm.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698