Index: src/interpreter/bytecode-generator.cc |
diff --git a/src/interpreter/bytecode-generator.cc b/src/interpreter/bytecode-generator.cc |
index a6b38ec3a94177899d92e0abdead805609e4568e..c6b6280bc5a0d9ef00a0b7593b45a36a83ac3b32 100644 |
--- a/src/interpreter/bytecode-generator.cc |
+++ b/src/interpreter/bytecode-generator.cc |
@@ -1206,7 +1206,7 @@ void BytecodeGenerator::VisitForInStatement(ForInStatement* stmt) { |
// Set up loop counter |
Register index = register_allocator()->NewRegister(); |
- builder()->LoadLiteral(Smi::kZero); |
+ builder()->LoadLiteral(Smi::FromInt(0)); |
builder()->StoreAccumulatorInRegister(index); |
// The loop |