Index: src/full-codegen/arm64/full-codegen-arm64.cc |
diff --git a/src/full-codegen/arm64/full-codegen-arm64.cc b/src/full-codegen/arm64/full-codegen-arm64.cc |
index ffd2b0c09ffa3be1d9e8603504e12d49ca131e1c..bf157476d486ded1823a229d5a99ee2493ceea30 100644 |
--- a/src/full-codegen/arm64/full-codegen-arm64.cc |
+++ b/src/full-codegen/arm64/full-codegen-arm64.cc |
@@ -357,7 +357,11 @@ void FullCodeGenerator::Generate() { |
masm()->CheckConstPool(true, false); |
} |
-void FullCodeGenerator::ClearAccumulator() { __ Mov(x0, Smi::kZero); } |
+ |
+void FullCodeGenerator::ClearAccumulator() { |
+ __ Mov(x0, Smi::FromInt(0)); |
+} |
+ |
void FullCodeGenerator::EmitProfilingCounterDecrement(int delta) { |
__ Mov(x2, Operand(profiling_counter_)); |