OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/code-stubs.h" | 5 #include "src/code-stubs.h" |
6 #include "src/compiler/js-graph.h" | 6 #include "src/compiler/js-graph.h" |
7 #include "src/compiler/node-properties-inl.h" | 7 #include "src/compiler/node-properties.h" |
8 #include "src/compiler/typer.h" | 8 #include "src/compiler/typer.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
11 namespace internal { | 11 namespace internal { |
12 namespace compiler { | 12 namespace compiler { |
13 | 13 |
14 Node* JSGraph::ImmovableHeapConstant(Handle<HeapObject> object) { | 14 Node* JSGraph::ImmovableHeapConstant(Handle<HeapObject> object) { |
15 Unique<HeapObject> unique = Unique<HeapObject>::CreateImmovable(object); | 15 Unique<HeapObject> unique = Unique<HeapObject>::CreateImmovable(object); |
16 return graph()->NewNode(common()->HeapConstant(unique)); | 16 return graph()->NewNode(common()->HeapConstant(unique)); |
17 } | 17 } |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 &true_constant_, &false_constant_, &null_constant_, | 220 &true_constant_, &false_constant_, &null_constant_, |
221 &zero_constant_, &one_constant_, &nan_constant_}; | 221 &zero_constant_, &one_constant_, &nan_constant_}; |
222 for (size_t i = 0; i < arraysize(ptrs); i++) { | 222 for (size_t i = 0; i < arraysize(ptrs); i++) { |
223 if (ptrs[i]->is_set()) nodes->push_back(ptrs[i]->get()); | 223 if (ptrs[i]->is_set()) nodes->push_back(ptrs[i]->get()); |
224 } | 224 } |
225 } | 225 } |
226 | 226 |
227 } // namespace compiler | 227 } // namespace compiler |
228 } // namespace internal | 228 } // namespace internal |
229 } // namespace v8 | 229 } // namespace v8 |
OLD | NEW |