| Index: src/compiler/js-inlining.cc
|
| diff --git a/src/compiler/js-inlining.cc b/src/compiler/js-inlining.cc
|
| index 6a739c2cc36bf026b9ed01e6e2b6f71b5e6664f5..a4e0f318e8bd7a385650f905ef5f9a334e8ff64a 100644
|
| --- a/src/compiler/js-inlining.cc
|
| +++ b/src/compiler/js-inlining.cc
|
| @@ -328,6 +328,10 @@ Reduction JSInliner::Reduce(Node* node) {
|
| if (!match.HasValue()) return NoChange();
|
|
|
| Handle<JSFunction> function = match.Value().handle();
|
| + if (!function->IsJSFunction()) return NoChange();
|
| + if (mode_ == kBuiltinsInlining && !function->shared()->inline_builtin()) {
|
| + return NoChange();
|
| + }
|
|
|
| CompilationInfoWithZone info(function);
|
|
|
|
|