TODO(xpan): This could take a lot of memory.
| 357 | |
| 358 | // TODO(xpan): This could take a lot of memory. |
| 359 | void AddCode(const CodeDef& code, |
| 360 | const std::map<int64, string>* id_to_string) { |
| 361 | if (!call_stack_) { |
| 362 | call_stack_.reset(new CallStack(code, id_to_string)); |
| 363 | } |
| 364 | } |
| 365 | |
| 366 | const string& name() const { return node_.name(); } |
| 367 | int64 id() const { return node_.id(); } |