| 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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 // ----------------------------------------------------------------------------- | 224 // ----------------------------------------------------------------------------- |
| 225 // Machine instruction Operands | 225 // Machine instruction Operands |
| 226 | 226 |
| 227 enum ScaleFactor { | 227 enum ScaleFactor { |
| 228 times_1 = 0, | 228 times_1 = 0, |
| 229 times_2 = 1, | 229 times_2 = 1, |
| 230 times_4 = 2, | 230 times_4 = 2, |
| 231 times_8 = 3, | 231 times_8 = 3, |
| 232 times_int_size = times_4, | 232 times_int_size = times_4, |
| 233 times_half_pointer_size = times_2, | 233 times_half_pointer_size = times_2, |
| 234 times_pointer_size = times_4 | 234 times_pointer_size = times_4, |
| 235 times_twice_pointer_size = times_8 |
| 235 }; | 236 }; |
| 236 | 237 |
| 237 | 238 |
| 238 class Operand BASE_EMBEDDED { | 239 class Operand BASE_EMBEDDED { |
| 239 public: | 240 public: |
| 240 // reg | 241 // reg |
| 241 INLINE(explicit Operand(Register reg)); | 242 INLINE(explicit Operand(Register reg)); |
| 242 | 243 |
| 243 // [disp/r] | 244 // [disp/r] |
| 244 INLINE(explicit Operand(int32_t disp, RelocInfo::Mode rmode)); | 245 INLINE(explicit Operand(int32_t disp, RelocInfo::Mode rmode)); |
| (...skipping 664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 909 private: | 910 private: |
| 910 Assembler* assembler_; | 911 Assembler* assembler_; |
| 911 #ifdef DEBUG | 912 #ifdef DEBUG |
| 912 int space_before_; | 913 int space_before_; |
| 913 #endif | 914 #endif |
| 914 }; | 915 }; |
| 915 | 916 |
| 916 } } // namespace v8::internal | 917 } } // namespace v8::internal |
| 917 | 918 |
| 918 #endif // V8_IA32_ASSEMBLER_IA32_H_ | 919 #endif // V8_IA32_ASSEMBLER_IA32_H_ |
| OLD | NEW |