Index: src/builtins/builtins-generator.cc |
diff --git a/src/builtins/builtins-generator.cc b/src/builtins/builtins-generator.cc |
index 93b2e48cbdb196695ca7179863300685960ceadb..fe1f2d2304e2c13bca0026953998899bd6ac54c0 100644 |
--- a/src/builtins/builtins-generator.cc |
+++ b/src/builtins/builtins-generator.cc |
@@ -26,7 +26,8 @@ void Generate_GeneratorPrototypeResume( |
// Check if the {receiver} is actually a JSGeneratorObject. |
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, |