| 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 #include "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_X64 | 7 #if V8_TARGET_ARCH_X64 |
| 8 | 8 |
| 9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
| 10 #include "src/code-factory.h" | 10 #include "src/code-factory.h" |
| (...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 587 value, | 587 value, |
| 588 environment->HasTaggedValueAt(env_offset + i), | 588 environment->HasTaggedValueAt(env_offset + i), |
| 589 environment->HasUint32ValueAt(env_offset + i), | 589 environment->HasUint32ValueAt(env_offset + i), |
| 590 object_index_pointer, | 590 object_index_pointer, |
| 591 dematerialized_index_pointer); | 591 dematerialized_index_pointer); |
| 592 } | 592 } |
| 593 return; | 593 return; |
| 594 } | 594 } |
| 595 | 595 |
| 596 if (op->IsStackSlot()) { | 596 if (op->IsStackSlot()) { |
| 597 int index = op->index(); |
| 598 if (index >= 0) { |
| 599 index += StandardFrameConstants::kFixedFrameSize / kPointerSize; |
| 600 } |
| 597 if (is_tagged) { | 601 if (is_tagged) { |
| 598 translation->StoreStackSlot(op->index()); | 602 translation->StoreStackSlot(index); |
| 599 } else if (is_uint32) { | 603 } else if (is_uint32) { |
| 600 translation->StoreUint32StackSlot(op->index()); | 604 translation->StoreUint32StackSlot(index); |
| 601 } else { | 605 } else { |
| 602 translation->StoreInt32StackSlot(op->index()); | 606 translation->StoreInt32StackSlot(index); |
| 603 } | 607 } |
| 604 } else if (op->IsDoubleStackSlot()) { | 608 } else if (op->IsDoubleStackSlot()) { |
| 605 translation->StoreDoubleStackSlot(op->index()); | 609 int index = op->index(); |
| 610 if (index >= 0) { |
| 611 index += StandardFrameConstants::kFixedFrameSize / kPointerSize; |
| 612 } |
| 613 translation->StoreDoubleStackSlot(index); |
| 606 } else if (op->IsRegister()) { | 614 } else if (op->IsRegister()) { |
| 607 Register reg = ToRegister(op); | 615 Register reg = ToRegister(op); |
| 608 if (is_tagged) { | 616 if (is_tagged) { |
| 609 translation->StoreRegister(reg); | 617 translation->StoreRegister(reg); |
| 610 } else if (is_uint32) { | 618 } else if (is_uint32) { |
| 611 translation->StoreUint32Register(reg); | 619 translation->StoreUint32Register(reg); |
| 612 } else { | 620 } else { |
| 613 translation->StoreInt32Register(reg); | 621 translation->StoreInt32Register(reg); |
| 614 } | 622 } |
| 615 } else if (op->IsDoubleRegister()) { | 623 } else if (op->IsDoubleRegister()) { |
| (...skipping 5433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6049 RecordSafepoint(Safepoint::kNoLazyDeopt); | 6057 RecordSafepoint(Safepoint::kNoLazyDeopt); |
| 6050 } | 6058 } |
| 6051 | 6059 |
| 6052 | 6060 |
| 6053 #undef __ | 6061 #undef __ |
| 6054 | 6062 |
| 6055 } // namespace internal | 6063 } // namespace internal |
| 6056 } // namespace v8 | 6064 } // namespace v8 |
| 6057 | 6065 |
| 6058 #endif // V8_TARGET_ARCH_X64 | 6066 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |