Index: src/compiler/code-assembler.cc |
diff --git a/src/compiler/code-assembler.cc b/src/compiler/code-assembler.cc |
index f9117557fbaea15ffdfe629b76dfd6d0709b319c..513225da04895791181a7a7eff31531e8c8395ec 100644 |
--- a/src/compiler/code-assembler.cc |
+++ b/src/compiler/code-assembler.cc |
@@ -110,6 +110,10 @@ Node* CodeAssembler::SmiConstant(Smi* value) { |
return BitcastWordToTaggedSigned(IntPtrConstant(bit_cast<intptr_t>(value))); |
} |
+Node* CodeAssembler::SmiConstant(int value) { |
+ return SmiConstant(Smi::FromInt(value)); |
+} |
+ |
Node* CodeAssembler::HeapConstant(Handle<HeapObject> object) { |
return raw_assembler_->HeapConstant(object); |
} |