Index: runtime/vm/stub_code.h |
diff --git a/runtime/vm/stub_code.h b/runtime/vm/stub_code.h |
index 5e382c193d8f3c85b02e00e0c6109255b62d879e..f058a29e37b929e81801f33d671cd00d8f4877ee 100644 |
--- a/runtime/vm/stub_code.h |
+++ b/runtime/vm/stub_code.h |
@@ -54,6 +54,8 @@ class RawCode; |
V(SmiAddInlineCache) \ |
V(SmiSubInlineCache) \ |
V(SmiEqualInlineCache) \ |
+ V(UnaryRangeCollectingInlineCache) \ |
+ V(BinaryRangeCollectingInlineCache) \ |
V(OneArgOptimizedCheckInlineCache) \ |
V(TwoArgsOptimizedCheckInlineCache) \ |
V(ThreeArgsOptimizedCheckInlineCache) \ |
@@ -206,6 +208,11 @@ class StubCode { |
#undef STUB_CODE_ENTRY |
Isolate* isolate_; |
+ enum RangeCollectionMode { |
+ kCollectRanges, |
+ kIgnoreRanges |
+ }; |
+ |
// Generate the stub and finalize the generated code into the stub |
// code executable area. |
static RawCode* Generate(const char* name, |
@@ -221,7 +228,8 @@ class StubCode { |
Assembler* assembler, |
intptr_t num_args, |
const RuntimeEntry& handle_ic_miss, |
- Token::Kind kind); |
+ Token::Kind kind, |
+ RangeCollectionMode range_collection_mode); |
static void GenerateUsageCounterIncrement(Assembler* assembler, |
Register temp_reg); |
static void GenerateOptimizedUsageCounterIncrement(Assembler* assembler); |