| Index: runtime/lib/regexp.cc
|
| diff --git a/runtime/lib/regexp.cc b/runtime/lib/regexp.cc
|
| index 87795731c57db2a2461f537c3fa7cacf6ea594dc..1579374760a39104c391a805676f87693fc21101 100644
|
| --- a/runtime/lib/regexp.cc
|
| +++ b/runtime/lib/regexp.cc
|
| @@ -14,9 +14,6 @@
|
|
|
| namespace dart {
|
|
|
| -DECLARE_FLAG(bool, trace_irregexp);
|
| -
|
| -
|
| DEFINE_NATIVE_ENTRY(RegExp_factory, 4) {
|
| ASSERT(TypeArguments::CheckedHandle(arguments->NativeArgAt(0)).IsNull());
|
| GET_NON_NULL_NATIVE_ARGUMENT(String, pattern, arguments->NativeArgAt(1));
|
| @@ -86,13 +83,14 @@ static RawObject* ExecuteMatch(Zone* zone,
|
| GET_NON_NULL_NATIVE_ARGUMENT(String, subject, arguments->NativeArgAt(1));
|
| GET_NON_NULL_NATIVE_ARGUMENT(Smi, start_index, arguments->NativeArgAt(2));
|
|
|
| - if (FLAG_interpret_irregexp) {
|
| - return BytecodeRegExpMacroAssembler::Interpret(regexp, subject, start_index,
|
| - /*sticky=*/sticky, zone);
|
| +#if !defined(DART_PRECOMPILED_RUNTIME)
|
| + if (!FLAG_interpret_irregexp) {
|
| + return IRRegExpMacroAssembler::Execute(regexp, subject, start_index,
|
| + /*sticky=*/sticky, zone);
|
| }
|
| -
|
| - return IRRegExpMacroAssembler::Execute(regexp, subject, start_index,
|
| - /*sticky=*/sticky, zone);
|
| +#endif
|
| + return BytecodeRegExpMacroAssembler::Interpret(regexp, subject, start_index,
|
| + /*sticky=*/sticky, zone);
|
| }
|
|
|
|
|
|
|