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

Side by Side Diff: src/IceAssemblerARM32.h

Issue 1838753002: Subzero: Remove IceString. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Code review changes Created 4 years, 8 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/IceAssembler.h ('k') | 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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 145
146 Label *getOrCreateLocalLabel(SizeT Number) { 146 Label *getOrCreateLocalLabel(SizeT Number) {
147 return getOrCreateLabel(Number, LocalLabels); 147 return getOrCreateLabel(Number, LocalLabels);
148 } 148 }
149 149
150 void bindLocalLabel(const Cfg *Func, const InstARM32Label *InstL, 150 void bindLocalLabel(const Cfg *Func, const InstARM32Label *InstL,
151 SizeT Number) { 151 SizeT Number) {
152 if (BuildDefs::dump() && 152 if (BuildDefs::dump() &&
153 !Func->getContext()->getFlags().getDisableHybridAssembly()) { 153 !Func->getContext()->getFlags().getDisableHybridAssembly()) {
154 constexpr SizeT InstSize = 0; 154 constexpr SizeT InstSize = 0;
155 emitTextInst(InstL->getName(Func) + ":", InstSize); 155 emitTextInst(InstL->getLabelName() + ":", InstSize);
156 } 156 }
157 Label *L = getOrCreateLocalLabel(Number); 157 Label *L = getOrCreateLocalLabel(Number);
158 if (!getPreliminary()) 158 if (!getPreliminary())
159 this->bind(L); 159 this->bind(L);
160 } 160 }
161 161
162 bool fixupIsPCRel(FixupKind Kind) const override { 162 bool fixupIsPCRel(FixupKind Kind) const override {
163 if (Kind == llvm::ELF::R_ARM_MOVW_PREL_NC) 163 if (Kind == llvm::ELF::R_ARM_MOVW_PREL_NC)
164 return true; 164 return true;
165 if (Kind == llvm::ELF::R_ARM_MOVT_PREL) 165 if (Kind == llvm::ELF::R_ARM_MOVT_PREL)
(...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after
760 760
761 void emitVFPsss(CondARM32::Cond Cond, IValueT Opcode, const Operand *OpSd, 761 void emitVFPsss(CondARM32::Cond Cond, IValueT Opcode, const Operand *OpSd,
762 const Operand *OpSn, const Operand *OpSm, 762 const Operand *OpSn, const Operand *OpSm,
763 const char *InstName); 763 const char *InstName);
764 }; 764 };
765 765
766 } // end of namespace ARM32 766 } // end of namespace ARM32
767 } // end of namespace Ice 767 } // end of namespace Ice
768 768
769 #endif // SUBZERO_SRC_ICEASSEMBLERARM32_H 769 #endif // SUBZERO_SRC_ICEASSEMBLERARM32_H
OLDNEW
« no previous file with comments | « src/IceAssembler.h ('k') | src/IceAssemblerARM32.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698