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 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 | 301 |
302 // ----------------------------------------------------------------------------- | 302 // ----------------------------------------------------------------------------- |
303 // Machine instruction Operands | 303 // Machine instruction Operands |
304 | 304 |
305 enum ScaleFactor { | 305 enum ScaleFactor { |
306 times_1 = 0, | 306 times_1 = 0, |
307 times_2 = 1, | 307 times_2 = 1, |
308 times_4 = 2, | 308 times_4 = 2, |
309 times_8 = 3, | 309 times_8 = 3, |
310 times_int_size = times_4, | 310 times_int_size = times_4, |
311 times_half_pointer_size = times_4, | |
312 times_pointer_size = times_8 | 311 times_pointer_size = times_8 |
313 }; | 312 }; |
314 | 313 |
315 | 314 |
316 class Operand BASE_EMBEDDED { | 315 class Operand BASE_EMBEDDED { |
317 public: | 316 public: |
318 // [base + disp/r] | 317 // [base + disp/r] |
319 Operand(Register base, int32_t disp); | 318 Operand(Register base, int32_t disp); |
320 | 319 |
321 // [base + index*scale + disp/r] | 320 // [base + index*scale + disp/r] |
(...skipping 1080 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1402 private: | 1401 private: |
1403 Assembler* assembler_; | 1402 Assembler* assembler_; |
1404 #ifdef DEBUG | 1403 #ifdef DEBUG |
1405 int space_before_; | 1404 int space_before_; |
1406 #endif | 1405 #endif |
1407 }; | 1406 }; |
1408 | 1407 |
1409 } } // namespace v8::internal | 1408 } } // namespace v8::internal |
1410 | 1409 |
1411 #endif // V8_X64_ASSEMBLER_X64_H_ | 1410 #endif // V8_X64_ASSEMBLER_X64_H_ |
OLD | NEW |