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

Unified Diff: runtime/vm/intermediate_language.h

Issue 10823022: Improve static type propagation. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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
Index: runtime/vm/intermediate_language.h
===================================================================
--- runtime/vm/intermediate_language.h (revision 9904)
+++ runtime/vm/intermediate_language.h (working copy)
@@ -1813,12 +1813,6 @@
FOR_EACH_INSTRUCTION(INSTRUCTION_TYPE_CHECK)
#undef INSTRUCTION_TYPE_CHECK
- // Static type of the instruction.
- virtual RawAbstractType* StaticType() const {
- UNREACHABLE();
- return AbstractType::null();
- }
-
// Returns structure describing location constraints required
// to emit native code for this instruction.
virtual LocationSummary* locs() {
@@ -2140,6 +2134,9 @@
}
bool HasSSATemp() const { return ssa_temp_index_ >= 0; }
+ // Static type of the definition.
+ virtual RawAbstractType* StaticType() const = 0;
+
private:
intptr_t temp_index_;
intptr_t ssa_temp_index_;
@@ -2199,6 +2196,9 @@
}
}
+ // Least upper bound of the static types of the inputs.
+ virtual RawAbstractType* StaticType() const;
+
DECLARE_INSTRUCTION(Phi)
private:
@@ -2214,6 +2214,9 @@
intptr_t index() const { return index_; }
+ // Static type of the passed-in parameter.
+ virtual RawAbstractType* StaticType() const;
+
DECLARE_INSTRUCTION(Parameter)
private:

Powered by Google App Engine
This is Rietveld 408576698