| 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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 int32_t value_; | 271 int32_t value_; |
| 272 | 272 |
| 273 friend class Assembler; | 273 friend class Assembler; |
| 274 }; | 274 }; |
| 275 | 275 |
| 276 | 276 |
| 277 // ----------------------------------------------------------------------------- | 277 // ----------------------------------------------------------------------------- |
| 278 // Machine instruction Operands | 278 // Machine instruction Operands |
| 279 | 279 |
| 280 enum ScaleFactor { | 280 enum ScaleFactor { |
| 281 kTimes1 = 0, | 281 times_1 = 0, |
| 282 kTimes2 = 1, | 282 times_2 = 1, |
| 283 kTimes4 = 2, | 283 times_4 = 2, |
| 284 kTimes8 = 3, | 284 times_8 = 3, |
| 285 kTimesIntSize = kTimes4, | 285 times_int_size = times_4, |
| 286 kTimesPointerSize = kTimes8 | 286 times_pointer_size = times_8 |
| 287 }; | 287 }; |
| 288 | 288 |
| 289 | 289 |
| 290 class Operand BASE_EMBEDDED { | 290 class Operand BASE_EMBEDDED { |
| 291 public: | 291 public: |
| 292 // [base + disp/r] | 292 // [base + disp/r] |
| 293 Operand(Register base, int32_t disp); | 293 Operand(Register base, int32_t disp); |
| 294 | 294 |
| 295 // [base + index*scale + disp/r] | 295 // [base + index*scale + disp/r] |
| 296 Operand(Register base, | 296 Operand(Register base, |
| (...skipping 810 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1107 private: | 1107 private: |
| 1108 Assembler* assembler_; | 1108 Assembler* assembler_; |
| 1109 #ifdef DEBUG | 1109 #ifdef DEBUG |
| 1110 int space_before_; | 1110 int space_before_; |
| 1111 #endif | 1111 #endif |
| 1112 }; | 1112 }; |
| 1113 | 1113 |
| 1114 } } // namespace v8::internal | 1114 } } // namespace v8::internal |
| 1115 | 1115 |
| 1116 #endif // V8_X64_ASSEMBLER_X64_H_ | 1116 #endif // V8_X64_ASSEMBLER_X64_H_ |
| OLD | NEW |