Index: src/ia32/code-stubs-ia32.cc |
diff --git a/src/ia32/code-stubs-ia32.cc b/src/ia32/code-stubs-ia32.cc |
index 78daf7cf420c69afe33b54e8d231798802d1bc10..10b17811ffa534f0b68128a0eff74e7fdf66bf6f 100644 |
--- a/src/ia32/code-stubs-ia32.cc |
+++ b/src/ia32/code-stubs-ia32.cc |
@@ -2036,23 +2036,25 @@ void TypeRecordingBinaryOpStub::GenerateOddballStub(MacroAssembler* masm) { |
GenerateAddStrings(masm); |
} |
+ Factory* factory = masm->isolate()->factory(); |
+ |
// Convert odd ball arguments to numbers. |
NearLabel check, done; |
- __ cmp(edx, FACTORY->undefined_value()); |
+ __ cmp(edx, factory->undefined_value()); |
__ j(not_equal, &check); |
if (Token::IsBitOp(op_)) { |
__ xor_(edx, Operand(edx)); |
} else { |
- __ mov(edx, Immediate(FACTORY->nan_value())); |
+ __ mov(edx, Immediate(factory->nan_value())); |
} |
__ jmp(&done); |
__ bind(&check); |
- __ cmp(eax, FACTORY->undefined_value()); |
+ __ cmp(eax, factory->undefined_value()); |
__ j(not_equal, &done); |
if (Token::IsBitOp(op_)) { |
__ xor_(eax, Operand(eax)); |
} else { |
- __ mov(eax, Immediate(FACTORY->nan_value())); |
+ __ mov(eax, Immediate(factory->nan_value())); |
} |
__ bind(&done); |