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

Side by Side Diff: src/compiler/arm64/code-generator-arm64.cc

Issue 1695313002: [turbofan] Add an operator to access the parent frame pointer (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 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/compiler/arm/code-generator-arm.cc ('k') | src/compiler/code-stub-assembler.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/compiler/code-generator.h" 5 #include "src/compiler/code-generator.h"
6 6
7 #include "src/arm64/frames-arm64.h" 7 #include "src/arm64/frames-arm64.h"
8 #include "src/arm64/macro-assembler-arm64.h" 8 #include "src/arm64/macro-assembler-arm64.h"
9 #include "src/ast/scopes.h" 9 #include "src/ast/scopes.h"
10 #include "src/compiler/code-generator-impl.h" 10 #include "src/compiler/code-generator-impl.h"
(...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after
619 } 619 }
620 case kArchRet: 620 case kArchRet:
621 AssembleReturn(); 621 AssembleReturn();
622 break; 622 break;
623 case kArchStackPointer: 623 case kArchStackPointer:
624 __ mov(i.OutputRegister(), masm()->StackPointer()); 624 __ mov(i.OutputRegister(), masm()->StackPointer());
625 break; 625 break;
626 case kArchFramePointer: 626 case kArchFramePointer:
627 __ mov(i.OutputRegister(), fp); 627 __ mov(i.OutputRegister(), fp);
628 break; 628 break;
629 case kArchParentFramePointer:
630 if (frame_access_state()->frame()->needs_frame()) {
631 __ ldr(i.OutputRegister(), MemOperand(fp, 0));
632 } else {
633 __ mov(i.OutputRegister(), fp);
634 }
635 break;
629 case kArchTruncateDoubleToI: 636 case kArchTruncateDoubleToI:
630 __ TruncateDoubleToI(i.OutputRegister(), i.InputDoubleRegister(0)); 637 __ TruncateDoubleToI(i.OutputRegister(), i.InputDoubleRegister(0));
631 break; 638 break;
632 case kArchStoreWithWriteBarrier: { 639 case kArchStoreWithWriteBarrier: {
633 RecordWriteMode mode = 640 RecordWriteMode mode =
634 static_cast<RecordWriteMode>(MiscField::decode(instr->opcode())); 641 static_cast<RecordWriteMode>(MiscField::decode(instr->opcode()));
635 AddressingMode addressing_mode = 642 AddressingMode addressing_mode =
636 AddressingModeField::decode(instr->opcode()); 643 AddressingModeField::decode(instr->opcode());
637 Register object = i.InputRegister(0); 644 Register object = i.InputRegister(0);
638 Operand index(0); 645 Operand index(0);
(...skipping 1072 matching lines...) Expand 10 before | Expand all | Expand 10 after
1711 padding_size -= kInstructionSize; 1718 padding_size -= kInstructionSize;
1712 } 1719 }
1713 } 1720 }
1714 } 1721 }
1715 1722
1716 #undef __ 1723 #undef __
1717 1724
1718 } // namespace compiler 1725 } // namespace compiler
1719 } // namespace internal 1726 } // namespace internal
1720 } // namespace v8 1727 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/arm/code-generator-arm.cc ('k') | src/compiler/code-stub-assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698