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}
This commit is contained in:
mbrandy 2016-02-15 02:37:23 -08:00 committed by Commit bot
parent 63a59fa341
commit a534005231

View File

@ -73,7 +73,9 @@ TEST_F(RegisterTranslatorTest, TestFrameSizeAdjustmentsForTranslationWindow) {
RegisterTranslator::RegisterCountAdjustment(173, 137)); RegisterTranslator::RegisterCountAdjustment(173, 137));
EXPECT_EQ(window_width(), EXPECT_EQ(window_width(),
RegisterTranslator::RegisterCountAdjustment(173, 137)); 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(), EXPECT_EQ(window_limit(),
RegisterTranslator::RegisterCountAdjustment(0, 128)); RegisterTranslator::RegisterCountAdjustment(0, 128));
EXPECT_EQ(window_limit(), EXPECT_EQ(window_limit(),