diff options
| author | 2016-07-27 17:53:11 -0700 | |
|---|---|---|
| committer | 2016-07-27 17:56:08 -0700 | |
| commit | 26de38bb7f2122417388809f4ff88a7cb5c4af5e (patch) | |
| tree | 878f432e2476f90201dd4695cfc8c3498c2c207f /compiler/optimizing/nodes.cc | |
| parent | 9755c262df1be7f5d5b98d038c8fd3734e974f9d (diff) | |
ART: Delete old compiler_enums.h
Holdover from the Quick days. Move the two enums that are still
used closer to the actual users (and prune no longer used cases).
Test: m test-art-host
Change-Id: I88aa49961a54635788cafac570ddc3125aa38262
Diffstat (limited to 'compiler/optimizing/nodes.cc')
| -rw-r--r-- | compiler/optimizing/nodes.cc | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/compiler/optimizing/nodes.cc b/compiler/optimizing/nodes.cc index d557f42968..9b1d29f33f 100644 --- a/compiler/optimizing/nodes.cc +++ b/compiler/optimizing/nodes.cc @@ -2632,4 +2632,23 @@ std::ostream& operator<<(std::ostream& os, TypeCheckKind rhs) { } } +std::ostream& operator<<(std::ostream& os, const MemBarrierKind& kind) { + switch (kind) { + case MemBarrierKind::kAnyStore: + return os << "any-store"; + case MemBarrierKind::kLoadAny: + return os << "load-any"; + case MemBarrierKind::kStoreStore: + return os << "store-store"; + case MemBarrierKind::kAnyAny: + return os << "any-any"; + case MemBarrierKind::kNTStoreStore: + return os << "store-store(nt)"; + + default: + LOG(FATAL) << "Unknown MemBarrierKind: " << static_cast<int>(kind); + UNREACHABLE(); + } +} + } // namespace art |