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

Side by Side Diff: src/IceAssemblerX86Base.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/IceAssemblerARM32.cpp ('k') | src/IceAssemblerX86BaseImpl.h » ('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/IceAssemblerX86Base.h - base x86 assembler -*- C++ -*---===// 1 //===- subzero/src/IceAssemblerX86Base.h - base x86 assembler -*- 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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 169
170 Ice::Label *getCfgNodeLabel(SizeT NodeNumber) override; 170 Ice::Label *getCfgNodeLabel(SizeT NodeNumber) override;
171 void bindCfgNodeLabel(const CfgNode *Node) override; 171 void bindCfgNodeLabel(const CfgNode *Node) override;
172 Label *getOrCreateCfgNodeLabel(SizeT Number); 172 Label *getOrCreateCfgNodeLabel(SizeT Number);
173 Label *getOrCreateLocalLabel(SizeT Number); 173 Label *getOrCreateLocalLabel(SizeT Number);
174 void bindLocalLabel(SizeT Number); 174 void bindLocalLabel(SizeT Number);
175 175
176 bool fixupIsPCRel(FixupKind Kind) const override { 176 bool fixupIsPCRel(FixupKind Kind) const override {
177 // Currently assuming this is the only PC-rel relocation type used. 177 // Currently assuming this is the only PC-rel relocation type used.
178 // TODO(jpp): Traits.PcRelTypes.count(Kind) != 0 178 // TODO(jpp): Traits.PcRelTypes.count(Kind) != 0
179 return Kind == Traits::PcRelFixup; 179 return Kind == Traits::FK_PcRel;
180 } 180 }
181 181
182 // Operations to emit GPR instructions (and dispatch on operand type). 182 // Operations to emit GPR instructions (and dispatch on operand type).
183 using TypedEmitGPR = void (AssemblerX86Base::*)(Type, GPRRegister); 183 using TypedEmitGPR = void (AssemblerX86Base::*)(Type, GPRRegister);
184 using TypedEmitAddr = void (AssemblerX86Base::*)(Type, const Address &); 184 using TypedEmitAddr = void (AssemblerX86Base::*)(Type, const Address &);
185 struct GPREmitterOneOp { 185 struct GPREmitterOneOp {
186 TypedEmitGPR Reg; 186 TypedEmitGPR Reg;
187 TypedEmitAddr Addr; 187 TypedEmitAddr Addr;
188 }; 188 };
189 189
(...skipping 719 matching lines...) Expand 10 before | Expand all | Expand 10 after
909 emitUint8(0x66); 909 emitUint8(0x66);
910 } 910 }
911 911
912 } // end of namespace X86NAMESPACE 912 } // end of namespace X86NAMESPACE
913 913
914 } // end of namespace Ice 914 } // end of namespace Ice
915 915
916 #include "IceAssemblerX86BaseImpl.h" 916 #include "IceAssemblerX86BaseImpl.h"
917 917
918 #endif // SUBZERO_SRC_ICEASSEMBLERX86BASE_H 918 #endif // SUBZERO_SRC_ICEASSEMBLERX86BASE_H
OLDNEW
« no previous file with comments | « src/IceAssemblerARM32.cpp ('k') | src/IceAssemblerX86BaseImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698