| Index: runtime/vm/code_generator.cc
|
| diff --git a/runtime/vm/code_generator.cc b/runtime/vm/code_generator.cc
|
| index 98d46828b0a8020c2271cf9ed304663d2191dbea..d723d83d17012ce38c74d7bad138e5f3e032ed32 100644
|
| --- a/runtime/vm/code_generator.cc
|
| +++ b/runtime/vm/code_generator.cc
|
| @@ -1031,6 +1031,11 @@ DEFINE_RUNTIME_ENTRY(InvokeNoSuchMethodFunction, 4) {
|
|
|
| static bool CanOptimizeFunction(const Function& function, Isolate* isolate) {
|
| const intptr_t kLowInvocationCount = -100000000;
|
| + // TODO(jgruber): Enable optimizations of irregexp functions.
|
| + if (function.kind() == RawFunction::kIrregexpFunction) {
|
| + function.set_usage_counter(kLowInvocationCount);
|
| + return false;
|
| + }
|
| if (isolate->debugger()->IsStepping() ||
|
| isolate->debugger()->HasBreakpoint(function)) {
|
| // We cannot set breakpoints and single step in optimized code,
|
|
|