Index: src/builtins/builtins-typedarray.cc |
diff --git a/src/builtins/builtins-typedarray.cc b/src/builtins/builtins-typedarray.cc |
index ede04f26d8a97e1ef784b6bd4e60f4c1baf6c3eb..d63affe3ba62a62721af14a66e39bf7655d401f7 100644 |
--- a/src/builtins/builtins-typedarray.cc |
+++ b/src/builtins/builtins-typedarray.cc |
@@ -31,7 +31,8 @@ void Generate_TypedArrayProtoypeGetter(CodeStubAssembler* assembler, |
// Check if the {receiver} is actually a JSTypedArray. |
Label if_receiverisincompatible(assembler, Label::kDeferred); |
- assembler->GotoIf(assembler->WordIsSmi(receiver), &if_receiverisincompatible); |
+ assembler->GotoIf(assembler->TaggedIsSmi(receiver), |
+ &if_receiverisincompatible); |
Node* receiver_instance_type = assembler->LoadInstanceType(receiver); |
assembler->GotoUnless( |
assembler->Word32Equal(receiver_instance_type, |