Commit a5340052 authored by mbrandy's avatar mbrandy Committed by Commit bot

Fix unittest for embedded constant pools.

Fixed frame size is larger when embedded constant pools are enabled.

R=oth@chromium.org, rmcilroy@chromium.org, yangguo@chromium.org
BUG=

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

Cr-Commit-Position: refs/heads/master@{#33985}
parent 63a59fa3
......@@ -73,7 +73,9 @@ TEST_F(RegisterTranslatorTest, TestFrameSizeAdjustmentsForTranslationWindow) {
RegisterTranslator::RegisterCountAdjustment(173, 137));
EXPECT_EQ(window_width(),
RegisterTranslator::RegisterCountAdjustment(173, 137));
EXPECT_EQ(0, RegisterTranslator::RegisterCountAdjustment(0, 120));
// TODO(oth): Add a kMaxParameters8 that derives this info from the frame.
int param_limit = FLAG_enable_embedded_constant_pool ? 119 : 120;
EXPECT_EQ(0, RegisterTranslator::RegisterCountAdjustment(0, param_limit));
EXPECT_EQ(window_limit(),
RegisterTranslator::RegisterCountAdjustment(0, 128));
EXPECT_EQ(window_limit(),
......
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