Index: src/wasm/wasm-module.cc |
diff --git a/src/wasm/wasm-module.cc b/src/wasm/wasm-module.cc |
index 76287ac6a2e607cf98966dd5a7589f28a7fa6717..1e6d8e6f2d88743db41d683e4831d45909aea6ba 100644 |
--- a/src/wasm/wasm-module.cc |
+++ b/src/wasm/wasm-module.cc |
@@ -882,7 +882,7 @@ WasmModule::WasmModule(byte* module_start) |
void EncodeInit(const WasmModule* module, Factory* factory, |
Handle<FixedArray> entry, int kind_index, int value_index, |
const WasmInitExpr& expr) { |
- entry->set(kind_index, Smi::kZero); |
+ entry->set(kind_index, Smi::FromInt(0)); |
Handle<Object> value; |
switch (expr.kind) { |
@@ -1119,7 +1119,7 @@ MaybeHandle<WasmCompiledModule> WasmModule::CompileFunctions( |
HandleScope scope(isolate); |
Handle<FixedArray> startup_data = |
factory->NewFixedArray(kWasmExportDataSize, TENURED); |
- startup_data->set(kExportArity, Smi::kZero); |
+ startup_data->set(kExportArity, Smi::FromInt(0)); |
startup_data->set(kExportIndex, Smi::FromInt(start_function_index)); |
ret->set_startup_function(startup_data); |
} |