Index: runtime/vm/token_position.h |
diff --git a/runtime/vm/token_position.h b/runtime/vm/token_position.h |
index dc7c5a0e74aacf02fb19065afcd82ecdd19441bc..b0a2062083f2b757debd3cd541b1e4c9c120ce8b 100644 |
--- a/runtime/vm/token_position.h |
+++ b/runtime/vm/token_position.h |
@@ -29,41 +29,33 @@ namespace dart { |
// This organization allows for ~1 billion token positions. |
#define SENTINEL_TOKEN_DESCRIPTORS(V) \ |
- V(NoSource, -1) \ |
- V(Box, -2) \ |
- V(ParallelMove, -3) \ |
- V(TempMove, -4) \ |
- V(Constant, -5) \ |
- V(PushArgument, -6) \ |
- V(ControlFlow, -7) \ |
- V(Context, -8) \ |
- V(MethodExtractor, -9) \ |
- V(DeferredSlowPath, -10) \ |
- V(DeferredDeoptInfo, -11) \ |
- V(DartCodePrologue, -12) \ |
- V(DartCodeEpilogue, -13) \ |
- V(Last, -14) // Always keep this at the end. |
+ V(NoSource, -1) \ |
+ V(Box, -2) \ |
+ V(ParallelMove, -3) \ |
+ V(TempMove, -4) \ |
+ V(Constant, -5) \ |
+ V(PushArgument, -6) \ |
+ V(ControlFlow, -7) \ |
+ V(Context, -8) \ |
+ V(MethodExtractor, -9) \ |
+ V(DeferredSlowPath, -10) \ |
+ V(DeferredDeoptInfo, -11) \ |
+ V(DartCodePrologue, -12) \ |
+ V(DartCodeEpilogue, -13) \ |
+ V(Last, -14) // Always keep this at the end. |
// A token position representing a debug safe source (real) position, |
// non-debug safe source (synthetic) positions, or a classifying value used |
// by the profiler. |
class TokenPosition { |
public: |
- TokenPosition() |
- : value_(kNoSource.value()) { |
- } |
+ TokenPosition() : value_(kNoSource.value()) {} |
- explicit TokenPosition(intptr_t value) |
- : value_(value) { |
- } |
+ explicit TokenPosition(intptr_t value) : value_(value) {} |
- bool operator==(const TokenPosition& b) const { |
- return value() == b.value(); |
- } |
+ bool operator==(const TokenPosition& b) const { return value() == b.value(); } |
- bool operator!=(const TokenPosition& b) const { |
- return !(*this == b); |
- } |
+ bool operator!=(const TokenPosition& b) const { return !(*this == b); } |
bool operator<(const TokenPosition& b) const { |
// TODO(johnmccutchan): Assert that this is a source position. |
@@ -87,8 +79,7 @@ class TokenPosition { |
static const intptr_t kMaxSentinelDescriptors = 64; |
-#define DECLARE_VALUES(name, value) \ |
- static const TokenPosition k##name; |
+#define DECLARE_VALUES(name, value) static const TokenPosition k##name; |
SENTINEL_TOKEN_DESCRIPTORS(DECLARE_VALUES); |
#undef DECLARE_VALUES |
static const TokenPosition kMinSource; |
@@ -109,9 +100,7 @@ class TokenPosition { |
// The raw value. |
// TODO(johnmccutchan): Make this private. |
- intptr_t value() const { |
- return value_; |
- } |
+ intptr_t value() const { return value_; } |
// Return the source position. |
intptr_t Pos() const { |
@@ -134,9 +123,7 @@ class TokenPosition { |
} |
// Is |this| the no source position sentinel? |
- bool IsNoSource() const { |
- return *this == kNoSource; |
- } |
+ bool IsNoSource() const { return *this == kNoSource; } |
// Is |this| a synthetic source position? |
// Synthetic source positions are used by the profiler to attribute ticks to a |
@@ -144,9 +131,7 @@ class TokenPosition { |
bool IsSynthetic() const; |
// Is |this| a real source position? |
- bool IsReal() const { |
- return value_ >= kMinSourcePos; |
- } |
+ bool IsReal() const { return value_ >= kMinSourcePos; } |
// Is |this| a source position? |
bool IsSourcePosition() const { |