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

Unified Diff: runtime/vm/intermediate_language.h

Issue 2379733002: Recognize and optimize a.runtimeType == b.runtimeType pattern. (Closed)
Patch Set: port to all arch, make AOT opt non-speculative Created 4 years, 2 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
diff --git a/runtime/vm/intermediate_language.h b/runtime/vm/intermediate_language.h
index 102f6b8e42283bc0fb7270ddbcd1747cfc1e3082..f35ee3af14fedea5261aa3af53461965c2990a37 100644
--- a/runtime/vm/intermediate_language.h
+++ b/runtime/vm/intermediate_language.h
@@ -2936,6 +2936,10 @@ class PolymorphicInstanceCallInstr : public TemplateDefinition<0, Throws> {
virtual EffectSet Effects() const { return EffectSet::All(); }
+ virtual Definition* Canonicalize(FlowGraph* graph);
+
+ static RawType* ComputeRuntimeType(const ICData& ic_data);
+
PRINT_OPERANDS_TO_SUPPORT
private:
@@ -3293,6 +3297,7 @@ class StaticCallInstr : public TemplateDefinition<0, Throws> {
DECLARE_INSTRUCTION(StaticCall)
virtual CompileType ComputeType() const;
+ virtual Definition* Canonicalize(FlowGraph* flow_graph);
// Accessors forwarded to the AST node.
const Function& function() const { return function_; }

Powered by Google App Engine
This is Rietveld 408576698