| Index: src/compiler/js-graph.cc
|
| diff --git a/src/compiler/js-graph.cc b/src/compiler/js-graph.cc
|
| index fef6a074f0e4e7c65f904c844d1521c581f0bc1e..70b7d25b3a7140bc24f45da1a981d12f58c2226c 100644
|
| --- a/src/compiler/js-graph.cc
|
| +++ b/src/compiler/js-graph.cc
|
| @@ -198,6 +198,18 @@ Node* JSGraph::ExternalConstant(ExternalReference reference) {
|
| return *loc;
|
| }
|
|
|
| +
|
| +void JSGraph::GetCachedNodes(NodeVector* nodes) {
|
| + cache_.GetCachedNodes(nodes);
|
| + SetOncePointer<Node>* ptrs[] = {
|
| + &c_entry_stub_constant_, &undefined_constant_, &the_hole_constant_,
|
| + &true_constant_, &false_constant_, &null_constant_,
|
| + &zero_constant_, &one_constant_, &nan_constant_};
|
| + for (size_t i = 0; i < arraysize(ptrs); i++) {
|
| + if (ptrs[i]->is_set()) nodes->push_back(ptrs[i]->get());
|
| + }
|
| +}
|
| +
|
| } // namespace compiler
|
| } // namespace internal
|
| } // namespace v8
|
|
|