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

Side by Side Diff: src/IceAssembler.h

Issue 1665263003: Subzero. ARM32. Nonsfi. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Addresses comments. 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 | « runtime/szrt_asm_arm32.s ('k') | src/IceAssembler.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/IceAssembler.h - Integrated assembler --------*- C++ -*-===// 1 //===- subzero/src/IceAssembler.h - Integrated assembler --------*- C++ -*-===//
2 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 2 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
3 // for details. All rights reserved. Use of this source code is governed by a 3 // for details. All rights reserved. Use of this source code is governed by a
4 // BSD-style license that can be found in the LICENSE file. 4 // BSD-style license that can be found in the LICENSE file.
5 // 5 //
6 // Modified by the Subzero authors. 6 // Modified by the Subzero authors.
7 // 7 //
8 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===//
9 // 9 //
10 // The Subzero Code Generator 10 // The Subzero Code Generator
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 304
305 AssemblerFixup *createFixup(FixupKind Kind, const Constant *Value) { 305 AssemblerFixup *createFixup(FixupKind Kind, const Constant *Value) {
306 return Buffer.createFixup(Kind, Value); 306 return Buffer.createFixup(Kind, Value);
307 } 307 }
308 308
309 AssemblerTextFixup *createTextFixup(const std::string &Text, 309 AssemblerTextFixup *createTextFixup(const std::string &Text,
310 size_t BytesUsed) { 310 size_t BytesUsed) {
311 return Buffer.createTextFixup(Text, BytesUsed); 311 return Buffer.createTextFixup(Text, BytesUsed);
312 } 312 }
313 313
314 void bindRelocOffset(RelocOffset *Offset);
315
314 void setNeedsTextFixup() { Buffer.setNeedsTextFixup(); } 316 void setNeedsTextFixup() { Buffer.setNeedsTextFixup(); }
315 void resetNeedsTextFixup() { Buffer.resetNeedsTextFixup(); } 317 void resetNeedsTextFixup() { Buffer.resetNeedsTextFixup(); }
316 318
317 bool needsTextFixup() const { return Buffer.needsTextFixup(); } 319 bool needsTextFixup() const { return Buffer.needsTextFixup(); }
318 320
319 void emitIASBytes(GlobalContext *Ctx) const; 321 void emitIASBytes(GlobalContext *Ctx) const;
320 bool getInternal() const { return IsInternal; } 322 bool getInternal() const { return IsInternal; }
321 void setInternal(bool Internal) { IsInternal = Internal; } 323 void setInternal(bool Internal) { IsInternal = Internal; }
322 const IceString &getFunctionName() { return FunctionName; } 324 const IceString &getFunctionName() { return FunctionName; }
323 void setFunctionName(const IceString &NewName) { FunctionName = NewName; } 325 void setFunctionName(const IceString &NewName) { FunctionName = NewName; }
(...skipping 30 matching lines...) Expand all
354 protected: 356 protected:
355 // Buffer's constructor uses the Allocator, so it needs to appear after it. 357 // Buffer's constructor uses the Allocator, so it needs to appear after it.
356 // TODO(jpp): dependencies on construction order are a nice way of shooting 358 // TODO(jpp): dependencies on construction order are a nice way of shooting
357 // yourself in the foot. Fix this. 359 // yourself in the foot. Fix this.
358 AssemblerBuffer Buffer; 360 AssemblerBuffer Buffer;
359 }; 361 };
360 362
361 } // end of namespace Ice 363 } // end of namespace Ice
362 364
363 #endif // SUBZERO_SRC_ICEASSEMBLER_H_ 365 #endif // SUBZERO_SRC_ICEASSEMBLER_H_
OLDNEW
« no previous file with comments | « runtime/szrt_asm_arm32.s ('k') | src/IceAssembler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698