Index: src/x64/ic-x64.cc |
=================================================================== |
--- src/x64/ic-x64.cc (revision 2780) |
+++ src/x64/ic-x64.cc (working copy) |
@@ -339,7 +339,7 @@ |
__ bind(&fast); |
__ movq(rax, Operand(rcx, rax, times_pointer_size, |
FixedArray::kHeaderSize - kHeapObjectTag)); |
- __ Cmp(rax, Factory::the_hole_value()); |
+ __ CompareRoot(rax, Heap::kTheHoleValueRootIndex); |
// In case the loaded value is the_hole we have to consult GetProperty |
// to ensure the prototype chain is searched. |
__ j(equal, &slow); |
@@ -613,9 +613,9 @@ |
// Check for boolean. |
__ bind(&non_string); |
- __ Cmp(rdx, Factory::true_value()); |
+ __ CompareRoot(rdx, Heap::kTrueValueRootIndex); |
__ j(equal, &boolean); |
- __ Cmp(rdx, Factory::false_value()); |
+ __ CompareRoot(rdx, Heap::kFalseValueRootIndex); |
__ j(not_equal, &miss); |
__ bind(&boolean); |
StubCompiler::GenerateLoadGlobalFunctionPrototype( |