| Index: src/compiler.cc
|
| diff --git a/src/compiler.cc b/src/compiler.cc
|
| index 6d8decb9541bd325d385ae238abc0ed6c5954bb0..298955f1e0f4edd2cfa389ae9e7d70f05032790a 100644
|
| --- a/src/compiler.cc
|
| +++ b/src/compiler.cc
|
| @@ -898,6 +898,11 @@ MaybeHandle<Code> GetBaselineCode(Handle<JSFunction> function) {
|
| function->shared()->set_profiler_ticks(0);
|
| }
|
|
|
| + // Nothing left to do if the function already has baseline code.
|
| + if (function->shared()->code()->kind() == Code::FUNCTION) {
|
| + return Handle<Code>(function->shared()->code());
|
| + }
|
| +
|
| // We do not switch to baseline code when the debugger might have created a
|
| // copy of the bytecode with break slots to be able to set break points.
|
| if (function->shared()->HasDebugInfo()) {
|
|
|