OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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/base/bits.h" | 5 #include "src/base/bits.h" |
6 #include "src/code-factory.h" | 6 #include "src/code-factory.h" |
7 #include "src/code-stubs.h" | 7 #include "src/code-stubs.h" |
8 #include "src/cpu-profiler.h" | 8 #include "src/cpu-profiler.h" |
9 #include "src/hydrogen-osr.h" | 9 #include "src/hydrogen-osr.h" |
10 #include "src/ic/ic.h" | 10 #include "src/ic/ic.h" |
(...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
605 LOperand* value = environment->values()->at(env_offset + i); | 605 LOperand* value = environment->values()->at(env_offset + i); |
606 AddToTranslation(environment, translation, value, | 606 AddToTranslation(environment, translation, value, |
607 environment->HasTaggedValueAt(env_offset + i), | 607 environment->HasTaggedValueAt(env_offset + i), |
608 environment->HasUint32ValueAt(env_offset + i), | 608 environment->HasUint32ValueAt(env_offset + i), |
609 object_index_pointer, dematerialized_index_pointer); | 609 object_index_pointer, dematerialized_index_pointer); |
610 } | 610 } |
611 return; | 611 return; |
612 } | 612 } |
613 | 613 |
614 if (op->IsStackSlot()) { | 614 if (op->IsStackSlot()) { |
| 615 int index = op->index(); |
| 616 if (index >= 0) { |
| 617 index += StandardFrameConstants::kFixedFrameSize / kPointerSize; |
| 618 } |
615 if (is_tagged) { | 619 if (is_tagged) { |
616 translation->StoreStackSlot(op->index()); | 620 translation->StoreStackSlot(index); |
617 } else if (is_uint32) { | 621 } else if (is_uint32) { |
618 translation->StoreUint32StackSlot(op->index()); | 622 translation->StoreUint32StackSlot(index); |
619 } else { | 623 } else { |
620 translation->StoreInt32StackSlot(op->index()); | 624 translation->StoreInt32StackSlot(index); |
621 } | 625 } |
622 } else if (op->IsDoubleStackSlot()) { | 626 } else if (op->IsDoubleStackSlot()) { |
623 translation->StoreDoubleStackSlot(op->index()); | 627 int index = op->index(); |
| 628 if (index >= 0) { |
| 629 index += StandardFrameConstants::kFixedFrameSize / kPointerSize; |
| 630 } |
| 631 translation->StoreDoubleStackSlot(index); |
624 } else if (op->IsRegister()) { | 632 } else if (op->IsRegister()) { |
625 Register reg = ToRegister(op); | 633 Register reg = ToRegister(op); |
626 if (is_tagged) { | 634 if (is_tagged) { |
627 translation->StoreRegister(reg); | 635 translation->StoreRegister(reg); |
628 } else if (is_uint32) { | 636 } else if (is_uint32) { |
629 translation->StoreUint32Register(reg); | 637 translation->StoreUint32Register(reg); |
630 } else { | 638 } else { |
631 translation->StoreInt32Register(reg); | 639 translation->StoreInt32Register(reg); |
632 } | 640 } |
633 } else if (op->IsDoubleRegister()) { | 641 } else if (op->IsDoubleRegister()) { |
(...skipping 5623 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6257 __ Push(scope_info); | 6265 __ Push(scope_info); |
6258 __ push(ToRegister(instr->function())); | 6266 __ push(ToRegister(instr->function())); |
6259 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 6267 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
6260 RecordSafepoint(Safepoint::kNoLazyDeopt); | 6268 RecordSafepoint(Safepoint::kNoLazyDeopt); |
6261 } | 6269 } |
6262 | 6270 |
6263 | 6271 |
6264 #undef __ | 6272 #undef __ |
6265 } // namespace internal | 6273 } // namespace internal |
6266 } // namespace v8 | 6274 } // namespace v8 |
OLD | NEW |