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

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
« no previous file with comments | « runtime/vm/flow_graph_compiler_x64.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 9940)
+++ runtime/vm/intermediate_language.h (working copy)
@@ -1821,12 +1821,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() {
@@ -2158,6 +2152,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_;
@@ -2218,6 +2215,9 @@
}
}
+ // Least upper bound of the static types of the inputs.
+ virtual RawAbstractType* StaticType() const;
+
DECLARE_INSTRUCTION(Phi)
private:
@@ -2233,6 +2233,9 @@
intptr_t index() const { return index_; }
+ // Static type of the passed-in parameter.
+ virtual RawAbstractType* StaticType() const;
+
DECLARE_INSTRUCTION(Parameter)
private:
« no previous file with comments | « runtime/vm/flow_graph_compiler_x64.cc ('k') | runtime/vm/intermediate_language.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698