Commit 5e22e397 authored by Mike Stanton's avatar Mike Stanton Committed by Commit Bot

[TurboFan] Initialize boolean types correctly for background compiles.

Change-Id: If1aefb00299ac0c88bdc84b5b77b58582dd8b9b4
Reviewed-on: https://chromium-review.googlesource.com/1047105Reviewed-by: 's avatarJaroslav Sevcik <jarin@chromium.org>
Commit-Queue: Michael Stanton <mvstanton@chromium.org>
Cr-Commit-Position: refs/heads/master@{#53028}
parent d8131cd6
......@@ -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()));
}
};
......
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