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

Side by Side Diff: third_party/tcmalloc/chromium/src/windows/mini_disassembler_types.h

Issue 9667026: Revert 126020 - Experiment for updating the tcmalloc chromium branch to r144 (gperftools 2.0). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 9 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 | Annotate | Revision Log
OLDNEW
1 /* Copyright (c) 2007, Google Inc. 1 /* Copyright (c) 2007, Google Inc.
2 * All rights reserved. 2 * All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 OT_SI = 0x0C000000, 136 OT_SI = 0x0C000000,
137 OT_V = 0x0D000000, 137 OT_V = 0x0D000000,
138 OT_W = 0x0E000000, 138 OT_W = 0x0E000000,
139 OT_SD = 0x0F000000, // scalar double-precision floating-point value 139 OT_SD = 0x0F000000, // scalar double-precision floating-point value
140 OT_PD = 0x10000000, // double-precision floating point 140 OT_PD = 0x10000000, // double-precision floating point
141 // dummy "operand type" for address mode M - which doesn't specify 141 // dummy "operand type" for address mode M - which doesn't specify
142 // operand type 142 // operand type
143 OT_ADDRESS_MODE_M = 0x80000000 143 OT_ADDRESS_MODE_M = 0x80000000
144 }; 144 };
145 145
146 // Flag that indicates if an immediate operand is 64-bits.
147 //
148 // The Intel 64 and IA-32 Architecture Software Developer's Manual currently
149 // defines MOV as the only instruction supporting a 64-bit immediate operand.
150 enum ImmediateOperandSize {
151 IOS_MASK = 0x0000F000,
152 IOS_DEFAULT = 0x0,
153 IOS_64 = 0x00001000
154 };
155
156 // Everything that's in an Opcode (see below) except the three 146 // Everything that's in an Opcode (see below) except the three
157 // alternative opcode structs for different prefixes. 147 // alternative opcode structs for different prefixes.
158 struct SpecificOpcode { 148 struct SpecificOpcode {
159 // Index to continuation table, or 0 if this is the last 149 // Index to continuation table, or 0 if this is the last
160 // byte in the opcode. 150 // byte in the opcode.
161 int table_index_; 151 int table_index_;
162 152
163 // The opcode type 153 // The opcode type
164 InstructionType type_; 154 InstructionType type_;
165 155
166 // Description of the type of the dest, src and aux operands, 156 // Description of the type of the dest, src and aux operands,
167 // put together from enOperandType, enAddressingMethod and 157 // put together from an enOperandType flag and an enAddressingMethod
168 // enImmediateOperandSize flags. 158 // flag.
169 int flag_dest_; 159 int flag_dest_;
170 int flag_source_; 160 int flag_source_;
171 int flag_aux_; 161 int flag_aux_;
172 162
173 // We indicate the mnemonic for debugging purposes 163 // We indicate the mnemonic for debugging purposes
174 const char* mnemonic_; 164 const char* mnemonic_;
175 }; 165 };
176 166
177 // The information we keep in our tables about each of the different 167 // The information we keep in our tables about each of the different
178 // valid instructions recognized by the IA-32 architecture. 168 // valid instructions recognized by the IA-32 architecture.
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 bool use_sib_byte_; 217 bool use_sib_byte_;
228 218
229 // What is the size of the operand (only important if it's encoded 219 // What is the size of the operand (only important if it's encoded
230 // in the instruction)? 220 // in the instruction)?
231 OperandSize operand_size_; 221 OperandSize operand_size_;
232 }; 222 };
233 223
234 }; // namespace sidestep 224 }; // namespace sidestep
235 225
236 #endif // GOOGLE_PERFTOOLS_MINI_DISASSEMBLER_TYPES_H_ 226 #endif // GOOGLE_PERFTOOLS_MINI_DISASSEMBLER_TYPES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698