Nicolas Geoffray | f635e63 | 2014-05-14 09:43:38 +0100 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2014 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | #include "graph_visualizer.h" |
| 18 | |
Nicolas Geoffray | a7062e0 | 2014-05-22 12:50:17 +0100 | [diff] [blame] | 19 | #include "code_generator.h" |
Nicolas Geoffray | f635e63 | 2014-05-14 09:43:38 +0100 | [diff] [blame] | 20 | #include "nodes.h" |
Nicolas Geoffray | ddb311f | 2014-05-16 09:28:54 +0100 | [diff] [blame] | 21 | #include "ssa_liveness_analysis.h" |
Nicolas Geoffray | f635e63 | 2014-05-14 09:43:38 +0100 | [diff] [blame] | 22 | |
| 23 | namespace art { |
| 24 | |
| 25 | /** |
| 26 | * HGraph visitor to generate a file suitable for the c1visualizer tool and IRHydra. |
| 27 | */ |
| 28 | class HGraphVisualizerPrinter : public HGraphVisitor { |
| 29 | public: |
Nicolas Geoffray | 86dbb9a | 2014-06-04 11:12:39 +0100 | [diff] [blame] | 30 | HGraphVisualizerPrinter(HGraph* graph, |
| 31 | std::ostream& output, |
| 32 | const char* pass_name, |
Nicolas Geoffray | 840e546 | 2015-01-07 16:01:24 +0000 | [diff] [blame] | 33 | bool is_after_pass, |
Nicolas Geoffray | 86dbb9a | 2014-06-04 11:12:39 +0100 | [diff] [blame] | 34 | const CodeGenerator& codegen) |
| 35 | : HGraphVisitor(graph), |
| 36 | output_(output), |
| 37 | pass_name_(pass_name), |
Nicolas Geoffray | 840e546 | 2015-01-07 16:01:24 +0000 | [diff] [blame] | 38 | is_after_pass_(is_after_pass), |
Nicolas Geoffray | 86dbb9a | 2014-06-04 11:12:39 +0100 | [diff] [blame] | 39 | codegen_(codegen), |
| 40 | indent_(0) {} |
Nicolas Geoffray | f635e63 | 2014-05-14 09:43:38 +0100 | [diff] [blame] | 41 | |
| 42 | void StartTag(const char* name) { |
| 43 | AddIndent(); |
| 44 | output_ << "begin_" << name << std::endl; |
| 45 | indent_++; |
| 46 | } |
| 47 | |
| 48 | void EndTag(const char* name) { |
| 49 | indent_--; |
| 50 | AddIndent(); |
| 51 | output_ << "end_" << name << std::endl; |
| 52 | } |
| 53 | |
| 54 | void PrintProperty(const char* name, const char* property) { |
| 55 | AddIndent(); |
| 56 | output_ << name << " \"" << property << "\"" << std::endl; |
| 57 | } |
| 58 | |
| 59 | void PrintProperty(const char* name, const char* property, int id) { |
| 60 | AddIndent(); |
| 61 | output_ << name << " \"" << property << id << "\"" << std::endl; |
| 62 | } |
| 63 | |
| 64 | void PrintEmptyProperty(const char* name) { |
| 65 | AddIndent(); |
| 66 | output_ << name << std::endl; |
| 67 | } |
| 68 | |
| 69 | void PrintTime(const char* name) { |
| 70 | AddIndent(); |
| 71 | output_ << name << " " << time(NULL) << std::endl; |
| 72 | } |
| 73 | |
| 74 | void PrintInt(const char* name, int value) { |
| 75 | AddIndent(); |
| 76 | output_ << name << " " << value << std::endl; |
| 77 | } |
| 78 | |
| 79 | void AddIndent() { |
| 80 | for (size_t i = 0; i < indent_; ++i) { |
| 81 | output_ << " "; |
| 82 | } |
| 83 | } |
| 84 | |
Nicolas Geoffray | b09aacb | 2014-09-17 18:21:53 +0100 | [diff] [blame] | 85 | char GetTypeId(Primitive::Type type) { |
Nicolas Geoffray | 18efde5 | 2014-09-22 15:51:11 +0100 | [diff] [blame] | 86 | // Note that Primitive::Descriptor would not work for us |
| 87 | // because it does not handle reference types (that is kPrimNot). |
Nicolas Geoffray | b09aacb | 2014-09-17 18:21:53 +0100 | [diff] [blame] | 88 | switch (type) { |
| 89 | case Primitive::kPrimBoolean: return 'z'; |
| 90 | case Primitive::kPrimByte: return 'b'; |
| 91 | case Primitive::kPrimChar: return 'c'; |
| 92 | case Primitive::kPrimShort: return 's'; |
| 93 | case Primitive::kPrimInt: return 'i'; |
| 94 | case Primitive::kPrimLong: return 'j'; |
| 95 | case Primitive::kPrimFloat: return 'f'; |
| 96 | case Primitive::kPrimDouble: return 'd'; |
| 97 | case Primitive::kPrimNot: return 'l'; |
| 98 | case Primitive::kPrimVoid: return 'v'; |
| 99 | } |
| 100 | LOG(FATAL) << "Unreachable"; |
| 101 | return 'v'; |
| 102 | } |
| 103 | |
Nicolas Geoffray | f635e63 | 2014-05-14 09:43:38 +0100 | [diff] [blame] | 104 | void PrintPredecessors(HBasicBlock* block) { |
| 105 | AddIndent(); |
| 106 | output_ << "predecessors"; |
| 107 | for (size_t i = 0, e = block->GetPredecessors().Size(); i < e; ++i) { |
| 108 | HBasicBlock* predecessor = block->GetPredecessors().Get(i); |
| 109 | output_ << " \"B" << predecessor->GetBlockId() << "\" "; |
| 110 | } |
| 111 | output_<< std::endl; |
| 112 | } |
| 113 | |
| 114 | void PrintSuccessors(HBasicBlock* block) { |
| 115 | AddIndent(); |
| 116 | output_ << "successors"; |
| 117 | for (size_t i = 0, e = block->GetSuccessors().Size(); i < e; ++i) { |
| 118 | HBasicBlock* successor = block->GetSuccessors().Get(i); |
| 119 | output_ << " \"B" << successor->GetBlockId() << "\" "; |
| 120 | } |
| 121 | output_<< std::endl; |
| 122 | } |
| 123 | |
Nicolas Geoffray | 102cbed | 2014-10-15 18:31:05 +0100 | [diff] [blame] | 124 | void DumpLocation(Location location) { |
Nicolas Geoffray | 86dbb9a | 2014-06-04 11:12:39 +0100 | [diff] [blame] | 125 | if (location.IsRegister()) { |
Nicolas Geoffray | 102cbed | 2014-10-15 18:31:05 +0100 | [diff] [blame] | 126 | codegen_.DumpCoreRegister(output_, location.reg()); |
| 127 | } else if (location.IsFpuRegister()) { |
| 128 | codegen_.DumpFloatingPointRegister(output_, location.reg()); |
Nicolas Geoffray | 96f89a2 | 2014-07-11 10:57:49 +0100 | [diff] [blame] | 129 | } else if (location.IsConstant()) { |
| 130 | output_ << "constant"; |
Nicolas Geoffray | 18efde5 | 2014-09-22 15:51:11 +0100 | [diff] [blame] | 131 | HConstant* constant = location.GetConstant(); |
| 132 | if (constant->IsIntConstant()) { |
| 133 | output_ << " " << constant->AsIntConstant()->GetValue(); |
| 134 | } else if (constant->IsLongConstant()) { |
| 135 | output_ << " " << constant->AsLongConstant()->GetValue(); |
| 136 | } |
Nicolas Geoffray | 96f89a2 | 2014-07-11 10:57:49 +0100 | [diff] [blame] | 137 | } else if (location.IsInvalid()) { |
| 138 | output_ << "invalid"; |
Nicolas Geoffray | 412f10c | 2014-06-19 10:00:34 +0100 | [diff] [blame] | 139 | } else if (location.IsStackSlot()) { |
Nicolas Geoffray | 86dbb9a | 2014-06-04 11:12:39 +0100 | [diff] [blame] | 140 | output_ << location.GetStackIndex() << "(sp)"; |
Nicolas Geoffray | 840e546 | 2015-01-07 16:01:24 +0000 | [diff] [blame] | 141 | } else if (location.IsFpuRegisterPair()) { |
| 142 | codegen_.DumpFloatingPointRegister(output_, location.low()); |
| 143 | output_ << " and "; |
| 144 | codegen_.DumpFloatingPointRegister(output_, location.high()); |
Nicolas Geoffray | 412f10c | 2014-06-19 10:00:34 +0100 | [diff] [blame] | 145 | } else { |
| 146 | DCHECK(location.IsDoubleStackSlot()); |
| 147 | output_ << "2x" << location.GetStackIndex() << "(sp)"; |
Nicolas Geoffray | 86dbb9a | 2014-06-04 11:12:39 +0100 | [diff] [blame] | 148 | } |
| 149 | } |
| 150 | |
David Brazdil | b7e4a06 | 2014-12-29 15:35:02 +0000 | [diff] [blame] | 151 | void VisitParallelMove(HParallelMove* instruction) OVERRIDE { |
Nicolas Geoffray | 86dbb9a | 2014-06-04 11:12:39 +0100 | [diff] [blame] | 152 | output_ << " ("; |
| 153 | for (size_t i = 0, e = instruction->NumMoves(); i < e; ++i) { |
| 154 | MoveOperands* move = instruction->MoveOperandsAt(i); |
Nicolas Geoffray | 102cbed | 2014-10-15 18:31:05 +0100 | [diff] [blame] | 155 | DumpLocation(move->GetSource()); |
Nicolas Geoffray | 86dbb9a | 2014-06-04 11:12:39 +0100 | [diff] [blame] | 156 | output_ << " -> "; |
Nicolas Geoffray | 102cbed | 2014-10-15 18:31:05 +0100 | [diff] [blame] | 157 | DumpLocation(move->GetDestination()); |
Nicolas Geoffray | 86dbb9a | 2014-06-04 11:12:39 +0100 | [diff] [blame] | 158 | if (i + 1 != e) { |
| 159 | output_ << ", "; |
| 160 | } |
| 161 | } |
| 162 | output_ << ")"; |
Nicolas Geoffray | 26a25ef | 2014-09-30 13:54:09 +0100 | [diff] [blame] | 163 | output_ << " (liveness: " << instruction->GetLifetimePosition() << ")"; |
Nicolas Geoffray | 86dbb9a | 2014-06-04 11:12:39 +0100 | [diff] [blame] | 164 | } |
Nicolas Geoffray | f635e63 | 2014-05-14 09:43:38 +0100 | [diff] [blame] | 165 | |
David Brazdil | 36cf095 | 2015-01-08 19:28:33 +0000 | [diff] [blame] | 166 | void VisitIntConstant(HIntConstant* instruction) OVERRIDE { |
David Brazdil | b7e4a06 | 2014-12-29 15:35:02 +0000 | [diff] [blame] | 167 | output_ << " " << instruction->GetValue(); |
| 168 | } |
| 169 | |
David Brazdil | 36cf095 | 2015-01-08 19:28:33 +0000 | [diff] [blame] | 170 | void VisitLongConstant(HLongConstant* instruction) OVERRIDE { |
David Brazdil | b7e4a06 | 2014-12-29 15:35:02 +0000 | [diff] [blame] | 171 | output_ << " " << instruction->GetValue(); |
| 172 | } |
| 173 | |
David Brazdil | 36cf095 | 2015-01-08 19:28:33 +0000 | [diff] [blame] | 174 | void VisitFloatConstant(HFloatConstant* instruction) OVERRIDE { |
David Brazdil | b7e4a06 | 2014-12-29 15:35:02 +0000 | [diff] [blame] | 175 | output_ << " " << instruction->GetValue(); |
| 176 | } |
| 177 | |
David Brazdil | 36cf095 | 2015-01-08 19:28:33 +0000 | [diff] [blame] | 178 | void VisitDoubleConstant(HDoubleConstant* instruction) OVERRIDE { |
David Brazdil | b7e4a06 | 2014-12-29 15:35:02 +0000 | [diff] [blame] | 179 | output_ << " " << instruction->GetValue(); |
| 180 | } |
| 181 | |
| 182 | void PrintInstruction(HInstruction* instruction) { |
Nicolas Geoffray | f635e63 | 2014-05-14 09:43:38 +0100 | [diff] [blame] | 183 | output_ << instruction->DebugName(); |
David Brazdil | b7e4a06 | 2014-12-29 15:35:02 +0000 | [diff] [blame] | 184 | instruction->Accept(this); |
Nicolas Geoffray | f635e63 | 2014-05-14 09:43:38 +0100 | [diff] [blame] | 185 | if (instruction->InputCount() > 0) { |
| 186 | output_ << " [ "; |
| 187 | for (HInputIterator inputs(instruction); !inputs.Done(); inputs.Advance()) { |
Nicolas Geoffray | b09aacb | 2014-09-17 18:21:53 +0100 | [diff] [blame] | 188 | output_ << GetTypeId(inputs.Current()->GetType()) << inputs.Current()->GetId() << " "; |
Nicolas Geoffray | f635e63 | 2014-05-14 09:43:38 +0100 | [diff] [blame] | 189 | } |
| 190 | output_ << "]"; |
| 191 | } |
Nicolas Geoffray | 86dbb9a | 2014-06-04 11:12:39 +0100 | [diff] [blame] | 192 | if (pass_name_ == kLivenessPassName && instruction->GetLifetimePosition() != kNoLifetime) { |
Nicolas Geoffray | ddb311f | 2014-05-16 09:28:54 +0100 | [diff] [blame] | 193 | output_ << " (liveness: " << instruction->GetLifetimePosition(); |
| 194 | if (instruction->HasLiveInterval()) { |
| 195 | output_ << " "; |
Nicolas Geoffray | a7062e0 | 2014-05-22 12:50:17 +0100 | [diff] [blame] | 196 | const LiveInterval& interval = *instruction->GetLiveInterval(); |
| 197 | interval.Dump(output_); |
Nicolas Geoffray | ddb311f | 2014-05-16 09:28:54 +0100 | [diff] [blame] | 198 | } |
| 199 | output_ << ")"; |
Nicolas Geoffray | 86dbb9a | 2014-06-04 11:12:39 +0100 | [diff] [blame] | 200 | } else if (pass_name_ == kRegisterAllocatorPassName) { |
| 201 | LocationSummary* locations = instruction->GetLocations(); |
| 202 | if (locations != nullptr) { |
| 203 | output_ << " ( "; |
| 204 | for (size_t i = 0; i < instruction->InputCount(); ++i) { |
Nicolas Geoffray | 102cbed | 2014-10-15 18:31:05 +0100 | [diff] [blame] | 205 | DumpLocation(locations->InAt(i)); |
Nicolas Geoffray | 86dbb9a | 2014-06-04 11:12:39 +0100 | [diff] [blame] | 206 | output_ << " "; |
| 207 | } |
| 208 | output_ << ")"; |
| 209 | if (locations->Out().IsValid()) { |
| 210 | output_ << " -> "; |
Nicolas Geoffray | 102cbed | 2014-10-15 18:31:05 +0100 | [diff] [blame] | 211 | DumpLocation(locations->Out()); |
Nicolas Geoffray | 86dbb9a | 2014-06-04 11:12:39 +0100 | [diff] [blame] | 212 | } |
| 213 | } |
Nicolas Geoffray | 26a25ef | 2014-09-30 13:54:09 +0100 | [diff] [blame] | 214 | output_ << " (liveness: " << instruction->GetLifetimePosition() << ")"; |
Nicolas Geoffray | ddb311f | 2014-05-16 09:28:54 +0100 | [diff] [blame] | 215 | } |
Nicolas Geoffray | f635e63 | 2014-05-14 09:43:38 +0100 | [diff] [blame] | 216 | } |
| 217 | |
| 218 | void PrintInstructions(const HInstructionList& list) { |
| 219 | const char* kEndInstructionMarker = "<|@"; |
| 220 | for (HInstructionIterator it(list); !it.Done(); it.Advance()) { |
| 221 | HInstruction* instruction = it.Current(); |
| 222 | AddIndent(); |
| 223 | int bci = 0; |
Nicolas Geoffray | b09aacb | 2014-09-17 18:21:53 +0100 | [diff] [blame] | 224 | output_ << bci << " " << instruction->NumberOfUses() |
| 225 | << " " << GetTypeId(instruction->GetType()) << instruction->GetId() << " "; |
David Brazdil | b7e4a06 | 2014-12-29 15:35:02 +0000 | [diff] [blame] | 226 | PrintInstruction(instruction); |
Nicolas Geoffray | f635e63 | 2014-05-14 09:43:38 +0100 | [diff] [blame] | 227 | output_ << kEndInstructionMarker << std::endl; |
| 228 | } |
| 229 | } |
| 230 | |
Nicolas Geoffray | 86dbb9a | 2014-06-04 11:12:39 +0100 | [diff] [blame] | 231 | void Run() { |
Nicolas Geoffray | f635e63 | 2014-05-14 09:43:38 +0100 | [diff] [blame] | 232 | StartTag("cfg"); |
Nicolas Geoffray | 840e546 | 2015-01-07 16:01:24 +0000 | [diff] [blame] | 233 | std::string pass_desc = std::string(pass_name_) + (is_after_pass_ ? " (after)" : " (before)"); |
| 234 | PrintProperty("name", pass_desc.c_str()); |
Nicolas Geoffray | f635e63 | 2014-05-14 09:43:38 +0100 | [diff] [blame] | 235 | VisitInsertionOrder(); |
| 236 | EndTag("cfg"); |
| 237 | } |
| 238 | |
David Brazdil | b7e4a06 | 2014-12-29 15:35:02 +0000 | [diff] [blame] | 239 | void VisitBasicBlock(HBasicBlock* block) OVERRIDE { |
Nicolas Geoffray | f635e63 | 2014-05-14 09:43:38 +0100 | [diff] [blame] | 240 | StartTag("block"); |
| 241 | PrintProperty("name", "B", block->GetBlockId()); |
Nicolas Geoffray | ddb311f | 2014-05-16 09:28:54 +0100 | [diff] [blame] | 242 | if (block->GetLifetimeStart() != kNoLifetime) { |
| 243 | // Piggy back on these fields to show the lifetime of the block. |
| 244 | PrintInt("from_bci", block->GetLifetimeStart()); |
| 245 | PrintInt("to_bci", block->GetLifetimeEnd()); |
| 246 | } else { |
| 247 | PrintInt("from_bci", -1); |
| 248 | PrintInt("to_bci", -1); |
| 249 | } |
Nicolas Geoffray | f635e63 | 2014-05-14 09:43:38 +0100 | [diff] [blame] | 250 | PrintPredecessors(block); |
| 251 | PrintSuccessors(block); |
| 252 | PrintEmptyProperty("xhandlers"); |
| 253 | PrintEmptyProperty("flags"); |
| 254 | if (block->GetDominator() != nullptr) { |
| 255 | PrintProperty("dominator", "B", block->GetDominator()->GetBlockId()); |
| 256 | } |
| 257 | |
| 258 | StartTag("states"); |
| 259 | StartTag("locals"); |
| 260 | PrintInt("size", 0); |
| 261 | PrintProperty("method", "None"); |
| 262 | for (HInstructionIterator it(block->GetPhis()); !it.Done(); it.Advance()) { |
| 263 | AddIndent(); |
| 264 | HInstruction* instruction = it.Current(); |
Nicolas Geoffray | b09aacb | 2014-09-17 18:21:53 +0100 | [diff] [blame] | 265 | output_ << instruction->GetId() << " " << GetTypeId(instruction->GetType()) |
| 266 | << instruction->GetId() << "[ "; |
Nicolas Geoffray | f635e63 | 2014-05-14 09:43:38 +0100 | [diff] [blame] | 267 | for (HInputIterator inputs(instruction); !inputs.Done(); inputs.Advance()) { |
| 268 | output_ << inputs.Current()->GetId() << " "; |
| 269 | } |
| 270 | output_ << "]" << std::endl; |
| 271 | } |
| 272 | EndTag("locals"); |
| 273 | EndTag("states"); |
| 274 | |
| 275 | StartTag("HIR"); |
| 276 | PrintInstructions(block->GetPhis()); |
| 277 | PrintInstructions(block->GetInstructions()); |
| 278 | EndTag("HIR"); |
| 279 | EndTag("block"); |
| 280 | } |
| 281 | |
| 282 | private: |
| 283 | std::ostream& output_; |
Nicolas Geoffray | 86dbb9a | 2014-06-04 11:12:39 +0100 | [diff] [blame] | 284 | const char* pass_name_; |
Nicolas Geoffray | 840e546 | 2015-01-07 16:01:24 +0000 | [diff] [blame] | 285 | const bool is_after_pass_; |
Nicolas Geoffray | a7062e0 | 2014-05-22 12:50:17 +0100 | [diff] [blame] | 286 | const CodeGenerator& codegen_; |
Nicolas Geoffray | f635e63 | 2014-05-14 09:43:38 +0100 | [diff] [blame] | 287 | size_t indent_; |
| 288 | |
| 289 | DISALLOW_COPY_AND_ASSIGN(HGraphVisualizerPrinter); |
| 290 | }; |
| 291 | |
| 292 | HGraphVisualizer::HGraphVisualizer(std::ostream* output, |
| 293 | HGraph* graph, |
| 294 | const char* string_filter, |
Nicolas Geoffray | a7062e0 | 2014-05-22 12:50:17 +0100 | [diff] [blame] | 295 | const CodeGenerator& codegen, |
Nicolas Geoffray | e53798a | 2014-12-01 10:31:54 +0000 | [diff] [blame] | 296 | const char* method_name) |
David Brazdil | ee690a3 | 2014-12-01 17:04:16 +0000 | [diff] [blame] | 297 | : output_(output), graph_(graph), codegen_(codegen), is_enabled_(false) { |
Nicolas Geoffray | f635e63 | 2014-05-14 09:43:38 +0100 | [diff] [blame] | 298 | if (output == nullptr) { |
| 299 | return; |
| 300 | } |
Nicolas Geoffray | e53798a | 2014-12-01 10:31:54 +0000 | [diff] [blame] | 301 | if (strstr(method_name, string_filter) == nullptr) { |
Nicolas Geoffray | f635e63 | 2014-05-14 09:43:38 +0100 | [diff] [blame] | 302 | return; |
| 303 | } |
| 304 | |
| 305 | is_enabled_ = true; |
Nicolas Geoffray | 840e546 | 2015-01-07 16:01:24 +0000 | [diff] [blame] | 306 | HGraphVisualizerPrinter printer(graph_, *output_, "", true, codegen_); |
Nicolas Geoffray | f635e63 | 2014-05-14 09:43:38 +0100 | [diff] [blame] | 307 | printer.StartTag("compilation"); |
Nicolas Geoffray | e53798a | 2014-12-01 10:31:54 +0000 | [diff] [blame] | 308 | printer.PrintProperty("name", method_name); |
| 309 | printer.PrintProperty("method", method_name); |
Nicolas Geoffray | 0d3f578 | 2014-05-14 09:43:38 +0100 | [diff] [blame] | 310 | printer.PrintTime("date"); |
| 311 | printer.EndTag("compilation"); |
| 312 | } |
| 313 | |
David Brazdil | ee690a3 | 2014-12-01 17:04:16 +0000 | [diff] [blame] | 314 | void HGraphVisualizer::DumpGraph(const char* pass_name, bool is_after_pass) const { |
| 315 | if (is_enabled_) { |
Nicolas Geoffray | 840e546 | 2015-01-07 16:01:24 +0000 | [diff] [blame] | 316 | HGraphVisualizerPrinter printer(graph_, *output_, pass_name, is_after_pass, codegen_); |
David Brazdil | ee690a3 | 2014-12-01 17:04:16 +0000 | [diff] [blame] | 317 | printer.Run(); |
Nicolas Geoffray | f635e63 | 2014-05-14 09:43:38 +0100 | [diff] [blame] | 318 | } |
Nicolas Geoffray | f635e63 | 2014-05-14 09:43:38 +0100 | [diff] [blame] | 319 | } |
| 320 | |
| 321 | } // namespace art |