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

Unified Diff: runtime/lib/object_patch.dart

Issue 2748073002: Revert "VM: Simplify lowering of is-tests." (Closed)
Patch Set: Created 3 years, 9 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/lib/object.cc ('k') | runtime/vm/aot_optimizer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/object_patch.dart
diff --git a/runtime/lib/object_patch.dart b/runtime/lib/object_patch.dart
index ae9589bd406d6792b88289dec61496dab5cab914..20caf88a2a1ec766f295812fc2de6917273a1c0e 100644
--- a/runtime/lib/object_patch.dart
+++ b/runtime/lib/object_patch.dart
@@ -57,7 +57,7 @@
// Call this function instead of inlining instanceof, thus collecting
// type feedback and reducing code size of unoptimized code.
- bool _instanceOf(instantiator_type_arguments, type)
+ bool _instanceOf(instantiator_type_arguments, type, bool negate)
native "Object_instanceOf";
// Group of functions for implementing fast simple instance of.
@@ -65,6 +65,12 @@
bool _simpleInstanceOfTrue(type) => true;
bool _simpleInstanceOfFalse(type) => false;
+ bool _instanceOfDouble(bool negate) native "Object_instanceOfDouble";
+ bool _instanceOfNum(bool negate) native "Object_instanceOfNum";
+ bool _instanceOfInt(bool negate) native "Object_instanceOfInt";
+ bool _instanceOfSmi(bool negate) native "Object_instanceOfSmi";
+ bool _instanceOfString(bool negate) native "Object_instanceOfString";
+
// Call this function instead of inlining 'as', thus collecting type
// feedback. Returns receiver.
_as(instantiator_type_arguments, type) native "Object_as";
« no previous file with comments | « runtime/lib/object.cc ('k') | runtime/vm/aot_optimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698