OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved.7 | 1 // Copyright 2012 the V8 project authors. All rights reserved.7 |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
640 value, | 640 value, |
641 environment->HasTaggedValueAt(env_offset + i), | 641 environment->HasTaggedValueAt(env_offset + i), |
642 environment->HasUint32ValueAt(env_offset + i), | 642 environment->HasUint32ValueAt(env_offset + i), |
643 object_index_pointer, | 643 object_index_pointer, |
644 dematerialized_index_pointer); | 644 dematerialized_index_pointer); |
645 } | 645 } |
646 return; | 646 return; |
647 } | 647 } |
648 | 648 |
649 if (op->IsStackSlot()) { | 649 if (op->IsStackSlot()) { |
| 650 int index = op->index(); |
| 651 if (index >= 0) { |
| 652 index += StandardFrameConstants::kFixedFrameSize / kPointerSize; |
| 653 } |
650 if (is_tagged) { | 654 if (is_tagged) { |
651 translation->StoreStackSlot(op->index()); | 655 translation->StoreStackSlot(index); |
652 } else if (is_uint32) { | 656 } else if (is_uint32) { |
653 translation->StoreUint32StackSlot(op->index()); | 657 translation->StoreUint32StackSlot(index); |
654 } else { | 658 } else { |
655 translation->StoreInt32StackSlot(op->index()); | 659 translation->StoreInt32StackSlot(index); |
656 } | 660 } |
657 } else if (op->IsDoubleStackSlot()) { | 661 } else if (op->IsDoubleStackSlot()) { |
658 translation->StoreDoubleStackSlot(op->index()); | 662 int index = op->index(); |
| 663 if (index >= 0) { |
| 664 index += StandardFrameConstants::kFixedFrameSize / kPointerSize; |
| 665 } |
| 666 translation->StoreDoubleStackSlot(index); |
659 } else if (op->IsRegister()) { | 667 } else if (op->IsRegister()) { |
660 Register reg = ToRegister(op); | 668 Register reg = ToRegister(op); |
661 if (is_tagged) { | 669 if (is_tagged) { |
662 translation->StoreRegister(reg); | 670 translation->StoreRegister(reg); |
663 } else if (is_uint32) { | 671 } else if (is_uint32) { |
664 translation->StoreUint32Register(reg); | 672 translation->StoreUint32Register(reg); |
665 } else { | 673 } else { |
666 translation->StoreInt32Register(reg); | 674 translation->StoreInt32Register(reg); |
667 } | 675 } |
668 } else if (op->IsDoubleRegister()) { | 676 } else if (op->IsDoubleRegister()) { |
(...skipping 5390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6059 __ Push(at, ToRegister(instr->function())); | 6067 __ Push(at, ToRegister(instr->function())); |
6060 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 6068 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
6061 RecordSafepoint(Safepoint::kNoLazyDeopt); | 6069 RecordSafepoint(Safepoint::kNoLazyDeopt); |
6062 } | 6070 } |
6063 | 6071 |
6064 | 6072 |
6065 #undef __ | 6073 #undef __ |
6066 | 6074 |
6067 } // namespace internal | 6075 } // namespace internal |
6068 } // namespace v8 | 6076 } // namespace v8 |
OLD | NEW |