Index: runtime/vm/intrinsifier_arm.cc |
diff --git a/runtime/vm/intrinsifier_arm.cc b/runtime/vm/intrinsifier_arm.cc |
index 9dbd1f94cee99479faed58f4e3562d8dce73f3b7..62380140c836cb64f85f044fc46e10a22c0d6bfb 100644 |
--- a/runtime/vm/intrinsifier_arm.cc |
+++ b/runtime/vm/intrinsifier_arm.cc |
@@ -18,6 +18,8 @@ |
namespace dart { |
+DECLARE_FLAG(bool, interpret_irregexp); |
+ |
// When entering intrinsics code: |
// R5: IC Data |
// R4: Arguments descriptor |
@@ -1991,6 +1993,8 @@ void Intrinsifier::TwoByteString_equality(Assembler* assembler) { |
void Intrinsifier::JSRegExp_ExecuteMatch(Assembler* assembler) { |
+ if (FLAG_interpret_irregexp) return; |
+ |
static const intptr_t kRegExpParamOffset = 2 * kWordSize; |
static const intptr_t kStringParamOffset = 1 * kWordSize; |
// start_index smi is located at offset 0. |