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/mips64/lithium-codegen-mips64.cc

Issue 1261923007: [turbofan] Unify referencing of stack slots (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Review feedback 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
« no previous file with comments | « src/mips/lithium-codegen-mips.cc ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/code-factory.h" 5 #include "src/code-factory.h"
6 #include "src/code-stubs.h" 6 #include "src/code-stubs.h"
7 #include "src/cpu-profiler.h" 7 #include "src/cpu-profiler.h"
8 #include "src/hydrogen-osr.h" 8 #include "src/hydrogen-osr.h"
9 #include "src/ic/ic.h" 9 #include "src/ic/ic.h"
10 #include "src/ic/stub-cache.h" 10 #include "src/ic/stub-cache.h"
(...skipping 615 matching lines...) Expand 10 before | Expand all | Expand 10 after
626 value, 626 value,
627 environment->HasTaggedValueAt(env_offset + i), 627 environment->HasTaggedValueAt(env_offset + i),
628 environment->HasUint32ValueAt(env_offset + i), 628 environment->HasUint32ValueAt(env_offset + i),
629 object_index_pointer, 629 object_index_pointer,
630 dematerialized_index_pointer); 630 dematerialized_index_pointer);
631 } 631 }
632 return; 632 return;
633 } 633 }
634 634
635 if (op->IsStackSlot()) { 635 if (op->IsStackSlot()) {
636 int index = op->index();
637 if (index >= 0) {
638 index += StandardFrameConstants::kFixedFrameSize / kPointerSize;
639 }
636 if (is_tagged) { 640 if (is_tagged) {
637 translation->StoreStackSlot(op->index()); 641 translation->StoreStackSlot(index);
638 } else if (is_uint32) { 642 } else if (is_uint32) {
639 translation->StoreUint32StackSlot(op->index()); 643 translation->StoreUint32StackSlot(index);
640 } else { 644 } else {
641 translation->StoreInt32StackSlot(op->index()); 645 translation->StoreInt32StackSlot(index);
642 } 646 }
643 } else if (op->IsDoubleStackSlot()) { 647 } else if (op->IsDoubleStackSlot()) {
644 translation->StoreDoubleStackSlot(op->index()); 648 int index = op->index();
649 if (index >= 0) {
650 index += StandardFrameConstants::kFixedFrameSize / kPointerSize;
651 }
652 translation->StoreDoubleStackSlot(index);
645 } else if (op->IsRegister()) { 653 } else if (op->IsRegister()) {
646 Register reg = ToRegister(op); 654 Register reg = ToRegister(op);
647 if (is_tagged) { 655 if (is_tagged) {
648 translation->StoreRegister(reg); 656 translation->StoreRegister(reg);
649 } else if (is_uint32) { 657 } else if (is_uint32) {
650 translation->StoreUint32Register(reg); 658 translation->StoreUint32Register(reg);
651 } else { 659 } else {
652 translation->StoreInt32Register(reg); 660 translation->StoreInt32Register(reg);
653 } 661 }
654 } else if (op->IsDoubleRegister()) { 662 } else if (op->IsDoubleRegister()) {
(...skipping 5585 matching lines...) Expand 10 before | Expand all | Expand 10 after
6240 __ Push(at, ToRegister(instr->function())); 6248 __ Push(at, ToRegister(instr->function()));
6241 CallRuntime(Runtime::kPushBlockContext, 2, instr); 6249 CallRuntime(Runtime::kPushBlockContext, 2, instr);
6242 RecordSafepoint(Safepoint::kNoLazyDeopt); 6250 RecordSafepoint(Safepoint::kNoLazyDeopt);
6243 } 6251 }
6244 6252
6245 6253
6246 #undef __ 6254 #undef __
6247 6255
6248 } // namespace internal 6256 } // namespace internal
6249 } // namespace v8 6257 } // namespace v8
OLDNEW
« no previous file with comments | « src/mips/lithium-codegen-mips.cc ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698