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 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
365 return mode == CODE_AGE_SEQUENCE; | 365 return mode == CODE_AGE_SEQUENCE; |
366 } | 366 } |
367 static inline int ModeMask(Mode mode) { return 1 << mode; } | 367 static inline int ModeMask(Mode mode) { return 1 << mode; } |
368 | 368 |
369 // Accessors | 369 // Accessors |
370 byte* pc() const { return pc_; } | 370 byte* pc() const { return pc_; } |
371 void set_pc(byte* pc) { pc_ = pc; } | 371 void set_pc(byte* pc) { pc_ = pc; } |
372 Mode rmode() const { return rmode_; } | 372 Mode rmode() const { return rmode_; } |
373 intptr_t data() const { return data_; } | 373 intptr_t data() const { return data_; } |
374 double data64() const { return data64_; } | 374 double data64() const { return data64_; } |
375 uint64_t raw_data64() { | |
376 uint64_t tmp; | |
377 memcpy(&tmp, &data64_, sizeof(tmp)); | |
Benedikt Meurer
2013/11/15 08:47:01
Same as above.
Rodolph Perfetta
2013/11/15 11:04:26
Done.
| |
378 return tmp; | |
379 } | |
375 Code* host() const { return host_; } | 380 Code* host() const { return host_; } |
376 | 381 |
377 // Apply a relocation by delta bytes | 382 // Apply a relocation by delta bytes |
378 INLINE(void apply(intptr_t delta)); | 383 INLINE(void apply(intptr_t delta)); |
379 | 384 |
380 // Is the pointer this relocation info refers to coded like a plain pointer | 385 // Is the pointer this relocation info refers to coded like a plain pointer |
381 // or is it strange in some way (e.g. relative or patched into a series of | 386 // or is it strange in some way (e.g. relative or patched into a series of |
382 // instructions). | 387 // instructions). |
383 bool IsCodedSpecially(); | 388 bool IsCodedSpecially(); |
384 | 389 |
(...skipping 681 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1066 public: | 1071 public: |
1067 NullCallWrapper() { } | 1072 NullCallWrapper() { } |
1068 virtual ~NullCallWrapper() { } | 1073 virtual ~NullCallWrapper() { } |
1069 virtual void BeforeCall(int call_size) const { } | 1074 virtual void BeforeCall(int call_size) const { } |
1070 virtual void AfterCall() const { } | 1075 virtual void AfterCall() const { } |
1071 }; | 1076 }; |
1072 | 1077 |
1073 } } // namespace v8::internal | 1078 } } // namespace v8::internal |
1074 | 1079 |
1075 #endif // V8_ASSEMBLER_H_ | 1080 #endif // V8_ASSEMBLER_H_ |
OLD | NEW |