[turbofan] Don't try to inline our builtins.

R=mstarzinger@chromium.org
BUG=v8:4493
LOG=n

Review URL: https://codereview.chromium.org/1432223002

Cr-Commit-Position: refs/heads/master@{#31944}
This commit is contained in:
bmeurer 2015-11-11 06:27:45 -08:00 committed by Commit bot
parent 8a20d2b7dd
commit 095e6a4f84

View File

@ -48,6 +48,9 @@ Reduction JSInliningHeuristic::Reduce(Node* node) {
// Built-in functions are handled by the JSBuiltinReducer.
if (function->shared()->HasBuiltinFunctionId()) return NoChange();
// Don't inline builtins.
if (function->shared()->IsBuiltin()) return NoChange();
// Quick check on source code length to avoid parsing large candidate.
if (function->shared()->SourceSize() > FLAG_max_inlined_source_size) {
return NoChange();