mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 875452 - Part 6.5: Fix const correctness issues in IonCaches.h (r=shu)
This commit is contained in:
parent
0004e6ff24
commit
8a27992333
@ -143,8 +143,8 @@ class IonCache
|
||||
bool is##ickind() const { \
|
||||
return kind() == Cache_##ickind; \
|
||||
} \
|
||||
inline ickind##IC &to##ickind();
|
||||
|
||||
inline ickind##IC &to##ickind(); \
|
||||
inline const ickind##IC &to##ickind() const;
|
||||
IONCACHE_KIND_LIST(CACHEKIND_CASTS)
|
||||
# undef CACHEKIND_CASTS
|
||||
|
||||
@ -248,7 +248,7 @@ class IonCache
|
||||
}
|
||||
#endif
|
||||
|
||||
bool pure() {
|
||||
bool pure() const {
|
||||
return pure_;
|
||||
}
|
||||
bool idempotent() const {
|
||||
@ -1049,6 +1049,11 @@ class GetElementParIC : public ParallelIonCache
|
||||
{ \
|
||||
JS_ASSERT(is##ickind()); \
|
||||
return *static_cast<ickind##IC *>(this); \
|
||||
} \
|
||||
const ickind##IC &IonCache::to##ickind() const \
|
||||
{ \
|
||||
JS_ASSERT(is##ickind()); \
|
||||
return *static_cast<const ickind##IC *>(this); \
|
||||
}
|
||||
IONCACHE_KIND_LIST(CACHE_CASTS)
|
||||
#undef OPCODE_CASTS
|
||||
|
Loading…
Reference in New Issue
Block a user