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

Side by Side Diff: tools/clang/blink_gc_plugin/TracingStatus.h

Issue 1385193002: Bisect clang Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 246985 Created 5 years, 2 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef TOOLS_BLINK_GC_PLUGIN_TRACING_STATUS_H_
6 #define TOOLS_BLINK_GC_PLUGIN_TRACING_STATUS_H_
7
8 // TracingStatus is a three-point value ordered by unneeded < unknown < needed.
9 class TracingStatus {
10 public:
11 static TracingStatus Unneeded() { return kUnneeded; }
12 static TracingStatus Unknown() { return kUnknown; }
13 static TracingStatus Needed() { return kNeeded; }
14 bool IsUnneeded() const { return status_ == kUnneeded; }
15 bool IsUnknown() const { return status_ == kUnknown; }
16 bool IsNeeded() const { return status_ == kNeeded; }
17 TracingStatus LUB(const TracingStatus& other) const {
18 return status_ > other.status_ ? status_ : other.status_;
19 }
20 bool operator==(const TracingStatus& other) const {
21 return status_ == other.status_;
22 }
23 private:
24 enum Status { kUnneeded, kUnknown, kNeeded };
25 TracingStatus(Status status) : status_(status) {}
26 Status status_;
27 };
28
29 #endif // TOOLS_BLINK_GC_PLUGIN_TRACING_STATUS_H_
OLDNEW
« no previous file with comments | « tools/clang/blink_gc_plugin/RecordInfo.cpp ('k') | tools/clang/blink_gc_plugin/process-graph.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698