5#ifndef RUNTIME_VM_COMPILER_API_DEOPT_ID_H_
6#define RUNTIME_VM_COMPILER_API_DEOPT_ID_H_
27 static constexpr intptr_t
kNone = -1;
29 static inline intptr_t
Next(intptr_t deopt_id) {
return deopt_id + kStep; }
33 return deopt_id + kAfterOffset;
37 return (deopt_id % kStep) == kBeforeOffset;
41 return (deopt_id % kStep) == kAfterOffset;
45 static constexpr intptr_t kStep = 2;
46 static constexpr intptr_t kBeforeOffset = 0;
47 static constexpr intptr_t kAfterOffset = 1;
static bool IsDeoptAfter(intptr_t deopt_id)
static constexpr intptr_t kNone
static intptr_t ToDeoptAfter(intptr_t deopt_id)
static bool IsDeoptBefore(intptr_t deopt_id)
static intptr_t Next(intptr_t deopt_id)