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

Side by Side Diff: src/IceFixups.h

Issue 1506653002: Subzero: Add Non-SFI support for x86-32. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Code review changes Created 4 years, 11 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/IceELFSection.h ('k') | src/IceFixups.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/IceFixups.h - Assembler fixup kinds ----------*- C++ -*-===// 1 //===- subzero/src/IceFixups.h - Assembler fixup kinds ----------*- C++ -*-===//
2 // 2 //
3 // The Subzero Code Generator 3 // The Subzero Code Generator
4 // 4 //
5 // This file is distributed under the University of Illinois Open Source 5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details. 6 // License. See LICENSE.TXT for details.
7 // 7 //
8 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===//
9 /// 9 ///
10 /// \file 10 /// \file
(...skipping 26 matching lines...) Expand all
37 } 37 }
38 void set_position(intptr_t Position) { 38 void set_position(intptr_t Position) {
39 position_ = Position; 39 position_ = Position;
40 position_was_set_ = true; 40 position_was_set_ = true;
41 } 41 }
42 42
43 FixupKind kind() const { return kind_; } 43 FixupKind kind() const { return kind_; }
44 void set_kind(FixupKind Kind) { kind_ = Kind; } 44 void set_kind(FixupKind Kind) { kind_ = Kind; }
45 45
46 RelocOffsetT offset() const; 46 RelocOffsetT offset() const;
47 IceString symbol(const GlobalContext *Ctx) const; 47 IceString symbol(const GlobalContext *Ctx, const Assembler *Asm) const;
48 48
49 static const Constant *NullSymbol; 49 static const Constant *NullSymbol;
50 bool isNullSymbol() const { return value_ == NullSymbol; } 50 bool isNullSymbol() const { return value_ == NullSymbol; }
51 51
52 static constexpr AssemblerFixup *NoFixup = nullptr; 52 static constexpr AssemblerFixup *NoFixup = nullptr;
53 53
54 void set_value(const Constant *Value) { value_ = Value; } 54 void set_value(const Constant *Value) { value_ = Value; }
55 55
56 /// Emits fixup, then returns the number of bytes to skip. 56 /// Emits fixup, then returns the number of bytes to skip.
57 virtual size_t emit(GlobalContext *Ctx, const Assembler &Asm) const; 57 virtual size_t emit(GlobalContext *Ctx, const Assembler &Asm) const;
(...skipping 23 matching lines...) Expand all
81 const std::string Message; 81 const std::string Message;
82 const size_t NumBytes; 82 const size_t NumBytes;
83 }; 83 };
84 84
85 using FixupList = std::vector<AssemblerFixup>; 85 using FixupList = std::vector<AssemblerFixup>;
86 using FixupRefList = std::vector<AssemblerFixup *>; 86 using FixupRefList = std::vector<AssemblerFixup *>;
87 87
88 } // end of namespace Ice 88 } // end of namespace Ice
89 89
90 #endif // SUBZERO_SRC_ICEFIXUPS_H 90 #endif // SUBZERO_SRC_ICEFIXUPS_H
OLDNEW
« no previous file with comments | « src/IceELFSection.h ('k') | src/IceFixups.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698