Commit 18ac6024 authored by Victor Gomes's avatar Victor Gomes Committed by Commit Bot

[tests] Run TestReturnMultipleValuesLargeFrame just once

Change-Id: I850fa9a5449b204c8b9a626c449e587b039a61f5
Bug: chromium:1133701
Cq-Include-Trybots: luci.v8.try:v8_linux64_tsan_rel_ng
Cq-Include-Trybots: luci.v8.try:v8_linux64_ubsan_rel_ng
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2454086
Commit-Queue: Clemens Backes <clemensb@chromium.org>
Reviewed-by: 's avatarClemens Backes <clemensb@chromium.org>
Auto-Submit: Victor Gomes <victorgomes@chromium.org>
Cr-Commit-Position: refs/heads/master@{#70385}
parent af00c261
...@@ -132,10 +132,9 @@ std::shared_ptr<wasm::NativeModule> AllocateNativeModule(Isolate* isolate, ...@@ -132,10 +132,9 @@ std::shared_ptr<wasm::NativeModule> AllocateNativeModule(Isolate* isolate,
} }
template <int kMinParamCount, int kMaxParamCount> template <int kMinParamCount, int kMaxParamCount>
void TestReturnMultipleValues(MachineType type) { void TestReturnMultipleValues(MachineType type, int min_count, int max_count) {
const int kMaxCount = 20;
for (int param_count : {kMinParamCount, kMaxParamCount}) { for (int param_count : {kMinParamCount, kMaxParamCount}) {
for (int count = 0; count < kMaxCount; ++count) { for (int count = min_count; count < max_count; ++count) {
printf("\n==== type = %s, parameter_count = %d, count = %d ====\n\n\n", printf("\n==== type = %s, parameter_count = %d, count = %d ====\n\n\n",
MachineReprToString(type.representation()), param_count, count); MachineReprToString(type.representation()), param_count, count);
v8::internal::AccountingAllocator allocator; v8::internal::AccountingAllocator allocator;
...@@ -231,12 +230,12 @@ void TestReturnMultipleValues(MachineType type) { ...@@ -231,12 +230,12 @@ void TestReturnMultipleValues(MachineType type) {
// Use 9 parameters as a regression test or https://crbug.com/838098. // Use 9 parameters as a regression test or https://crbug.com/838098.
#define TEST_MULTI(Type, type) \ #define TEST_MULTI(Type, type) \
TEST(ReturnMultiple##Type) { TestReturnMultipleValues<2, 9>(type); } TEST(ReturnMultiple##Type) { TestReturnMultipleValues<2, 9>(type, 0, 20); }
// Create a frame larger than UINT16_MAX to force TF to use an extra register // Create a frame larger than UINT16_MAX to force TF to use an extra register
// when popping the frame. // when popping the frame.
TEST(TestReturnMultipleValuesLargeFrame) { TEST(TestReturnMultipleValuesLargeFrame) {
TestReturnMultipleValues<20000, 20000>(MachineType::Int32()); TestReturnMultipleValues<20000, 20000>(MachineType::Int32(), 2, 3);
} }
TEST_MULTI(Int32, MachineType::Int32()) TEST_MULTI(Int32, MachineType::Int32())
......
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