@@ -268,7 +268,7 @@ TNode<JSArray> ObjectEntriesValuesBuiltinsAssembler::FastGetOwnValuesOrEntries(
268
268
object_enum_length, IntPtrConstant (kInvalidEnumCacheSentinel ));
269
269
270
270
// In case, we found enum_cache in object,
271
- // we use it as array_length becuase it has same size for
271
+ // we use it as array_length because it has same size for
272
272
// Object.(entries/values) result array object length.
273
273
// So object_enum_length use less memory space than
274
274
// NumberOfOwnDescriptorsBits value.
@@ -285,7 +285,7 @@ TNode<JSArray> ObjectEntriesValuesBuiltinsAssembler::FastGetOwnValuesOrEntries(
285
285
INTPTR_PARAMETERS, kAllowLargeObjectAllocation ));
286
286
287
287
// If in case we have enum_cache,
288
- // we can't detect accessor of object until loop through descritpros .
288
+ // we can't detect accessor of object until loop through descriptors .
289
289
// So if object might have accessor,
290
290
// we will remain invalid addresses of FixedArray.
291
291
// Because in that case, we need to jump to runtime call.
@@ -299,7 +299,7 @@ TNode<JSArray> ObjectEntriesValuesBuiltinsAssembler::FastGetOwnValuesOrEntries(
299
299
Variable* vars[] = {&var_descriptor_number, &var_result_index};
300
300
// Let desc be ? O.[[GetOwnProperty]](key).
301
301
TNode<DescriptorArray> descriptors = LoadMapDescriptors (map);
302
- Label loop (this , 2 , vars), after_loop (this ), loop_condition (this );
302
+ Label loop (this , 2 , vars), after_loop (this ), next_descriptor (this );
303
303
Branch (IntPtrEqual (var_descriptor_number.value (), object_enum_length),
304
304
&after_loop, &loop);
305
305
@@ -316,7 +316,7 @@ TNode<JSArray> ObjectEntriesValuesBuiltinsAssembler::FastGetOwnValuesOrEntries(
316
316
Node* next_key = DescriptorArrayGetKey (descriptors, descriptor_index);
317
317
318
318
// Skip Symbols.
319
- GotoIf (IsSymbol (next_key), &loop_condition );
319
+ GotoIf (IsSymbol (next_key), &next_descriptor );
320
320
321
321
TNode<Uint32T> details = TNode<Uint32T>::UncheckedCast (
322
322
DescriptorArrayGetDetails (descriptors, descriptor_index));
@@ -326,8 +326,9 @@ TNode<JSArray> ObjectEntriesValuesBuiltinsAssembler::FastGetOwnValuesOrEntries(
326
326
GotoIf (IsPropertyKindAccessor (kind), if_call_runtime_with_fast_path);
327
327
CSA_ASSERT (this , IsPropertyKindData (kind));
328
328
329
- // If desc is not undefined and desc.[[Enumerable]] is true, then
330
- GotoIfNot (IsPropertyEnumerable (details), &loop_condition);
329
+ // If desc is not undefined and desc.[[Enumerable]] is true, then skip to
330
+ // the next descriptor.
331
+ GotoIfNot (IsPropertyEnumerable (details), &next_descriptor);
331
332
332
333
VARIABLE (var_property_value, MachineRepresentation::kTagged ,
333
334
UndefinedConstant ());
@@ -357,12 +358,12 @@ TNode<JSArray> ObjectEntriesValuesBuiltinsAssembler::FastGetOwnValuesOrEntries(
357
358
StoreFixedArrayElement (values_or_entries, var_result_index.value (),
358
359
value);
359
360
Increment (&var_result_index, 1 );
360
- Goto (&loop_condition );
361
+ Goto (&next_descriptor );
361
362
362
- BIND (&loop_condition );
363
+ BIND (&next_descriptor );
363
364
{
364
365
Increment (&var_descriptor_number, 1 );
365
- Branch (IntPtrEqual (var_descriptor_number .value (), object_enum_length),
366
+ Branch (IntPtrEqual (var_result_index .value (), object_enum_length),
366
367
&after_loop, &loop);
367
368
}
368
369
}
0 commit comments