Commit 97e79b25 authored by Nico Hartmann's avatar Nico Hartmann Committed by Commit Bot

[turbofan] Fix incorrect typing of constant with reverse stack

Bug: chromium:1120729
Change-Id: I27533a2426a63ec6b67d34d94f3cae554fc95d91
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2379852
Auto-Submit: Nico Hartmann <nicohartmann@chromium.org>
Reviewed-by: 's avatarJakob Gruber <jgruber@chromium.org>
Reviewed-by: 's avatarVictor Gomes <victorgomes@chromium.org>
Commit-Queue: Nico Hartmann <nicohartmann@chromium.org>
Cr-Commit-Position: refs/heads/master@{#69620}
parent f8061c6c
...@@ -318,8 +318,13 @@ void EscapeAnalysisReducer::Finalize() { ...@@ -318,8 +318,13 @@ void EscapeAnalysisReducer::Finalize() {
#ifdef V8_REVERSE_JSARGS #ifdef V8_REVERSE_JSARGS
Node* offset_to_first_elem = jsgraph()->Constant( Node* offset_to_first_elem = jsgraph()->Constant(
CommonFrameConstants::kFixedSlotCountAboveFp); CommonFrameConstants::kFixedSlotCountAboveFp);
NodeProperties::SetType(offset_to_first_elem, if (!NodeProperties::IsTyped(offset_to_first_elem)) {
TypeCache::Get()->kArgumentsLengthType); NodeProperties::SetType(
offset_to_first_elem,
Type::Constant(CommonFrameConstants::kFixedSlotCountAboveFp,
jsgraph()->graph()->zone()));
}
Node* offset = jsgraph()->graph()->NewNode( Node* offset = jsgraph()->graph()->NewNode(
jsgraph()->simplified()->NumberAdd(), index, jsgraph()->simplified()->NumberAdd(), index,
offset_to_first_elem); offset_to_first_elem);
......
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