Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: src/ia32/lithium-codegen-ia32.cc

Issue 1261923007: [turbofan] Unify referencing of stack slots (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Final tweaks Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 #if V8_TARGET_ARCH_IA32 7 #if V8_TARGET_ARCH_IA32
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 657 matching lines...) Expand 10 before | Expand all | Expand 10 after
668 value, 668 value,
669 environment->HasTaggedValueAt(env_offset + i), 669 environment->HasTaggedValueAt(env_offset + i),
670 environment->HasUint32ValueAt(env_offset + i), 670 environment->HasUint32ValueAt(env_offset + i),
671 object_index_pointer, 671 object_index_pointer,
672 dematerialized_index_pointer); 672 dematerialized_index_pointer);
673 } 673 }
674 return; 674 return;
675 } 675 }
676 676
677 if (op->IsStackSlot()) { 677 if (op->IsStackSlot()) {
678 int index = op->index();
679 if (index >= 0) {
680 index += StandardFrameConstants::kFixedFrameSize / kPointerSize;
681 }
678 if (is_tagged) { 682 if (is_tagged) {
679 translation->StoreStackSlot(op->index()); 683 translation->StoreStackSlot(index);
680 } else if (is_uint32) { 684 } else if (is_uint32) {
681 translation->StoreUint32StackSlot(op->index()); 685 translation->StoreUint32StackSlot(index);
682 } else { 686 } else {
683 translation->StoreInt32StackSlot(op->index()); 687 translation->StoreInt32StackSlot(index);
684 } 688 }
685 } else if (op->IsDoubleStackSlot()) { 689 } else if (op->IsDoubleStackSlot()) {
686 translation->StoreDoubleStackSlot(op->index()); 690 int index = op->index();
691 if (index >= 0) {
692 index += StandardFrameConstants::kFixedFrameSize / kPointerSize;
693 }
694 translation->StoreDoubleStackSlot(index);
687 } else if (op->IsRegister()) { 695 } else if (op->IsRegister()) {
688 Register reg = ToRegister(op); 696 Register reg = ToRegister(op);
689 if (is_tagged) { 697 if (is_tagged) {
690 translation->StoreRegister(reg); 698 translation->StoreRegister(reg);
691 } else if (is_uint32) { 699 } else if (is_uint32) {
692 translation->StoreUint32Register(reg); 700 translation->StoreUint32Register(reg);
693 } else { 701 } else {
694 translation->StoreInt32Register(reg); 702 translation->StoreInt32Register(reg);
695 } 703 }
696 } else if (op->IsDoubleRegister()) { 704 } else if (op->IsDoubleRegister()) {
(...skipping 5149 matching lines...) Expand 10 before | Expand all | Expand 10 after
5846 RecordSafepoint(Safepoint::kNoLazyDeopt); 5854 RecordSafepoint(Safepoint::kNoLazyDeopt);
5847 } 5855 }
5848 5856
5849 5857
5850 #undef __ 5858 #undef __
5851 5859
5852 } // namespace internal 5860 } // namespace internal
5853 } // namespace v8 5861 } // namespace v8
5854 5862
5855 #endif // V8_TARGET_ARCH_IA32 5863 #endif // V8_TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698