[TurboFan] Initialize boolean types correctly for background compiles.

Change-Id: If1aefb00299ac0c88bdc84b5b77b58582dd8b9b4
Reviewed-on: https://chromium-review.googlesource.com/1047105
Reviewed-by: Jaroslav Sevcik <jarin@chromium.org>
Commit-Queue: Michael Stanton <mvstanton@chromium.org>
Cr-Commit-Position: refs/heads/master@{#53028}
This commit is contained in:
Mike Stanton 2018-05-07 15:36:02 +02:00 committed by Commit Bot
parent d8131cd63a
commit 5e22e397b1

View File

@ -1284,8 +1284,14 @@ struct ConcurrentOptimizationPrepPhase {
data->jsgraph()->ArrayConstructorStubConstant();
// This is needed for escape analysis.
NodeProperties::SetType(data->jsgraph()->FalseConstant(), Type::Boolean());
NodeProperties::SetType(data->jsgraph()->TrueConstant(), Type::Boolean());
NodeProperties::SetType(
data->jsgraph()->FalseConstant(),
Type::HeapConstant(data->isolate()->factory()->false_value(),
data->jsgraph()->zone()));
NodeProperties::SetType(
data->jsgraph()->TrueConstant(),
Type::HeapConstant(data->isolate()->factory()->true_value(),
data->jsgraph()->zone()));
}
};