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

Side by Side Diff: src/x64/lithium-codegen-x64.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/mips64/lithium-codegen-mips64.cc ('k') | tools/gyp/v8.gyp » ('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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 #if V8_TARGET_ARCH_X64 5 #if V8_TARGET_ARCH_X64
6 6
7 #include "src/base/bits.h" 7 #include "src/base/bits.h"
8 #include "src/code-factory.h" 8 #include "src/code-factory.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/cpu-profiler.h" 10 #include "src/cpu-profiler.h"
(...skipping 574 matching lines...) Expand 10 before | Expand all | Expand 10 after
585 value, 585 value,
586 environment->HasTaggedValueAt(env_offset + i), 586 environment->HasTaggedValueAt(env_offset + i),
587 environment->HasUint32ValueAt(env_offset + i), 587 environment->HasUint32ValueAt(env_offset + i),
588 object_index_pointer, 588 object_index_pointer,
589 dematerialized_index_pointer); 589 dematerialized_index_pointer);
590 } 590 }
591 return; 591 return;
592 } 592 }
593 593
594 if (op->IsStackSlot()) { 594 if (op->IsStackSlot()) {
595 int index = op->index();
596 if (index >= 0) {
597 index += StandardFrameConstants::kFixedFrameSize / kPointerSize;
598 }
595 if (is_tagged) { 599 if (is_tagged) {
596 translation->StoreStackSlot(op->index()); 600 translation->StoreStackSlot(index);
597 } else if (is_uint32) { 601 } else if (is_uint32) {
598 translation->StoreUint32StackSlot(op->index()); 602 translation->StoreUint32StackSlot(index);
599 } else { 603 } else {
600 translation->StoreInt32StackSlot(op->index()); 604 translation->StoreInt32StackSlot(index);
601 } 605 }
602 } else if (op->IsDoubleStackSlot()) { 606 } else if (op->IsDoubleStackSlot()) {
603 translation->StoreDoubleStackSlot(op->index()); 607 int index = op->index();
608 if (index >= 0) {
609 index += StandardFrameConstants::kFixedFrameSize / kPointerSize;
610 }
611 translation->StoreDoubleStackSlot(index);
604 } else if (op->IsRegister()) { 612 } else if (op->IsRegister()) {
605 Register reg = ToRegister(op); 613 Register reg = ToRegister(op);
606 if (is_tagged) { 614 if (is_tagged) {
607 translation->StoreRegister(reg); 615 translation->StoreRegister(reg);
608 } else if (is_uint32) { 616 } else if (is_uint32) {
609 translation->StoreUint32Register(reg); 617 translation->StoreUint32Register(reg);
610 } else { 618 } else {
611 translation->StoreInt32Register(reg); 619 translation->StoreInt32Register(reg);
612 } 620 }
613 } else if (op->IsDoubleRegister()) { 621 } else if (op->IsDoubleRegister()) {
(...skipping 5433 matching lines...) Expand 10 before | Expand all | Expand 10 after
6047 RecordSafepoint(Safepoint::kNoLazyDeopt); 6055 RecordSafepoint(Safepoint::kNoLazyDeopt);
6048 } 6056 }
6049 6057
6050 6058
6051 #undef __ 6059 #undef __
6052 6060
6053 } // namespace internal 6061 } // namespace internal
6054 } // namespace v8 6062 } // namespace v8
6055 6063
6056 #endif // V8_TARGET_ARCH_X64 6064 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/mips64/lithium-codegen-mips64.cc ('k') | tools/gyp/v8.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698