Home
last modified time | relevance | path

Searched refs:root_ (Results 1 – 25 of 51) sorted by relevance

123

/external/v8/tools/
Dsplaytree.js47 SplayTree.prototype.root_ = null; method in SplayTree
54 return !this.root_;
69 this.root_ = new SplayTree.Node(key, value);
75 if (this.root_.key == key) {
79 if (key > this.root_.key) {
80 node.left = this.root_;
81 node.right = this.root_.right;
82 this.root_.right = null;
84 node.right = this.root_;
85 node.left = this.root_.left;
[all …]
/external/v8/benchmarks/spinning-balls/
Dsplay-tree.js46 SplayTree.prototype.root_ = null; method in SplayTree
53 return !this.root_;
67 this.root_ = new SplayTree.Node(key, value);
73 if (this.root_.key == key) {
77 if (key > this.root_.key) {
78 node.left = this.root_;
79 node.right = this.root_.right;
80 this.root_.right = null;
82 node.right = this.root_;
83 node.left = this.root_.left;
[all …]
/external/v8/src/
Dsplay-tree-inl.h26 root_ = new(allocator_) Node(key, Config::NoValue()); in Insert()
32 int cmp = Config::Compare(key, root_->key_); in Insert()
34 locator->bind(root_); in Insert()
41 locator->bind(root_); in Insert()
49 node->left_ = root_; in InsertInternal()
50 node->right_ = root_->right_; in InsertInternal()
51 root_->right_ = NULL; in InsertInternal()
53 node->right_ = root_; in InsertInternal()
54 node->left_ = root_->left_; in InsertInternal()
55 root_->left_ = NULL; in InsertInternal()
[all …]
/external/v8/benchmarks/
Dsplay.js141 SplayTree.prototype.root_ = null; method in SplayTree
148 return !this.root_;
162 this.root_ = new SplayTree.Node(key, value);
168 if (this.root_.key == key) {
172 if (key > this.root_.key) {
173 node.left = this.root_;
174 node.right = this.root_.right;
175 this.root_.right = null;
177 node.right = this.root_;
178 node.left = this.root_.left;
[all …]
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/Ruby/
DAST.stg220 root_<treeLevel> = @adaptor.create_flat_list
223 @adaptor.add_child( root_<enclosingTreeLevel>, root_<treeLevel> )<\n>
233 @adaptor.add_child( root_<treeLevel>, <createRewriteNodeFromElement(...)> )<\n>
237 @adaptor.add_child( root_<treeLevel>, stream_<label>.next_node )<\n>
241 @adaptor.add_child( root_<treeLevel>, stream_<label>.next_node )<\n>
245 root_<treeLevel> = @adaptor.become_root( stream_<label>.next_node, root_<treeLevel> )<\n>
251 root_<treeLevel> = @adaptor.become_root( <createRewriteNodeFromElement(...)>, root_<treeLevel> )<\n>
255 @adaptor.add_child( root_<treeLevel>, <createImaginaryNode(tokenType=token, ...)> )<\n>
259 root_<treeLevel> = @adaptor.become_root( <createImaginaryNode(tokenType=token, ...)>, root_<treeLev…
269 @adaptor.add_child( root_<treeLevel>, stream_<rule>.next_tree )<\n>
[all …]
DASTTreeParser.stg32 root_<treeLevel> = @adaptor.create_flat_list<\n>
57 @adaptor.add_child( root_<enclosingTreeLevel>, root_<treeLevel> )<\n>
78 @adaptor.add_child( root_<treeLevel>, tree_for_<label> )
104 root_<treeLevel> = @adaptor.become_root( tree_for_<label>, root_<treeLevel> )
120 @adaptor.add_child( root_<treeLevel>, tree_for_<label> )
139 @adaptor.add_child( root_<treeLevel>, tree_for_<label> )
168 root_<treeLevel> = @adaptor.become_root( tree_for_<label>, root_<treeLevel> )
179 @adaptor.add_child( root_<treeLevel>, <label; format="label">.tree )
196 root_<treeLevel> = @adaptor.become_root( <label; format="label">.tree, root_<treeLevel> )
/external/libchrome/base/containers/
Dlinked_list.h147 LinkedList() : root_(&root_, &root_) {} in LinkedList()
151 e->InsertBefore(&root_); in Append()
155 return root_.next(); in head()
159 return root_.previous(); in tail()
163 return &root_; in end()
169 LinkNode<T> root_;
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/ActionScript/
DAST.stg283 var root_<treeLevel>:<ASTLabelType> = <ASTLabelType>(adaptor.nil());
286 adaptor.addChild(root_<enclosingTreeLevel>, root_<treeLevel>);
299 adaptor.addChild(root_<treeLevel>, <createRewriteNodeFromElement(...)>);<\n>
304 adaptor.addChild(root_<treeLevel>, stream_<label>.nextNode());<\n>
309 adaptor.addChild(root_<treeLevel>, stream_<label>.nextNode());<\n>
314 root_<treeLevel> = <ASTLabelType>(adaptor.becomeRoot(stream_<label>.nextNode(), root_<treeLevel>));…
322 root_<treeLevel> = <ASTLabelType>(adaptor.becomeRoot(<createRewriteNodeFromElement(...)>, root_<tre…
326 adaptor.addChild(root_<treeLevel>, <createImaginaryNode(tokenType=token, ...)>);<\n>
330 root_<treeLevel> = <ASTLabelType>(adaptor.becomeRoot(<createImaginaryNode(tokenType=token, ...)>, r…
346 adaptor.addChild(root_<treeLevel>, stream_<rule>.nextTree());<\n>
[all …]
DASTTreeParser.stg72 var root_<treeLevel>:<ASTLabelType> = <ASTLabelType>(adaptor.nil());
96 adaptor.addChild(root_<enclosingTreeLevel>, root_<treeLevel>);
123 adaptor.addChild(root_<treeLevel>, <label>_tree);
148 root_<treeLevel> = <ASTLabelType>(adaptor.becomeRoot(<label>_tree, root_<treeLevel>));
166 adaptor.addChild(root_<treeLevel>, <label>_tree);
186 adaptor.addChild(root_<treeLevel>, <label>_tree);
212 root_<treeLevel> = <ASTLabelType>(adaptor.becomeRoot(<label>_tree, root_<treeLevel>));
227 adaptor.addChild(root_<treeLevel>, <label>.tree);
244 …ons.(actionScope).synpredgate> ) <endif>root_<treeLevel> = <ASTLabelType>(adaptor.becomeRoot(<labe…
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/Java/
DAST.stg283 <ASTLabelType> root_<treeLevel> = (<ASTLabelType>)adaptor.nil();
286 adaptor.addChild(root_<enclosingTreeLevel>, root_<treeLevel>);
299 adaptor.addChild(root_<treeLevel>, <createRewriteNodeFromElement(...)>);<\n>
304 adaptor.addChild(root_<treeLevel>, stream_<label>.nextNode());<\n>
309 adaptor.addChild(root_<treeLevel>, stream_<label>.nextNode());<\n>
314 root_<treeLevel> = (<ASTLabelType>)adaptor.becomeRoot(stream_<label>.nextNode(), root_<treeLevel>);…
322 root_<treeLevel> = (<ASTLabelType>)adaptor.becomeRoot(<createRewriteNodeFromElement(...)>, root_<tr…
326 adaptor.addChild(root_<treeLevel>, <createImaginaryNode(token,terminalOptions,args)>);<\n>
330 root_<treeLevel> = (<ASTLabelType>)adaptor.becomeRoot(<createImaginaryNode(token,terminalOptions,ar…
346 adaptor.addChild(root_<treeLevel>, stream_<rule>.nextTree());<\n>
[all …]
DASTTreeParser.stg71 <ASTLabelType> root_<treeLevel> = (<ASTLabelType>)adaptor.nil();
95 adaptor.addChild(root_<enclosingTreeLevel>, root_<treeLevel>);
122 adaptor.addChild(root_<treeLevel>, <label>_tree);
147 root_<treeLevel> = (<ASTLabelType>)adaptor.becomeRoot(<label>_tree, root_<treeLevel>);
165 adaptor.addChild(root_<treeLevel>, <label>_tree);
185 adaptor.addChild(root_<treeLevel>, <label>_tree);
211 root_<treeLevel> = (<ASTLabelType>)adaptor.becomeRoot(<label>_tree, root_<treeLevel>);
226 adaptor.addChild(root_<treeLevel>, <label>.getTree());
243 ….(actionScope).synpredgate> ) <endif>root_<treeLevel> = (<ASTLabelType>)adaptor.becomeRoot(<label>…
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/JavaScript/
DAST.stg282 var root_<treeLevel> = this.adaptor.nil();
285 this.adaptor.addChild(root_<enclosingTreeLevel>, root_<treeLevel>);
298 this.adaptor.addChild(root_<treeLevel>, <createRewriteNodeFromElement(...)>);<\n>
303 this.adaptor.addChild(root_<treeLevel>, stream_<label>.nextNode());<\n>
308 this.adaptor.addChild(root_<treeLevel>, stream_<label>.nextNode());<\n>
313 root_<treeLevel> = this.adaptor.becomeRoot(stream_<label>.nextNode(), root_<treeLevel>);<\n>
321 root_<treeLevel> = this.adaptor.becomeRoot(<createRewriteNodeFromElement(...)>, root_<treeLevel>);<…
325 this.adaptor.addChild(root_<treeLevel>, <createImaginaryNode(tokenType=token, ...)>);<\n>
329 root_<treeLevel> = this.adaptor.becomeRoot(<createImaginaryNode(tokenType=token, ...)>, root_<treeL…
345 this.adaptor.addChild(root_<treeLevel>, stream_<rule>.nextTree());<\n>
[all …]
DASTTreeParser.stg44 var root_<treeLevel> = this.adaptor.nil();
68 this.adaptor.addChild(root_<enclosingTreeLevel>, root_<treeLevel>);
95 this.adaptor.addChild(root_<treeLevel>, <label>_tree);
120 root_<treeLevel> = this.adaptor.becomeRoot(<label>_tree, root_<treeLevel>);
143 this.adaptor.addChild(root_<treeLevel>, <label>_tree);
169 root_<treeLevel> = this.adaptor.becomeRoot(<label>_tree, root_<treeLevel>);
184 this.adaptor.addChild(root_<treeLevel>, <label>.getTree());
201 …ctions.(actionScope).synpredgate> ) <endif>root_<treeLevel> = this.adaptor.becomeRoot(<label>.getT…
/external/opencv3/3rdparty/libwebp/utils/
Dhuffman.c40 HuffmanTreeNode* const children = tree->root_ + tree->num_nodes_; in AssignChildren()
55 tree->root_ = (HuffmanTreeNode*)WebPSafeMalloc((uint64_t)tree->max_nodes_, in TreeInit()
56 sizeof(*tree->root_)); in TreeInit()
57 if (tree->root_ == NULL) return 0; in TreeInit()
58 TreeNodeInit(tree->root_); // Initialize root. in TreeInit()
65 free(tree->root_); in HuffmanTreeRelease()
66 tree->root_ = NULL; in HuffmanTreeRelease()
122 HuffmanTreeNode* node = tree->root_; in TreeAddSymbol()
123 const HuffmanTreeNode* const max_node = tree->root_ + tree->max_nodes_; in TreeAddSymbol()
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/CSharp2/
DAST.stg310 <ASTLabelType> root_<treeLevel> = (<ASTLabelType>)adaptor.Nil();
313 adaptor.AddChild(root_<enclosingTreeLevel>, root_<treeLevel>);
327 adaptor.AddChild(root_<treeLevel>, <createRewriteNodeFromElement(...)>);<\n>
332 adaptor.AddChild(root_<treeLevel>, stream_<label>.NextNode());<\n>
337 adaptor.AddChild(root_<treeLevel>, stream_<label>.NextNode());<\n>
342 root_<treeLevel> = (<ASTLabelType>)adaptor.BecomeRoot(stream_<label>.NextNode(), root_<treeLevel>);…
350 root_<treeLevel> = (<ASTLabelType>)adaptor.BecomeRoot(<createRewriteNodeFromElement(...)>, root_<tr…
354 adaptor.AddChild(root_<treeLevel>, <createImaginaryNode(tokenType=token, ...)>);<\n>
358 root_<treeLevel> = (<ASTLabelType>)adaptor.BecomeRoot(<createImaginaryNode(tokenType=token, ...)>,
374 adaptor.AddChild(root_<treeLevel>, stream_<rule>.NextTree());<\n>
[all …]
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/CSharp3/
DAST.stg308 <ASTLabelType> root_<treeLevel> = (<ASTLabelType>)adaptor.Nil();
311 adaptor.AddChild(root_<enclosingTreeLevel>, root_<treeLevel>);
325 adaptor.AddChild(root_<treeLevel>, <createRewriteNodeFromElement(...)>);<\n>
330 adaptor.AddChild(root_<treeLevel>, stream_<label>.NextNode());<\n>
335 adaptor.AddChild(root_<treeLevel>, stream_<label>.NextNode());<\n>
340 root_<treeLevel> = (<ASTLabelType>)adaptor.BecomeRoot(stream_<label>.NextNode(), root_<treeLevel>);…
348 root_<treeLevel> = (<ASTLabelType>)adaptor.BecomeRoot(<createRewriteNodeFromElement(...)>, root_<tr…
352 adaptor.AddChild(root_<treeLevel>, <createImaginaryNode(tokenType=token, ...)>);<\n>
356 root_<treeLevel> = (<ASTLabelType>)adaptor.BecomeRoot(<createImaginaryNode(tokenType=token, ...)>,
372 adaptor.AddChild(root_<treeLevel>, stream_<rule>.NextTree());<\n>
[all …]
DASTTreeParser.stg75 <ASTLabelType> root_<treeLevel> = (<ASTLabelType>)adaptor.Nil();
99 adaptor.AddChild(root_<enclosingTreeLevel>, root_<treeLevel>);
126 adaptor.AddChild(root_<treeLevel>, <label>_tree);
151 root_<treeLevel> = (<ASTLabelType>)adaptor.BecomeRoot(<label>_tree, root_<treeLevel>);
169 adaptor.AddChild(root_<treeLevel>, <label>_tree);
189 adaptor.AddChild(root_<treeLevel>, <label>_tree);
215 root_<treeLevel> = (<ASTLabelType>)adaptor.BecomeRoot(<label>_tree, root_<treeLevel>);
230 adaptor.AddChild(root_<treeLevel>, <label>.Tree);
247 …ions.(actionScope).synpredgate>) <endif>root_<treeLevel> = (<ASTLabelType>)adaptor.BecomeRoot(<lab…
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/Python/
DAST.stg314 root_<treeLevel> = self._adaptor.nil()
317 self._adaptor.addChild(root_<enclosingTreeLevel>, root_<treeLevel>)<\n>
329 self._adaptor.addChild(root_<treeLevel>, <createRewriteNodeFromElement(...)>)<\n>
334 self._adaptor.addChild(root_<treeLevel>, stream_<label>.nextNode())<\n>
339 self._adaptor.addChild(root_<treeLevel>, stream_<label>.nextNode())<\n>
344 root_<treeLevel> = self._adaptor.becomeRoot(stream_<label>.nextNode(), root_<treeLevel>)<\n>
352 root_<treeLevel> = self._adaptor.becomeRoot(<createRewriteNodeFromElement(...)>, root_<treeLevel>)<…
356 self._adaptor.addChild(root_<treeLevel>, <createImaginaryNode(token, terminalOptions, args)>)<\n>
360 root_<treeLevel> = self._adaptor.becomeRoot(<createImaginaryNode(token, terminalOptions, args)>, ro…
377 self._adaptor.addChild(root_<treeLevel>, stream_<rule>.nextTree())<\n>
[all …]
DASTTreeParser.stg79 root_<treeLevel> = self._adaptor.nil()<\n>
106 self._adaptor.addChild(root_<enclosingTreeLevel>, root_<treeLevel>)<\n>
133 self._adaptor.addChild(root_<treeLevel>, <label>_tree)
160 root_<treeLevel> = self._adaptor.becomeRoot(<label>_tree, root_<treeLevel>)
178 self._adaptor.addChild(root_<treeLevel>, <label>_tree)
199 self._adaptor.addChild(root_<treeLevel>, <label>_tree)
224 root_<treeLevel> = self._adaptor.becomeRoot(<label>_tree, root_<treeLevel>)
238 self._adaptor.addChild(root_<treeLevel>, <label>.tree)
258 root_<treeLevel> = self._adaptor.becomeRoot(<label>.tree, root_<treeLevel>)
/external/gemmlowp/profiling/
Dprofiler.h174 Node root_; variable
181 printf("%.2f%% %s\n", 100.0f * node->weight / root_.weight, node->label); in PrintNode()
211 AddStackToNode(stack, &root_, 0); in AddStack()
223 node == &root_ ? "other (outside of any label)" : "other"; in AddOtherChildrenToNode()
229 void AddOtherNodes() { AddOtherChildrenToNode(&root_); } in AddOtherNodes()
238 void Sort() { SortNode(&root_); } in Sort()
253 static_cast<int>(root_.weight)); in Print()
254 PrintNode(&root_, 0); in Print()
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/ObjC/
DAST.stg438 … <ASTLabelType> *root_<treeLevel> = (<ASTLabelType> *)[[[treeAdaptor class] newEmptyTree] retain];
441 [treeAdaptor addChild:root_<treeLevel> toTree:root_<enclosingTreeLevel>];
455 [treeAdaptor addChild:<createRewriteNodeFromElement(...)> toTree:root_<treeLevel>];<\n>
460 [treeAdaptor addChild:[stream_<label> nextNode] toTree:root_<treeLevel>];<\n>
465 [treeAdaptor addChild:[stream_<label> nextNode] toTree:root_<treeLevel>];<\n>
470 root_<treeLevel> = (<ASTLabelType> *)[treeAdaptor becomeRoot:[stream_<label> nextNode] old:root_<tr…
478 root_<treeLevel> = (<ASTLabelType> *)[treeAdaptor becomeRoot:<createRewriteNodeFromElement(...)> ol…
482 [treeAdaptor addChild:<createImaginaryNode(tokenType=token, ...)> toTree:root_<treeLevel>];<\n>
486 root_<treeLevel> = (<ASTLabelType> *)[treeAdaptor becomeRoot:<createImaginaryNode(tokenType=token, …
502 [treeAdaptor addChild:[stream_<rule> nextTree] toTree:root_<treeLevel>];<\n>
[all …]
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/C/
DAST.stg427 <ASTLabelType> root_<treeLevel> = (<ASTLabelType>)(ADAPTOR->nilNode(ADAPTOR));
430 ADAPTOR->addChild(ADAPTOR, root_<enclosingTreeLevel>, root_<treeLevel>);
443 ADAPTOR->addChild(ADAPTOR, root_<treeLevel>, <createRewriteNodeFromElement(...)>);<\n>
448 ADAPTOR->addChild(ADAPTOR, root_<treeLevel>, stream_<label> == NULL ? NULL : stream_<label>->nextNo…
453 ADAPTOR->addChild(ADAPTOR, root_<treeLevel>, stream_<label> == NULL ? NULL : stream_<label>->nextNo…
458 root_<treeLevel> = (<ASTLabelType>)(ADAPTOR->becomeRootToken(ADAPTOR, stream_<label> == NULL ? NULL…
466 root_<treeLevel> = (<ASTLabelType>)(ADAPTOR->becomeRoot(ADAPTOR, <createRewriteNodeFromElement(...)…
470 ADAPTOR->addChild(ADAPTOR, root_<treeLevel>, <createImaginaryNode(tokenType=token, ...)>);<\n>
474 root_<treeLevel> = (<ASTLabelType>)(ADAPTOR->becomeRoot(ADAPTOR, <createImaginaryNode(tokenType=tok…
490 ADAPTOR->addChild(ADAPTOR, root_<treeLevel>, stream_<rule> == NULL ? NULL : stream_<rule>->nextTree…
[all …]
DASTTreeParser.stg82 <ASTLabelType> root_<treeLevel>;
87 root_<treeLevel> = (<ASTLabelType>)(ADAPTOR->nilNode(ADAPTOR));
112 ADAPTOR->addChild(ADAPTOR, root_<enclosingTreeLevel>, root_<treeLevel>);
139 ADAPTOR->addChild(ADAPTOR, root_<treeLevel>, <label>_tree);
165 root_<treeLevel> = (<ASTLabelType>)ADAPTOR->becomeRoot(ADAPTOR, <label>_tree, root_<treeLevel>);
183 ADAPTOR->addChild(ADAPTOR, root_<treeLevel>, <label>_tree);
203 ADAPTOR->addChild(ADAPTOR, root_<treeLevel>, <label>_tree);
229 root_<treeLevel> = (<ASTLabelType>)ADAPTOR->becomeRoot(ADAPTOR, <label>_tree, root_<treeLevel>);
246 ADAPTOR->addChild(ADAPTOR, root_<treeLevel>, <label>.tree);
264 …ionScope).synpredgate> ) ) <endif>root_<treeLevel> = (<ASTLabelType>)(ADAPTOR->becomeRoot(ADAPTOR,…
/external/webrtc/webrtc/modules/rtp_rtcp/source/
Dvp8_partition_aggregator.cc148 : root_(NULL), in Vp8PartitionAggregator()
160 root_ = PartitionTreeNode::CreateRootNode(size_vector_, num_partitions_); in Vp8PartitionAggregator()
165 delete root_; in ~Vp8PartitionAggregator()
169 assert(root_); in SetPriorMinMax()
172 root_->set_min_parent_size(min_size); in SetPriorMinMax()
173 root_->set_max_parent_size(max_size); in SetPriorMinMax()
179 assert(root_); in FindOptimalConfiguration()
181 PartitionTreeNode* opt = root_->GetOptimalNode(max_size, penalty); in FindOptimalConfiguration()
/external/antlr/antlr-3.4/tool/src/main/resources/org/antlr/codegen/templates/Perl5/
DASTTreeParser.stg73 <ASTLabelType> root_<treeLevel> = (<ASTLabelType>)adaptor.nil();
97 adaptor.addChild(root_<enclosingTreeLevel>, root_<treeLevel>);
124 adaptor.addChild(root_<treeLevel>, <label>_tree);
149 root_<treeLevel> = (<ASTLabelType>)adaptor.becomeRoot(<label>_tree, root_<treeLevel>);
172 adaptor.addChild(root_<treeLevel>, <label>_tree);
198 root_<treeLevel> = (<ASTLabelType>)adaptor.becomeRoot(<label>_tree, root_<treeLevel>);
213 adaptor.addChild(root_<treeLevel>, <label>.getTree());
230 …>if ( state.backtracking==0 ) <endif>root_<treeLevel> = (<ASTLabelType>)adaptor.becomeRoot(<label>…

123