Index: src/x64/full-codegen-x64.cc |
diff --git a/src/x64/full-codegen-x64.cc b/src/x64/full-codegen-x64.cc |
index 9b4a9dfff0e15491d7aa55f562c187f61585c79d..cbd6b277bb1b2cb812f3e99e923c4a3b0c6f5a54 100644 |
--- a/src/x64/full-codegen-x64.cc |
+++ b/src/x64/full-codegen-x64.cc |
@@ -2642,9 +2642,7 @@ void FullCodeGenerator::EmitIsStringWrapperSafeForDefaultValueOf( |
Operand( |
rbx, index.reg, index.scale, FixedArray::kHeaderSize)); |
// Calculate location of the first key name. |
- __ addq(rbx, |
- Immediate(FixedArray::kHeaderSize + |
- DescriptorArray::kFirstIndex * kPointerSize)); |
+ __ addq(rbx, Immediate(DescriptorArray::kFirstOffset)); |
// Loop through all the keys in the descriptor array. If one of these is the |
// symbol valueOf the result is false. |
Label entry, loop; |
@@ -2653,7 +2651,7 @@ void FullCodeGenerator::EmitIsStringWrapperSafeForDefaultValueOf( |
__ movq(rdx, FieldOperand(rbx, 0)); |
__ Cmp(rdx, FACTORY->value_of_symbol()); |
__ j(equal, if_false); |
- __ addq(rbx, Immediate(kPointerSize)); |
+ __ addq(rbx, Immediate(DescriptorArray::kDescriptorSize * kPointerSize)); |
__ bind(&entry); |
__ cmpq(rbx, rcx); |
__ j(not_equal, &loop); |