| 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 void bind_to(int pos) { | 75 void bind_to(int pos) { |
| 76 pos_ = -pos - 1; | 76 pos_ = -pos - 1; |
| 77 ASSERT(is_bound()); | 77 ASSERT(is_bound()); |
| 78 } | 78 } |
| 79 void link_to(int pos) { | 79 void link_to(int pos) { |
| 80 pos_ = pos + 1; | 80 pos_ = pos + 1; |
| 81 ASSERT(is_linked()); | 81 ASSERT(is_linked()); |
| 82 } | 82 } |
| 83 | 83 |
| 84 friend class Assembler; | 84 friend class Assembler; |
| 85 friend class RegexpAssembler; |
| 85 friend class Displacement; | 86 friend class Displacement; |
| 86 friend class ShadowTarget; | 87 friend class ShadowTarget; |
| 88 friend class RegExpMacroAssemblerIrregexp; |
| 87 }; | 89 }; |
| 88 | 90 |
| 89 | 91 |
| 90 // ----------------------------------------------------------------------------- | 92 // ----------------------------------------------------------------------------- |
| 91 // Relocation information | 93 // Relocation information |
| 92 | 94 |
| 93 | 95 |
| 94 // Relocation information consists of the address (pc) of the datum | 96 // Relocation information consists of the address (pc) of the datum |
| 95 // to which the relocation information applies, the relocation mode | 97 // to which the relocation information applies, the relocation mode |
| 96 // (rmode), and an optional data field. The relocation mode may be | 98 // (rmode), and an optional data field. The relocation mode may be |
| (...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 421 static inline bool is_uint4(int x) { return is_uintn(x, 4); } | 423 static inline bool is_uint4(int x) { return is_uintn(x, 4); } |
| 422 static inline bool is_uint5(int x) { return is_uintn(x, 5); } | 424 static inline bool is_uint5(int x) { return is_uintn(x, 5); } |
| 423 static inline bool is_uint8(int x) { return is_uintn(x, 8); } | 425 static inline bool is_uint8(int x) { return is_uintn(x, 8); } |
| 424 static inline bool is_uint12(int x) { return is_uintn(x, 12); } | 426 static inline bool is_uint12(int x) { return is_uintn(x, 12); } |
| 425 static inline bool is_uint16(int x) { return is_uintn(x, 16); } | 427 static inline bool is_uint16(int x) { return is_uintn(x, 16); } |
| 426 static inline bool is_uint24(int x) { return is_uintn(x, 24); } | 428 static inline bool is_uint24(int x) { return is_uintn(x, 24); } |
| 427 | 429 |
| 428 } } // namespace v8::internal | 430 } } // namespace v8::internal |
| 429 | 431 |
| 430 #endif // V8_ASSEMBLER_H_ | 432 #endif // V8_ASSEMBLER_H_ |
| OLD | NEW |