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

Unified Diff: runtime/vm/intermediate_language.h

Issue 10407026: Address a few TODOs related to type propagation. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 7 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 | « runtime/vm/flow_graph_builder.cc ('k') | runtime/vm/intermediate_language.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/intermediate_language.h
===================================================================
--- runtime/vm/intermediate_language.h (revision 7715)
+++ runtime/vm/intermediate_language.h (working copy)
@@ -952,9 +952,13 @@
class NativeStoreFieldComp : public TemplateComputation<2> {
public:
- NativeStoreFieldComp(Value* dest, intptr_t offset_in_bytes, Value* value)
- : offset_in_bytes_(offset_in_bytes) {
+ NativeStoreFieldComp(Value* dest,
+ intptr_t offset_in_bytes,
+ Value* value,
+ const AbstractType& type)
+ : offset_in_bytes_(offset_in_bytes), type_(type) {
ASSERT(value != NULL);
+ ASSERT(type.IsZoneHandle()); // May be null if field is not an instance.
inputs_[0] = dest;
inputs_[1] = value;
}
@@ -964,9 +968,11 @@
Value* dest() const { return inputs_[0]; }
Value* value() const { return inputs_[1]; }
intptr_t offset_in_bytes() const { return offset_in_bytes_; }
+ const AbstractType& type() const { return type_; }
private:
const intptr_t offset_in_bytes_;
+ const AbstractType& type_;
DISALLOW_COPY_AND_ASSIGN(NativeStoreFieldComp);
};
« no previous file with comments | « runtime/vm/flow_graph_builder.cc ('k') | runtime/vm/intermediate_language.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698