OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #if V8_TARGET_ARCH_X64 | 5 #if V8_TARGET_ARCH_X64 |
6 | 6 |
7 #include "src/base/bits.h" | 7 #include "src/base/bits.h" |
8 #include "src/code-factory.h" | 8 #include "src/code-factory.h" |
9 #include "src/code-stubs.h" | 9 #include "src/code-stubs.h" |
10 #include "src/cpu-profiler.h" | 10 #include "src/cpu-profiler.h" |
(...skipping 574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
585 value, | 585 value, |
586 environment->HasTaggedValueAt(env_offset + i), | 586 environment->HasTaggedValueAt(env_offset + i), |
587 environment->HasUint32ValueAt(env_offset + i), | 587 environment->HasUint32ValueAt(env_offset + i), |
588 object_index_pointer, | 588 object_index_pointer, |
589 dematerialized_index_pointer); | 589 dematerialized_index_pointer); |
590 } | 590 } |
591 return; | 591 return; |
592 } | 592 } |
593 | 593 |
594 if (op->IsStackSlot()) { | 594 if (op->IsStackSlot()) { |
| 595 int index = op->index(); |
| 596 if (index >= 0) { |
| 597 index += StandardFrameConstants::kFixedFrameSize / kPointerSize; |
| 598 } |
595 if (is_tagged) { | 599 if (is_tagged) { |
596 translation->StoreStackSlot(op->index()); | 600 translation->StoreStackSlot(index); |
597 } else if (is_uint32) { | 601 } else if (is_uint32) { |
598 translation->StoreUint32StackSlot(op->index()); | 602 translation->StoreUint32StackSlot(index); |
599 } else { | 603 } else { |
600 translation->StoreInt32StackSlot(op->index()); | 604 translation->StoreInt32StackSlot(index); |
601 } | 605 } |
602 } else if (op->IsDoubleStackSlot()) { | 606 } else if (op->IsDoubleStackSlot()) { |
603 translation->StoreDoubleStackSlot(op->index()); | 607 int index = op->index(); |
| 608 if (index >= 0) { |
| 609 index += StandardFrameConstants::kFixedFrameSize / kPointerSize; |
| 610 } |
| 611 translation->StoreDoubleStackSlot(index); |
604 } else if (op->IsRegister()) { | 612 } else if (op->IsRegister()) { |
605 Register reg = ToRegister(op); | 613 Register reg = ToRegister(op); |
606 if (is_tagged) { | 614 if (is_tagged) { |
607 translation->StoreRegister(reg); | 615 translation->StoreRegister(reg); |
608 } else if (is_uint32) { | 616 } else if (is_uint32) { |
609 translation->StoreUint32Register(reg); | 617 translation->StoreUint32Register(reg); |
610 } else { | 618 } else { |
611 translation->StoreInt32Register(reg); | 619 translation->StoreInt32Register(reg); |
612 } | 620 } |
613 } else if (op->IsDoubleRegister()) { | 621 } else if (op->IsDoubleRegister()) { |
(...skipping 5433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6047 RecordSafepoint(Safepoint::kNoLazyDeopt); | 6055 RecordSafepoint(Safepoint::kNoLazyDeopt); |
6048 } | 6056 } |
6049 | 6057 |
6050 | 6058 |
6051 #undef __ | 6059 #undef __ |
6052 | 6060 |
6053 } // namespace internal | 6061 } // namespace internal |
6054 } // namespace v8 | 6062 } // namespace v8 |
6055 | 6063 |
6056 #endif // V8_TARGET_ARCH_X64 | 6064 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |