Lines Matching defs:node
86 AllocationNode* node = AddStack();
87 node->allocations_[size]++;
89 std::make_unique<Sample>(size, node, loc, this, next_sample_id());
98 AllocationNode* node = sample->owner;
99 DCHECK_GT(node->allocations_[sample->size], 0);
100 node->allocations_[sample->size]--;
101 if (node->allocations_[sample->size] == 0) {
102 node->allocations_.erase(sample->size);
103 while (node->allocations_.empty() && node->children_.empty() &&
104 node->parent_ && !node->parent_->pinned_) {
105 AllocationNode* parent = node->parent_;
107 node->script_id_, node->script_position_, node->name_);
109 node = parent;
132 AllocationNode* node = &profile_root_;
186 return FindOrAddChildNode(node, name, v8::UnboundScript::kNoScriptId, 0);
199 node = FindOrAddChildNode(node, name, script_id, shared.StartPosition());
203 node =
204 FindOrAddChildNode(node, "(deopt)", v8::UnboundScript::kNoScriptId, 0);
207 return node;
211 AllocationProfile* profile, SamplingHeapProfiler::AllocationNode* node,
213 // By pinning the node we make sure its children won't get disposed if
215 node->pinned_ = true;
221 allocations.reserve(node->allocations_.size());
222 if (node->script_id_ != v8::UnboundScript::kNoScriptId) {
223 auto script_iterator = scripts.find(node->script_id_);
231 line = 1 + Script::GetLineNumber(script, node->script_position_);
232 column = 1 + Script::GetColumnNumber(script, node->script_position_);
235 for (auto alloc : node->allocations_) {
241 isolate_->factory()->InternalizeUtf8String(node->name_)),
242 script_name, node->script_id_, node->script_position_, line, column,
243 node->id_, std::vector<v8::AllocationProfile::Node*>(), allocations});
249 for (const auto& it : node->children_) {
253 node->pinned_ = false;