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 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
358 return mode == DEBUG_BREAK_SLOT; | 358 return mode == DEBUG_BREAK_SLOT; |
359 } | 359 } |
360 static inline bool IsNone(Mode mode) { | 360 static inline bool IsNone(Mode mode) { |
361 return mode == NONE32 || mode == NONE64; | 361 return mode == NONE32 || mode == NONE64; |
362 } | 362 } |
363 static inline bool IsCodeAgeSequence(Mode mode) { | 363 static inline bool IsCodeAgeSequence(Mode mode) { |
364 return mode == CODE_AGE_SEQUENCE; | 364 return mode == CODE_AGE_SEQUENCE; |
365 } | 365 } |
366 static inline int ModeMask(Mode mode) { return 1 << mode; } | 366 static inline int ModeMask(Mode mode) { return 1 << mode; } |
367 | 367 |
| 368 // Returns true if the first RelocInfo has the same mode and raw data as the |
| 369 // second one. |
| 370 static inline bool IsEqual(RelocInfo first, RelocInfo second) { |
| 371 return first.rmode() == second.rmode() && |
| 372 (first.rmode() == RelocInfo::NONE64 ? |
| 373 first.raw_data64() == second.raw_data64() : |
| 374 first.data() == second.data()); |
| 375 } |
| 376 |
368 // Accessors | 377 // Accessors |
369 byte* pc() const { return pc_; } | 378 byte* pc() const { return pc_; } |
370 void set_pc(byte* pc) { pc_ = pc; } | 379 void set_pc(byte* pc) { pc_ = pc; } |
371 Mode rmode() const { return rmode_; } | 380 Mode rmode() const { return rmode_; } |
372 intptr_t data() const { return data_; } | 381 intptr_t data() const { return data_; } |
373 double data64() const { return data64_; } | 382 double data64() const { return data64_; } |
374 uint64_t raw_data64() { | 383 uint64_t raw_data64() { |
375 return BitCast<uint64_t>(data64_); | 384 return BitCast<uint64_t>(data64_); |
376 } | 385 } |
377 Code* host() const { return host_; } | 386 Code* host() const { return host_; } |
(...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1040 public: | 1049 public: |
1041 NullCallWrapper() { } | 1050 NullCallWrapper() { } |
1042 virtual ~NullCallWrapper() { } | 1051 virtual ~NullCallWrapper() { } |
1043 virtual void BeforeCall(int call_size) const { } | 1052 virtual void BeforeCall(int call_size) const { } |
1044 virtual void AfterCall() const { } | 1053 virtual void AfterCall() const { } |
1045 }; | 1054 }; |
1046 | 1055 |
1047 } } // namespace v8::internal | 1056 } } // namespace v8::internal |
1048 | 1057 |
1049 #endif // V8_ASSEMBLER_H_ | 1058 #endif // V8_ASSEMBLER_H_ |
OLD | NEW |