Index: src/x64/lithium-codegen-x64.cc |
diff --git a/src/x64/lithium-codegen-x64.cc b/src/x64/lithium-codegen-x64.cc |
index 35da23d76b0fbd989a0be08a276cfd67dd79879b..86c6d5cf8b0b39e0aa53da1727e5d09e3db02888 100644 |
--- a/src/x64/lithium-codegen-x64.cc |
+++ b/src/x64/lithium-codegen-x64.cc |
@@ -4683,7 +4683,7 @@ void LCodeGen::DoSmiUntag(LSmiUntag* instr) { |
void LCodeGen::EmitNumberUntagD(Register input_reg, |
XMMRegister result_reg, |
- bool deoptimize_on_undefined, |
+ bool allow_undefined_as_nan, |
bool deoptimize_on_minus_zero, |
LEnvironment* env, |
NumberUntagDMode mode) { |
@@ -4698,7 +4698,7 @@ void LCodeGen::EmitNumberUntagD(Register input_reg, |
// Heap number map check. |
__ CompareRoot(FieldOperand(input_reg, HeapObject::kMapOffset), |
Heap::kHeapNumberMapRootIndex); |
- if (deoptimize_on_undefined) { |
+ if (!allow_undefined_as_nan) { |
DeoptimizeIf(not_equal, env); |
} else { |
Label heap_number, convert; |
@@ -4834,7 +4834,7 @@ void LCodeGen::DoNumberUntagD(LNumberUntagD* instr) { |
} |
EmitNumberUntagD(input_reg, result_reg, |
- instr->hydrogen()->deoptimize_on_undefined(), |
+ instr->hydrogen()->allow_undefined_as_nan(), |
instr->hydrogen()->deoptimize_on_minus_zero(), |
instr->environment(), |
mode); |