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

Side by Side Diff: src/assembler_ia32.h

Issue 607443003: Subzero: Enable the C++11 build. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: 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
« src/PNaClTranslator.cpp ('K') | « src/PNaClTranslator.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 intptr_t disp_size = sizeof(disp); 150 intptr_t disp_size = sizeof(disp);
151 memmove(&encoding_[length_], &disp, disp_size); 151 memmove(&encoding_[length_], &disp, disp_size);
152 length_ += disp_size; 152 length_ += disp_size;
153 } 153 }
154 154
155 void SetFixup(AssemblerFixup *fixup) { fixup_ = fixup; } 155 void SetFixup(AssemblerFixup *fixup) { fixup_ = fixup; }
156 156
157 private: 157 private:
158 uint8_t length_; 158 uint8_t length_;
159 uint8_t encoding_[6]; 159 uint8_t encoding_[6];
160 uint8_t padding_; 160 // Commenting out this private unused field to avoid warnings.
161 // uint8_t padding_;
jvoung (off chromium) 2014/09/25 21:05:01 I think that we might as well delete this.
Jim Stichnoth 2014/09/26 00:11:18 Done.
161 AssemblerFixup *fixup_; 162 AssemblerFixup *fixup_;
162 163
163 explicit Operand(GPRRegister reg) : fixup_(NULL) { SetModRM(3, reg); } 164 explicit Operand(GPRRegister reg) : fixup_(NULL) { SetModRM(3, reg); }
164 165
165 // Get the operand encoding byte at the given index. 166 // Get the operand encoding byte at the given index.
166 uint8_t encoding_at(intptr_t index) const { 167 uint8_t encoding_at(intptr_t index) const {
167 assert(index >= 0 && index < length_); 168 assert(index >= 0 && index < length_);
168 return encoding_[index]; 169 return encoding_[index];
169 } 170 }
170 171
(...skipping 574 matching lines...) Expand 10 before | Expand all | Expand 10 after
745 inline void AssemblerX86::EmitFixup(AssemblerFixup *fixup) { 746 inline void AssemblerX86::EmitFixup(AssemblerFixup *fixup) {
746 buffer_.EmitFixup(fixup); 747 buffer_.EmitFixup(fixup);
747 } 748 }
748 749
749 inline void AssemblerX86::EmitOperandSizeOverride() { EmitUint8(0x66); } 750 inline void AssemblerX86::EmitOperandSizeOverride() { EmitUint8(0x66); }
750 751
751 } // end of namespace x86 752 } // end of namespace x86
752 } // end of namespace Ice 753 } // end of namespace Ice
753 754
754 #endif // SUBZERO_SRC_ASSEMBLER_IA32_H_ 755 #endif // SUBZERO_SRC_ASSEMBLER_IA32_H_
OLDNEW
« src/PNaClTranslator.cpp ('K') | « src/PNaClTranslator.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698