| 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 627 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 638 value, | 638 value, |
| 639 environment->HasTaggedValueAt(env_offset + i), | 639 environment->HasTaggedValueAt(env_offset + i), |
| 640 environment->HasUint32ValueAt(env_offset + i), | 640 environment->HasUint32ValueAt(env_offset + i), |
| 641 object_index_pointer, | 641 object_index_pointer, |
| 642 dematerialized_index_pointer); | 642 dematerialized_index_pointer); |
| 643 } | 643 } |
| 644 return; | 644 return; |
| 645 } | 645 } |
| 646 | 646 |
| 647 if (op->IsStackSlot()) { | 647 if (op->IsStackSlot()) { |
| 648 int index = op->index(); |
| 649 if (index >= 0) { |
| 650 index += StandardFrameConstants::kFixedFrameSize / kPointerSize; |
| 651 } |
| 648 if (is_tagged) { | 652 if (is_tagged) { |
| 649 translation->StoreStackSlot(op->index()); | 653 translation->StoreStackSlot(index); |
| 650 } else if (is_uint32) { | 654 } else if (is_uint32) { |
| 651 translation->StoreUint32StackSlot(op->index()); | 655 translation->StoreUint32StackSlot(index); |
| 652 } else { | 656 } else { |
| 653 translation->StoreInt32StackSlot(op->index()); | 657 translation->StoreInt32StackSlot(index); |
| 654 } | 658 } |
| 655 } else if (op->IsDoubleStackSlot()) { | 659 } else if (op->IsDoubleStackSlot()) { |
| 656 translation->StoreDoubleStackSlot(op->index()); | 660 int index = op->index(); |
| 661 if (index >= 0) { |
| 662 index += StandardFrameConstants::kFixedFrameSize / kPointerSize; |
| 663 } |
| 664 translation->StoreDoubleStackSlot(index); |
| 657 } else if (op->IsRegister()) { | 665 } else if (op->IsRegister()) { |
| 658 Register reg = ToRegister(op); | 666 Register reg = ToRegister(op); |
| 659 if (is_tagged) { | 667 if (is_tagged) { |
| 660 translation->StoreRegister(reg); | 668 translation->StoreRegister(reg); |
| 661 } else if (is_uint32) { | 669 } else if (is_uint32) { |
| 662 translation->StoreUint32Register(reg); | 670 translation->StoreUint32Register(reg); |
| 663 } else { | 671 } else { |
| 664 translation->StoreInt32Register(reg); | 672 translation->StoreInt32Register(reg); |
| 665 } | 673 } |
| 666 } else if (op->IsDoubleRegister()) { | 674 } else if (op->IsDoubleRegister()) { |
| (...skipping 5390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6057 __ Push(at, ToRegister(instr->function())); | 6065 __ Push(at, ToRegister(instr->function())); |
| 6058 CallRuntime(Runtime::kPushBlockContext, 2, instr); | 6066 CallRuntime(Runtime::kPushBlockContext, 2, instr); |
| 6059 RecordSafepoint(Safepoint::kNoLazyDeopt); | 6067 RecordSafepoint(Safepoint::kNoLazyDeopt); |
| 6060 } | 6068 } |
| 6061 | 6069 |
| 6062 | 6070 |
| 6063 #undef __ | 6071 #undef __ |
| 6064 | 6072 |
| 6065 } // namespace internal | 6073 } // namespace internal |
| 6066 } // namespace v8 | 6074 } // namespace v8 |
| OLD | NEW |