Revision f230a1cf deps/v8/src/property-details.h
deps/v8/src/property-details.h | ||
---|---|---|
82 | 82 |
public: |
83 | 83 |
enum Kind { |
84 | 84 |
kNone, |
85 |
kByte, |
|
85 | 86 |
kSmi, |
86 | 87 |
kInteger32, |
87 | 88 |
kDouble, |
... | ... | |
95 | 96 |
|
96 | 97 |
static Representation None() { return Representation(kNone); } |
97 | 98 |
static Representation Tagged() { return Representation(kTagged); } |
99 |
static Representation Byte() { return Representation(kByte); } |
|
98 | 100 |
static Representation Smi() { return Representation(kSmi); } |
99 | 101 |
static Representation Integer32() { return Representation(kInteger32); } |
100 | 102 |
static Representation Double() { return Representation(kDouble); } |
... | ... | |
139 | 141 |
|
140 | 142 |
Kind kind() const { return static_cast<Kind>(kind_); } |
141 | 143 |
bool IsNone() const { return kind_ == kNone; } |
144 |
bool IsByte() const { return kind_ == kByte; } |
|
142 | 145 |
bool IsTagged() const { return kind_ == kTagged; } |
143 | 146 |
bool IsSmi() const { return kind_ == kSmi; } |
144 | 147 |
bool IsSmiOrTagged() const { return IsSmi() || IsTagged(); } |
... | ... | |
148 | 151 |
bool IsHeapObject() const { return kind_ == kHeapObject; } |
149 | 152 |
bool IsExternal() const { return kind_ == kExternal; } |
150 | 153 |
bool IsSpecialization() const { |
151 |
return kind_ == kInteger32 || kind_ == kDouble || kind_ == kSmi;
|
|
154 |
return IsByte() || IsSmi() || IsInteger32() || IsDouble();
|
|
152 | 155 |
} |
153 | 156 |
const char* Mnemonic() const; |
154 | 157 |
|
Also available in: Unified diff