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

Unified Diff: runtime/vm/object.h

Issue 1222863003: Make frequent type checks (instanceof) faster by adding dedicated instanceof methods; improves dart… (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: flag Created 5 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_optimizer.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.h
diff --git a/runtime/vm/object.h b/runtime/vm/object.h
index 88e9d0332ea927daa913fdb9cbdbcd943f8bed2c..8a4f8700e687625fec409cdbf587626cb2b56588 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -5039,6 +5039,9 @@ class AbstractType : public Instance {
// Check if this type represents the 'num' type.
bool IsNumberType() const;
+ // Check if this type represents the '_Smi' type.
+ bool IsSmiType() const;
+
// Check if this type represents the 'String' type.
bool IsStringType() const;
« no previous file with comments | « runtime/vm/flow_graph_optimizer.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698