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

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: 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/code-factory.h" 7 #include "src/code-factory.h"
8 #include "src/code-stubs.h" 8 #include "src/code-stubs.h"
9 #include "src/cpu-profiler.h" 9 #include "src/cpu-profiler.h"
10 #include "src/hydrogen-osr.h" 10 #include "src/hydrogen-osr.h"
(...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after
628 value, 628 value,
629 environment->HasTaggedValueAt(env_offset + i), 629 environment->HasTaggedValueAt(env_offset + i),
630 environment->HasUint32ValueAt(env_offset + i), 630 environment->HasUint32ValueAt(env_offset + i),
631 object_index_pointer, 631 object_index_pointer,
632 dematerialized_index_pointer); 632 dematerialized_index_pointer);
633 } 633 }
634 return; 634 return;
635 } 635 }
636 636
637 if (op->IsStackSlot()) { 637 if (op->IsStackSlot()) {
638 int index = op->index();
639 if (index >= 0) {
640 index += StandardFrameConstants::kFixedFrameSize / kPointerSize;
641 }
638 if (is_tagged) { 642 if (is_tagged) {
639 translation->StoreStackSlot(op->index()); 643 translation->StoreStackSlot(index);
640 } else if (is_uint32) { 644 } else if (is_uint32) {
641 translation->StoreUint32StackSlot(op->index()); 645 translation->StoreUint32StackSlot(index);
642 } else { 646 } else {
643 translation->StoreInt32StackSlot(op->index()); 647 translation->StoreInt32StackSlot(index);
644 } 648 }
645 } else if (op->IsDoubleStackSlot()) { 649 } else if (op->IsDoubleStackSlot()) {
646 translation->StoreDoubleStackSlot(op->index()); 650 int index = op->index();
651 if (index >= 0) {
652 index += StandardFrameConstants::kFixedFrameSize / kPointerSize;
653 }
654 translation->StoreDoubleStackSlot(index);
647 } else if (op->IsRegister()) { 655 } else if (op->IsRegister()) {
648 Register reg = ToRegister(op); 656 Register reg = ToRegister(op);
649 if (is_tagged) { 657 if (is_tagged) {
650 translation->StoreRegister(reg); 658 translation->StoreRegister(reg);
651 } else if (is_uint32) { 659 } else if (is_uint32) {
652 translation->StoreUint32Register(reg); 660 translation->StoreUint32Register(reg);
653 } else { 661 } else {
654 translation->StoreInt32Register(reg); 662 translation->StoreInt32Register(reg);
655 } 663 }
656 } else if (op->IsDoubleRegister()) { 664 } else if (op->IsDoubleRegister()) {
(...skipping 5585 matching lines...) Expand 10 before | Expand all | Expand 10 after
6242 __ Push(at, ToRegister(instr->function())); 6250 __ Push(at, ToRegister(instr->function()));
6243 CallRuntime(Runtime::kPushBlockContext, 2, instr); 6251 CallRuntime(Runtime::kPushBlockContext, 2, instr);
6244 RecordSafepoint(Safepoint::kNoLazyDeopt); 6252 RecordSafepoint(Safepoint::kNoLazyDeopt);
6245 } 6253 }
6246 6254
6247 6255
6248 #undef __ 6256 #undef __
6249 6257
6250 } // namespace internal 6258 } // namespace internal
6251 } // namespace v8 6259 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698