OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 #include "src/code-factory.h" | 7 #include "src/code-factory.h" |
8 #include "src/code-stubs.h" | 8 #include "src/code-stubs.h" |
9 #include "src/cpu-profiler.h" | 9 #include "src/cpu-profiler.h" |
10 #include "src/hydrogen-osr.h" | 10 #include "src/hydrogen-osr.h" |
(...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
628 value, | 628 value, |
629 environment->HasTaggedValueAt(env_offset + i), | 629 environment->HasTaggedValueAt(env_offset + i), |
630 environment->HasUint32ValueAt(env_offset + i), | 630 environment->HasUint32ValueAt(env_offset + i), |
631 object_index_pointer, | 631 object_index_pointer, |
632 dematerialized_index_pointer); | 632 dematerialized_index_pointer); |
633 } | 633 } |
634 return; | 634 return; |
635 } | 635 } |
636 | 636 |
637 if (op->IsStackSlot()) { | 637 if (op->IsStackSlot()) { |
| 638 int index = op->index(); |
| 639 if (index >= 0) { |
| 640 index += StandardFrameConstants::kFixedFrameSize / kPointerSize; |
| 641 } |
638 if (is_tagged) { | 642 if (is_tagged) { |
639 translation->StoreStackSlot(op->index()); | 643 translation->StoreStackSlot(index); |
640 } else if (is_uint32) { | 644 } else if (is_uint32) { |
641 translation->StoreUint32StackSlot(op->index()); | 645 translation->StoreUint32StackSlot(index); |
642 } else { | 646 } else { |
643 translation->StoreInt32StackSlot(op->index()); | 647 translation->StoreInt32StackSlot(index); |
644 } | 648 } |
645 } else if (op->IsDoubleStackSlot()) { | 649 } else if (op->IsDoubleStackSlot()) { |
646 translation->StoreDoubleStackSlot(op->index()); | 650 int index = op->index(); |
| 651 if (index >= 0) { |
| 652 index += StandardFrameConstants::kFixedFrameSize / kPointerSize; |
| 653 } |
| 654 translation->StoreDoubleStackSlot(index); |
647 } else if (op->IsRegister()) { | 655 } else if (op->IsRegister()) { |
648 Register reg = ToRegister(op); | 656 Register reg = ToRegister(op); |
649 if (is_tagged) { | 657 if (is_tagged) { |
650 translation->StoreRegister(reg); | 658 translation->StoreRegister(reg); |
651 } else if (is_uint32) { | 659 } else if (is_uint32) { |
652 translation->StoreUint32Register(reg); | 660 translation->StoreUint32Register(reg); |
653 } else { | 661 } else { |
654 translation->StoreInt32Register(reg); | 662 translation->StoreInt32Register(reg); |
655 } | 663 } |
656 } else if (op->IsDoubleRegister()) { | 664 } else if (op->IsDoubleRegister()) { |
(...skipping 5585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6242 __ Push(at, ToRegister(instr->function())); | 6250 __ Push(at, ToRegister(instr->function())); |
6243 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 6251 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
6244 RecordSafepoint(Safepoint::kNoLazyDeopt); | 6252 RecordSafepoint(Safepoint::kNoLazyDeopt); |
6245 } | 6253 } |
6246 | 6254 |
6247 | 6255 |
6248 #undef __ | 6256 #undef __ |
6249 | 6257 |
6250 } // namespace internal | 6258 } // namespace internal |
6251 } // namespace v8 | 6259 } // namespace v8 |
OLD | NEW |