Commit e225251f authored by tebbi's avatar tebbi Committed by Commit bot

[tubofan] teach escape analysis about ObjectIsNonCallable

R=mstarzinger@chromium.org, bmeurer@chromium.org

BUG=chromium:669242

Review-Url: https://codereview.chromium.org/2645273003
Cr-Commit-Position: refs/heads/master@{#42630}
parent a920c0d9
...@@ -821,6 +821,7 @@ bool EscapeStatusAnalysis::CheckUsesForEscape(Node* uses, Node* rep, ...@@ -821,6 +821,7 @@ bool EscapeStatusAnalysis::CheckUsesForEscape(Node* uses, Node* rep,
case IrOpcode::kStringCharAt: case IrOpcode::kStringCharAt:
case IrOpcode::kStringCharCodeAt: case IrOpcode::kStringCharCodeAt:
case IrOpcode::kObjectIsCallable: case IrOpcode::kObjectIsCallable:
case IrOpcode::kObjectIsNonCallable:
case IrOpcode::kObjectIsNumber: case IrOpcode::kObjectIsNumber:
case IrOpcode::kObjectIsReceiver: case IrOpcode::kObjectIsReceiver:
case IrOpcode::kObjectIsString: case IrOpcode::kObjectIsString:
...@@ -836,9 +837,9 @@ bool EscapeStatusAnalysis::CheckUsesForEscape(Node* uses, Node* rep, ...@@ -836,9 +837,9 @@ bool EscapeStatusAnalysis::CheckUsesForEscape(Node* uses, Node* rep,
if (use->op()->EffectInputCount() == 0 && if (use->op()->EffectInputCount() == 0 &&
uses->op()->EffectInputCount() > 0 && uses->op()->EffectInputCount() > 0 &&
!IrOpcode::IsJsOpcode(use->opcode())) { !IrOpcode::IsJsOpcode(use->opcode())) {
TRACE("Encountered unaccounted use by #%d (%s)\n", use->id(), V8_Fatal(__FILE__, __LINE__,
use->op()->mnemonic()); "Encountered unaccounted use by #%d (%s)\n", use->id(),
UNREACHABLE(); use->op()->mnemonic());
} }
if (SetEscaped(rep)) { if (SetEscaped(rep)) {
TRACE("Setting #%d (%s) to escaped because of use by #%d (%s)\n", TRACE("Setting #%d (%s) to escaped because of use by #%d (%s)\n",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment