| Index: src/objects.h
|
| diff --git a/src/objects.h b/src/objects.h
|
| index 486873f6f580dc225203f9ead60b34808c520012..ceaaae2e0d2edba8770f0238e8a4ecc8e23a8fa6 100644
|
| --- a/src/objects.h
|
| +++ b/src/objects.h
|
| @@ -1002,6 +1002,7 @@ template <class C> inline bool Is(Object* obj);
|
| V(ConstantElementsPair) \
|
| V(Constructor) \
|
| V(Context) \
|
| + V(CoverageInfo) \
|
| V(DeoptimizationInputData) \
|
| V(DeoptimizationOutputData) \
|
| V(DependentCode) \
|
| @@ -1579,6 +1580,10 @@ class Smi: public Object {
|
| public:
|
| // Returns the integer value.
|
| inline int value() const { return Internals::SmiValue(this); }
|
| +
|
| + // Casts o to a Smi and returns its value.
|
| + static inline int ToInt(Object* o);
|
| +
|
| inline Smi* ToUint32Smi() {
|
| if (value() <= 0) return Smi::kZero;
|
| return Smi::FromInt(static_cast<uint32_t>(value()));
|
|
|