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 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
322 friend class Assembler; | 322 friend class Assembler; |
323 friend class MacroAssembler; | 323 friend class MacroAssembler; |
324 }; | 324 }; |
325 | 325 |
326 | 326 |
327 // On MIPS we have only one adressing mode with base_reg + offset. | 327 // On MIPS we have only one adressing mode with base_reg + offset. |
328 // Class MemOperand represents a memory operand in load and store instructions. | 328 // Class MemOperand represents a memory operand in load and store instructions. |
329 class MemOperand : public Operand { | 329 class MemOperand : public Operand { |
330 public: | 330 public: |
331 explicit MemOperand(Register rn, int32_t offset = 0); | 331 explicit MemOperand(Register rn, int32_t offset = 0); |
| 332 int32_t offset() const { return offset_; } |
332 | 333 |
333 private: | 334 private: |
334 int32_t offset_; | 335 int32_t offset_; |
335 | 336 |
336 friend class Assembler; | 337 friend class Assembler; |
337 }; | 338 }; |
338 | 339 |
339 | 340 |
340 // CpuFeatures keeps track of which features are supported by the target CPU. | 341 // CpuFeatures keeps track of which features are supported by the target CPU. |
341 // Supported features must be enabled by a Scope before use. | 342 // Supported features must be enabled by a Scope before use. |
(...skipping 791 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1133 class EnsureSpace BASE_EMBEDDED { | 1134 class EnsureSpace BASE_EMBEDDED { |
1134 public: | 1135 public: |
1135 explicit EnsureSpace(Assembler* assembler) { | 1136 explicit EnsureSpace(Assembler* assembler) { |
1136 assembler->CheckBuffer(); | 1137 assembler->CheckBuffer(); |
1137 } | 1138 } |
1138 }; | 1139 }; |
1139 | 1140 |
1140 } } // namespace v8::internal | 1141 } } // namespace v8::internal |
1141 | 1142 |
1142 #endif // V8_ARM_ASSEMBLER_MIPS_H_ | 1143 #endif // V8_ARM_ASSEMBLER_MIPS_H_ |
OLD | NEW |