Index: runtime/lib/internal_patch.dart |
diff --git a/runtime/lib/internal_patch.dart b/runtime/lib/internal_patch.dart |
index d19430feade0b2fddd3dae8b2e611cb303a7c7e9..88bff92c4803143f6e19e35290a1ab2ac5c05604 100644 |
--- a/runtime/lib/internal_patch.dart |
+++ b/runtime/lib/internal_patch.dart |
@@ -35,3 +35,11 @@ class VMLibraryHooks { |
final bool is64Bit = _inquireIs64Bit(); |
bool _inquireIs64Bit() native "Internal_inquireIs64Bit"; |
+ |
+bool _classRangeCheck(int cid, int lowerLimit, int upperLimit) { |
+ return cid >= lowerLimit && cid <= upperLimit; |
+} |
+ |
+bool _classRangeCheckNegative(int cid, int lowerLimit, int upperLimit) { |
+ return cid < lowerLimit || cid > upperLimit; |
+} |