Commit 4dd5e1da authored by Santiago Aboy Solanes's avatar Santiago Aboy Solanes Committed by Commit Bot

[csa][cleanup] Change the last Variable*[]s to VariableList

Bug: v8:6949
Change-Id: I8bd989ffce16b05e7cc37a35da9c2912090f60ec
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2290857Reviewed-by: 's avatarDan Elphick <delphick@chromium.org>
Commit-Queue: Santiago Aboy Solanes <solanes@chromium.org>
Cr-Commit-Position: refs/heads/master@{#68790}
parent 295ee7ef
...@@ -4618,10 +4618,9 @@ void CodeStubAssembler::CopyFixedArrayElements( ...@@ -4618,10 +4618,9 @@ void CodeStubAssembler::CopyFixedArrayElements(
first_element_offset); first_element_offset);
} }
Variable* vars[] = {&var_from_offset, &var_to_offset, var_holes_converted}; VariableList vars({&var_from_offset, &var_to_offset}, zone());
int num_vars = if (var_holes_converted != nullptr) vars.push_back(var_holes_converted);
var_holes_converted != nullptr ? arraysize(vars) : arraysize(vars) - 1; Label decrement(this, vars);
Label decrement(this, num_vars, vars);
TNode<IntPtrT> to_array_adjusted = TNode<IntPtrT> to_array_adjusted =
element_offset_matches element_offset_matches
...@@ -4990,10 +4989,9 @@ void CodeStubAssembler::TaggedToWord32OrBigIntImpl( ...@@ -4990,10 +4989,9 @@ void CodeStubAssembler::TaggedToWord32OrBigIntImpl(
// We might need to loop after conversion. // We might need to loop after conversion.
TVARIABLE(Object, var_value, value); TVARIABLE(Object, var_value, value);
OverwriteFeedback(var_feedback, BinaryOperationFeedback::kNone); OverwriteFeedback(var_feedback, BinaryOperationFeedback::kNone);
Variable* loop_vars[] = {&var_value, var_feedback}; VariableList loop_vars({&var_value}, zone());
int num_vars = if (var_feedback != nullptr) loop_vars.push_back(var_feedback);
var_feedback != nullptr ? arraysize(loop_vars) : arraysize(loop_vars) - 1; Label loop(this, loop_vars);
Label loop(this, num_vars, loop_vars);
Goto(&loop); Goto(&loop);
BIND(&loop); BIND(&loop);
{ {
...@@ -7555,8 +7553,7 @@ void CodeStubAssembler::NameDictionaryLookup( ...@@ -7555,8 +7553,7 @@ void CodeStubAssembler::NameDictionaryLookup(
TVARIABLE(IntPtrT, var_count, count); TVARIABLE(IntPtrT, var_count, count);
TVARIABLE(IntPtrT, var_entry, entry); TVARIABLE(IntPtrT, var_entry, entry);
Variable* loop_vars[] = {&var_count, &var_entry, var_name_index}; Label loop(this, {&var_count, &var_entry, var_name_index});
Label loop(this, arraysize(loop_vars), loop_vars);
Goto(&loop); Goto(&loop);
BIND(&loop); BIND(&loop);
{ {
...@@ -7631,8 +7628,7 @@ void CodeStubAssembler::NumberDictionaryLookup( ...@@ -7631,8 +7628,7 @@ void CodeStubAssembler::NumberDictionaryLookup(
TNode<Oddball> the_hole = TheHoleConstant(); TNode<Oddball> the_hole = TheHoleConstant();
TVARIABLE(IntPtrT, var_count, count); TVARIABLE(IntPtrT, var_count, count);
Variable* loop_vars[] = {&var_count, var_entry}; Label loop(this, {&var_count, var_entry});
Label loop(this, 2, loop_vars);
*var_entry = entry; *var_entry = entry;
Goto(&loop); Goto(&loop);
BIND(&loop); BIND(&loop);
...@@ -8001,10 +7997,7 @@ void CodeStubAssembler::ForEachEnumerableOwnProperty( ...@@ -8001,10 +7997,7 @@ void CodeStubAssembler::ForEachEnumerableOwnProperty(
&var_is_symbol_processing_loop, &var_start_key_index, &var_is_symbol_processing_loop, &var_start_key_index,
&var_end_key_index}, &var_end_key_index},
zone()); zone());
Label descriptor_array_loop( Label descriptor_array_loop(this, list);
this, {&var_descriptors, &var_stable, &var_has_symbol,
&var_is_symbol_processing_loop, &var_start_key_index,
&var_end_key_index});
Goto(&descriptor_array_loop); Goto(&descriptor_array_loop);
BIND(&descriptor_array_loop); BIND(&descriptor_array_loop);
......
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