Index: src/x64/code-stubs-x64.cc |
diff --git a/src/x64/code-stubs-x64.cc b/src/x64/code-stubs-x64.cc |
index be8160b7d396124a2eba98eadebe14bbdc65b7da..5a08f0e7e541327adedb7bce84b63c0cad1b9a7d 100644 |
--- a/src/x64/code-stubs-x64.cc |
+++ b/src/x64/code-stubs-x64.cc |
@@ -2222,7 +2222,7 @@ static void CheckInputType(MacroAssembler* masm, |
__ JumpIfNotSmi(input, fail); |
} else if (expected == CompareIC::NUMBER) { |
__ JumpIfSmi(input, &ok); |
- __ CompareMap(input, masm->isolate()->factory()->heap_number_map(), NULL); |
+ __ CompareMap(input, masm->isolate()->factory()->heap_number_map()); |
__ j(not_equal, fail); |
} |
// We could be strict about internalized/non-internalized here, but as long as |
@@ -3206,7 +3206,7 @@ void InstanceofStub::Generate(MacroAssembler* masm) { |
// __ j(not_equal, &cache_miss); |
// __ LoadRoot(ToRegister(instr->result()), Heap::kTheHoleValueRootIndex); |
// before the offset of the hole value in the root array. |
- static const unsigned int kWordBeforeResultValue = 0x458B4909; |
+ static const unsigned int kWordBeforeResultValue = 0x458B4906; |
// Only the inline check flag is supported on X64. |
ASSERT(flags_ == kNoFlags || HasCallSiteInlineCheck()); |
int extra_argument_offset = HasCallSiteInlineCheck() ? 1 : 0; |
@@ -4543,7 +4543,7 @@ void ICCompareStub::GenerateNumbers(MacroAssembler* masm) { |
// Load left and right operand. |
Label done, left, left_smi, right_smi; |
__ JumpIfSmi(rax, &right_smi, Label::kNear); |
- __ CompareMap(rax, masm->isolate()->factory()->heap_number_map(), NULL); |
+ __ CompareMap(rax, masm->isolate()->factory()->heap_number_map()); |
__ j(not_equal, &maybe_undefined1, Label::kNear); |
__ movsd(xmm1, FieldOperand(rax, HeapNumber::kValueOffset)); |
__ jmp(&left, Label::kNear); |
@@ -4553,7 +4553,7 @@ void ICCompareStub::GenerateNumbers(MacroAssembler* masm) { |
__ bind(&left); |
__ JumpIfSmi(rdx, &left_smi, Label::kNear); |
- __ CompareMap(rdx, masm->isolate()->factory()->heap_number_map(), NULL); |
+ __ CompareMap(rdx, masm->isolate()->factory()->heap_number_map()); |
__ j(not_equal, &maybe_undefined2, Label::kNear); |
__ movsd(xmm0, FieldOperand(rdx, HeapNumber::kValueOffset)); |
__ jmp(&done); |