OLD | NEW |
1 // Copyright (c) 1994-2006 Sun Microsystems Inc. | 1 // Copyright (c) 1994-2006 Sun Microsystems 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 notice, | 8 // - Redistributions of source code must retain the above copyright notice, |
9 // this list of conditions and the following disclaimer. | 9 // this list of conditions and the following disclaimer. |
10 // | 10 // |
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 | 285 |
286 // ----------------------------------------------------------------------------- | 286 // ----------------------------------------------------------------------------- |
287 // Machine instruction Operands | 287 // Machine instruction Operands |
288 | 288 |
289 enum ScaleFactor { | 289 enum ScaleFactor { |
290 times_1 = 0, | 290 times_1 = 0, |
291 times_2 = 1, | 291 times_2 = 1, |
292 times_4 = 2, | 292 times_4 = 2, |
293 times_8 = 3, | 293 times_8 = 3, |
294 times_int_size = times_4, | 294 times_int_size = times_4, |
| 295 times_half_pointer_size = times_4, |
295 times_pointer_size = times_8 | 296 times_pointer_size = times_8 |
296 }; | 297 }; |
297 | 298 |
298 | 299 |
299 class Operand BASE_EMBEDDED { | 300 class Operand BASE_EMBEDDED { |
300 public: | 301 public: |
301 // [base + disp/r] | 302 // [base + disp/r] |
302 Operand(Register base, int32_t disp); | 303 Operand(Register base, int32_t disp); |
303 | 304 |
304 // [base + index*scale + disp/r] | 305 // [base + index*scale + disp/r] |
(...skipping 906 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1211 private: | 1212 private: |
1212 Assembler* assembler_; | 1213 Assembler* assembler_; |
1213 #ifdef DEBUG | 1214 #ifdef DEBUG |
1214 int space_before_; | 1215 int space_before_; |
1215 #endif | 1216 #endif |
1216 }; | 1217 }; |
1217 | 1218 |
1218 } } // namespace v8::internal | 1219 } } // namespace v8::internal |
1219 | 1220 |
1220 #endif // V8_X64_ASSEMBLER_X64_H_ | 1221 #endif // V8_X64_ASSEMBLER_X64_H_ |
OLD | NEW |