Index: src/runtime/runtime-collections.cc |
diff --git a/src/runtime/runtime-collections.cc b/src/runtime/runtime-collections.cc |
index 57e5d98532e681a1fc79829f9925ea61ce04cf93..b25a5ef5c2f5a531bae09267200621b49a2638da 100644 |
--- a/src/runtime/runtime-collections.cc |
+++ b/src/runtime/runtime-collections.cc |
@@ -95,7 +95,7 @@ RUNTIME_FUNCTION(Runtime_SetIteratorInitialize) { |
kind == JSSetIterator::kKindEntries); |
Handle<OrderedHashSet> table(OrderedHashSet::cast(set->table())); |
holder->set_table(*table); |
- holder->set_index(Smi::kZero); |
+ holder->set_index(Smi::FromInt(0)); |
holder->set_kind(Smi::FromInt(kind)); |
return isolate->heap()->undefined_value(); |
} |
@@ -191,7 +191,7 @@ RUNTIME_FUNCTION(Runtime_MapIteratorInitialize) { |
kind == JSMapIterator::kKindEntries); |
Handle<OrderedHashMap> table(OrderedHashMap::cast(map->table())); |
holder->set_table(*table); |
- holder->set_index(Smi::kZero); |
+ holder->set_index(Smi::FromInt(0)); |
holder->set_kind(Smi::FromInt(kind)); |
return isolate->heap()->undefined_value(); |
} |