OLD | NEW |
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 Loading... |
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 ®ion, intptr_t position) { | 54 void Process(const MemoryRegion ®ion, 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 Loading... |
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_ |
OLD | NEW |