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

Side by Side Diff: src/arm/lithium-codegen-arm.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 #include "src/arm/lithium-codegen-arm.h" 7 #include "src/arm/lithium-codegen-arm.h"
8 #include "src/arm/lithium-gap-resolver-arm.h" 8 #include "src/arm/lithium-gap-resolver-arm.h"
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 631 matching lines...) Expand 10 before | Expand all | Expand 10 after
642 value, 642 value,
643 environment->HasTaggedValueAt(env_offset + i), 643 environment->HasTaggedValueAt(env_offset + i),
644 environment->HasUint32ValueAt(env_offset + i), 644 environment->HasUint32ValueAt(env_offset + i),
645 object_index_pointer, 645 object_index_pointer,
646 dematerialized_index_pointer); 646 dematerialized_index_pointer);
647 } 647 }
648 return; 648 return;
649 } 649 }
650 650
651 if (op->IsStackSlot()) { 651 if (op->IsStackSlot()) {
652 int index = op->index();
653 if (index >= 0) {
654 index += StandardFrameConstants::kFixedFrameSize / kPointerSize;
655 }
652 if (is_tagged) { 656 if (is_tagged) {
653 translation->StoreStackSlot(op->index()); 657 translation->StoreStackSlot(index);
654 } else if (is_uint32) { 658 } else if (is_uint32) {
655 translation->StoreUint32StackSlot(op->index()); 659 translation->StoreUint32StackSlot(index);
656 } else { 660 } else {
657 translation->StoreInt32StackSlot(op->index()); 661 translation->StoreInt32StackSlot(index);
658 } 662 }
659 } else if (op->IsDoubleStackSlot()) { 663 } else if (op->IsDoubleStackSlot()) {
660 translation->StoreDoubleStackSlot(op->index()); 664 int index = op->index();
665 if (index >= 0) {
666 index += StandardFrameConstants::kFixedFrameSize / kPointerSize;
667 }
668 translation->StoreDoubleStackSlot(index);
661 } else if (op->IsRegister()) { 669 } else if (op->IsRegister()) {
662 Register reg = ToRegister(op); 670 Register reg = ToRegister(op);
663 if (is_tagged) { 671 if (is_tagged) {
664 translation->StoreRegister(reg); 672 translation->StoreRegister(reg);
665 } else if (is_uint32) { 673 } else if (is_uint32) {
666 translation->StoreUint32Register(reg); 674 translation->StoreUint32Register(reg);
667 } else { 675 } else {
668 translation->StoreInt32Register(reg); 676 translation->StoreInt32Register(reg);
669 } 677 }
670 } else if (op->IsDoubleRegister()) { 678 } else if (op->IsDoubleRegister()) {
(...skipping 5348 matching lines...) Expand 10 before | Expand all | Expand 10 after
6019 __ push(ToRegister(instr->function())); 6027 __ push(ToRegister(instr->function()));
6020 CallRuntime(Runtime::kPushBlockContext, 2, instr); 6028 CallRuntime(Runtime::kPushBlockContext, 2, instr);
6021 RecordSafepoint(Safepoint::kNoLazyDeopt); 6029 RecordSafepoint(Safepoint::kNoLazyDeopt);
6022 } 6030 }
6023 6031
6024 6032
6025 #undef __ 6033 #undef __
6026 6034
6027 } // namespace internal 6035 } // namespace internal
6028 } // namespace v8 6036 } // namespace v8
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | src/arm64/lithium-codegen-arm64.cc » ('j') | src/compiler/frame.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698