Index: runtime/vm/raw_object.h |
diff --git a/runtime/vm/raw_object.h b/runtime/vm/raw_object.h |
index ebd0f2d311bf7d628aa84b3aba652106e9851a62..37862f2958ab435b90343906d3ed9cd85eca1fb5 100644 |
--- a/runtime/vm/raw_object.h |
+++ b/runtime/vm/raw_object.h |
@@ -625,6 +625,7 @@ class RawFunction : public RawObject { |
kMethodExtractor, // converts method into implicit closure on the receiver. |
kNoSuchMethodDispatcher, // invokes noSuchMethod. |
kInvokeFieldDispatcher, // invokes a field as a closure. |
+ kIrregexpFunction, // represents a generated irregexp matcher function. |
}; |
enum AsyncModifier { |
@@ -1717,8 +1718,10 @@ class RawJSRegExp : public RawInstance { |
RawSmi* data_length_; |
RawSmi* num_bracket_expressions_; |
RawString* pattern_; // Pattern to be used for matching. |
+ RawFunction* one_byte_function_; |
+ RawFunction* two_byte_function_; |
RawObject** to() { |
- return reinterpret_cast<RawObject**>(&ptr()->pattern_); |
+ return reinterpret_cast<RawObject**>(&ptr()->two_byte_function_); |
} |
intptr_t type_; // Uninitialized, simple or complex. |