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

Side by Side Diff: src/assembler_ia32.h

Issue 613483002: Change some explicit type checks into using helper functions. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: rename Created 6 years, 2 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
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 // 4 //
5 // Modified by the Subzero authors. 5 // Modified by the Subzero authors.
6 // 6 //
7 //===- subzero/src/assembler_ia32.h - Assembler for x86-32 ----------------===// 7 //===- subzero/src/assembler_ia32.h - Assembler for x86-32 ----------------===//
8 // 8 //
9 // The Subzero Code Generator 9 // The Subzero Code Generator
10 // 10 //
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 enum ScaleFactor { TIMES_1 = 0, TIMES_2 = 1, TIMES_4 = 2, TIMES_8 = 3 }; 44 enum ScaleFactor { TIMES_1 = 0, TIMES_2 = 1, TIMES_4 = 2, TIMES_8 = 3 };
45 45
46 class DisplacementRelocation : public AssemblerFixup { 46 class DisplacementRelocation : public AssemblerFixup {
47 public: 47 public:
48 static DisplacementRelocation *create(Assembler *Asm, FixupKind Kind, 48 static DisplacementRelocation *create(Assembler *Asm, FixupKind Kind,
49 const ConstantRelocatable *Sym) { 49 const ConstantRelocatable *Sym) {
50 return new (Asm->Allocate<DisplacementRelocation>()) 50 return new (Asm->Allocate<DisplacementRelocation>())
51 DisplacementRelocation(Kind, Sym); 51 DisplacementRelocation(Kind, Sym);
52 } 52 }
53 53
54 void Process(const MemoryRegion &region, intptr_t position) { 54 void Process(const MemoryRegion &region, intptr_t position) override {
55 (void)region; 55 (void)region;
56 (void)position; 56 (void)position;
57 llvm_unreachable("We might not be using this Process() method later."); 57 llvm_unreachable("We might not be using this Process() method later.");
58 } 58 }
59 59
60 private: 60 private:
61 DisplacementRelocation(FixupKind Kind, const ConstantRelocatable *Sym) 61 DisplacementRelocation(FixupKind Kind, const ConstantRelocatable *Sym)
62 : AssemblerFixup(Kind, Sym) {} 62 : AssemblerFixup(Kind, Sym) {}
63 DisplacementRelocation(const DisplacementRelocation &) LLVM_DELETED_FUNCTION; 63 DisplacementRelocation(const DisplacementRelocation &) LLVM_DELETED_FUNCTION;
64 DisplacementRelocation & 64 DisplacementRelocation &
(...skipping 685 matching lines...) Expand 10 before | Expand all | Expand 10 after
750 inline void AssemblerX86::EmitFixup(AssemblerFixup *fixup) { 750 inline void AssemblerX86::EmitFixup(AssemblerFixup *fixup) {
751 buffer_.EmitFixup(fixup); 751 buffer_.EmitFixup(fixup);
752 } 752 }
753 753
754 inline void AssemblerX86::EmitOperandSizeOverride() { EmitUint8(0x66); } 754 inline void AssemblerX86::EmitOperandSizeOverride() { EmitUint8(0x66); }
755 755
756 } // end of namespace x86 756 } // end of namespace x86
757 } // end of namespace Ice 757 } // end of namespace Ice
758 758
759 #endif // SUBZERO_SRC_ASSEMBLER_IA32_H_ 759 #endif // SUBZERO_SRC_ASSEMBLER_IA32_H_
OLDNEW
« src/IceTargetLoweringX8632.cpp ('K') | « src/IceTypes.h ('k') | src/assembler_ia32.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698