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

Side by Side Diff: src/IceAssemblerARM32.h

Issue 1472623002: Unify alloca, outgoing arg, and prolog construction (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Code review fixes. Also removed StackAdjustment. Created 5 years 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 | « no previous file | src/IceAssemblerARM32.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 //===- subzero/src/IceAssemblerARM32.h - Assembler for ARM32 ----*- C++ -*-===// 1 //===- subzero/src/IceAssemblerARM32.h - Assembler for ARM32 ----*- C++ -*-===//
2 // 2 //
3 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 3 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
4 // for details. All rights reserved. Use of this source code is governed by a 4 // for details. All rights reserved. Use of this source code is governed by a
5 // BSD-style license that can be found in the LICENSE file. 5 // BSD-style license that can be found in the LICENSE file.
6 // 6 //
7 // Modified by the Subzero authors. 7 // Modified by the Subzero authors.
8 // 8 //
9 //===----------------------------------------------------------------------===// 9 //===----------------------------------------------------------------------===//
10 // 10 //
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 kRotate8, // ror #8 75 kRotate8, // ror #8
76 kRotate16, // ror #16 76 kRotate16, // ror #16
77 kRotate24 // ror #24 77 kRotate24 // ror #24
78 }; 78 };
79 79
80 class TargetInfo { 80 class TargetInfo {
81 TargetInfo(const TargetInfo &) = delete; 81 TargetInfo(const TargetInfo &) = delete;
82 TargetInfo &operator=(const TargetInfo &) = delete; 82 TargetInfo &operator=(const TargetInfo &) = delete;
83 83
84 public: 84 public:
85 TargetInfo(bool HasFramePointer, SizeT FrameOrStackReg, 85 TargetInfo(bool HasFramePointer, SizeT FrameOrStackReg)
86 int32_t StackAdjustment) 86 : HasFramePointer(HasFramePointer), FrameOrStackReg(FrameOrStackReg) {}
87 : HasFramePointer(HasFramePointer), FrameOrStackReg(FrameOrStackReg),
88 StackAdjustment(StackAdjustment) {}
89 explicit TargetInfo(const TargetLowering *Target) 87 explicit TargetInfo(const TargetLowering *Target)
90 : HasFramePointer(Target->hasFramePointer()), 88 : HasFramePointer(Target->hasFramePointer()),
91 FrameOrStackReg(Target->getFrameOrStackReg()), 89 FrameOrStackReg(Target->getFrameOrStackReg()) {}
92 StackAdjustment(Target->getStackAdjustment()) {}
93 const bool HasFramePointer; 90 const bool HasFramePointer;
94 const SizeT FrameOrStackReg; 91 const SizeT FrameOrStackReg;
95 const int32_t StackAdjustment;
96 }; 92 };
97 93
98 explicit AssemblerARM32(bool use_far_branches = false) 94 explicit AssemblerARM32(bool use_far_branches = false)
99 : Assembler(Asm_ARM32) { 95 : Assembler(Asm_ARM32) {
100 // TODO(kschimpf): Add mode if needed when branches are handled. 96 // TODO(kschimpf): Add mode if needed when branches are handled.
101 (void)use_far_branches; 97 (void)use_far_branches;
102 } 98 }
103 ~AssemblerARM32() override { 99 ~AssemblerARM32() override {
104 if (BuildDefs::asserts()) { 100 if (BuildDefs::asserts()) {
105 for (const Label *Label : CfgNodeLabels) { 101 for (const Label *Label : CfgNodeLabels) {
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 // cccc=Cond, xxxxxxx<<21=Opcode, dddd=Rd, s=SetFlags, and 384 // cccc=Cond, xxxxxxx<<21=Opcode, dddd=Rd, s=SetFlags, and
389 // iiiiiiiiiiiiiiii=Imm16. 385 // iiiiiiiiiiiiiiii=Imm16.
390 void emitMovw(IValueT Opcode, IValueT Rd, IValueT Imm16, bool SetFlags, 386 void emitMovw(IValueT Opcode, IValueT Rd, IValueT Imm16, bool SetFlags,
391 CondARM32::Cond Cond); 387 CondARM32::Cond Cond);
392 }; 388 };
393 389
394 } // end of namespace ARM32 390 } // end of namespace ARM32
395 } // end of namespace Ice 391 } // end of namespace Ice
396 392
397 #endif // SUBZERO_SRC_ICEASSEMBLERARM32_H 393 #endif // SUBZERO_SRC_ICEASSEMBLERARM32_H
OLDNEW
« no previous file with comments | « no previous file | src/IceAssemblerARM32.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698