Skip to content

Commit 8aa1a85

Browse files
mythrialleCommit Bot
authored andcommitted
[cleanup][ic] Tnodify accessor-assembler.cc
Bug: v8:9810 Change-Id: I202c63bc759bca0c542ae56831c34709f53b9497 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1914562 Reviewed-by: Igor Sheludko <ishell@chromium.org> Commit-Queue: Mythri Alle <mythria@chromium.org> Cr-Commit-Position: refs/heads/master@{#64970}
1 parent bc9e467 commit 8aa1a85

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

src/ic/accessor-assembler.cc

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ void AccessorAssembler::HandleLoadICSmiHandlerCase(
345345
{
346346
GotoIfNot(IsStringInstanceType(var_instance_type.value()), miss);
347347

348-
Node* function = ExternalConstant(
348+
TNode<ExternalReference> function = ExternalConstant(
349349
ExternalReference::string_to_array_index_function());
350350
TNode<Int32T> result = UncheckedCast<Int32T>(
351351
CallCFunction(function, MachineType::Int32(),
@@ -1941,7 +1941,7 @@ TNode<PropertyArray> AccessorAssembler::ExtendPropertiesBackingStore(
19411941
// helpers that do the correct op based on the mode.
19421942
TVARIABLE(HeapObject, var_properties);
19431943
TVARIABLE(Int32T, var_encoded_hash);
1944-
VARIABLE(var_length, ParameterRepresentation(mode));
1944+
TVARIABLE(BInt, var_length);
19451945

19461946
TNode<Object> properties =
19471947
LoadObjectField(object, JSObject::kPropertiesOrHashOffset);
@@ -1955,7 +1955,7 @@ TNode<PropertyArray> AccessorAssembler::ExtendPropertiesBackingStore(
19551955
TNode<Int32T> encoded_hash =
19561956
Word32Shl(hash, Int32Constant(PropertyArray::HashField::kShift));
19571957
var_encoded_hash = encoded_hash;
1958-
var_length.Bind(IntPtrOrSmiConstant(0, mode));
1958+
var_length = BIntConstant(0);
19591959
var_properties = EmptyFixedArrayConstant();
19601960
Goto(&extend_store);
19611961
}
@@ -1970,8 +1970,7 @@ TNode<PropertyArray> AccessorAssembler::ExtendPropertiesBackingStore(
19701970
TNode<IntPtrT> length_intptr = ChangeInt32ToIntPtr(
19711971
Word32And(length_and_hash_int32,
19721972
Int32Constant(PropertyArray::LengthField::kMask)));
1973-
Node* length = IntPtrToParameter(length_intptr, mode);
1974-
var_length.Bind(length);
1973+
var_length = IntPtrToBInt(length_intptr);
19751974
Goto(&extend_store);
19761975
}
19771976

0 commit comments

Comments
 (0)