| 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 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 last_pc_ = pc; | 265 last_pc_ = pc; |
| 266 } | 266 } |
| 267 | 267 |
| 268 // Max size (bytes) of a written RelocInfo. | 268 // Max size (bytes) of a written RelocInfo. |
| 269 static const int kMaxSize = 12; | 269 static const int kMaxSize = 12; |
| 270 | 270 |
| 271 private: | 271 private: |
| 272 inline uint32_t WriteVariableLengthPCJump(uint32_t pc_delta); | 272 inline uint32_t WriteVariableLengthPCJump(uint32_t pc_delta); |
| 273 inline void WriteTaggedPC(uint32_t pc_delta, int tag); | 273 inline void WriteTaggedPC(uint32_t pc_delta, int tag); |
| 274 inline void WriteExtraTaggedPC(uint32_t pc_delta, int extra_tag); | 274 inline void WriteExtraTaggedPC(uint32_t pc_delta, int extra_tag); |
| 275 inline void WriteExtraTaggedData(int32_t data_delta, int top_tag); | 275 inline void WriteExtraTaggedData(intptr_t data_delta, int top_tag); |
| 276 inline void WriteTaggedData(int32_t data_delta, int tag); | 276 inline void WriteTaggedData(intptr_t data_delta, int tag); |
| 277 inline void WriteExtraTag(int extra_tag, int top_tag); | 277 inline void WriteExtraTag(int extra_tag, int top_tag); |
| 278 | 278 |
| 279 byte* pos_; | 279 byte* pos_; |
| 280 byte* last_pc_; | 280 byte* last_pc_; |
| 281 intptr_t last_data_; | 281 intptr_t last_data_; |
| 282 DISALLOW_COPY_AND_ASSIGN(RelocInfoWriter); | 282 DISALLOW_COPY_AND_ASSIGN(RelocInfoWriter); |
| 283 }; | 283 }; |
| 284 | 284 |
| 285 | 285 |
| 286 // A RelocIterator iterates over relocation information. | 286 // A RelocIterator iterates over relocation information. |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 441 static inline bool is_uint4(int x) { return is_uintn(x, 4); } | 441 static inline bool is_uint4(int x) { return is_uintn(x, 4); } |
| 442 static inline bool is_uint5(int x) { return is_uintn(x, 5); } | 442 static inline bool is_uint5(int x) { return is_uintn(x, 5); } |
| 443 static inline bool is_uint8(int x) { return is_uintn(x, 8); } | 443 static inline bool is_uint8(int x) { return is_uintn(x, 8); } |
| 444 static inline bool is_uint12(int x) { return is_uintn(x, 12); } | 444 static inline bool is_uint12(int x) { return is_uintn(x, 12); } |
| 445 static inline bool is_uint16(int x) { return is_uintn(x, 16); } | 445 static inline bool is_uint16(int x) { return is_uintn(x, 16); } |
| 446 static inline bool is_uint24(int x) { return is_uintn(x, 24); } | 446 static inline bool is_uint24(int x) { return is_uintn(x, 24); } |
| 447 | 447 |
| 448 } } // namespace v8::internal | 448 } } // namespace v8::internal |
| 449 | 449 |
| 450 #endif // V8_ASSEMBLER_H_ | 450 #endif // V8_ASSEMBLER_H_ |
| OLD | NEW |