Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(215)

Unified Diff: src/objects.h

Issue 2882973002: [coverage] Block coverage with support for IfStatements (Closed)
Patch Set: Remove coverage infos Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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()));

Powered by Google App Engine
This is Rietveld 408576698