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/compiler/common-node-cache.h" | 5 #include "src/compiler/common-node-cache.h" |
6 | 6 |
7 #include "src/assembler.h" | 7 #include "src/assembler.h" |
8 #include "src/compiler/node.h" | 8 #include "src/compiler/node.h" |
| 9 #include "src/objects-inl.h" // TODO(mstarzinger): Temporary cycle breaker! |
9 | 10 |
10 namespace v8 { | 11 namespace v8 { |
11 namespace internal { | 12 namespace internal { |
12 namespace compiler { | 13 namespace compiler { |
13 | 14 |
14 Node** CommonNodeCache::FindExternalConstant(ExternalReference value) { | 15 Node** CommonNodeCache::FindExternalConstant(ExternalReference value) { |
15 return external_constants_.Find(zone(), bit_cast<intptr_t>(value.address())); | 16 return external_constants_.Find(zone(), bit_cast<intptr_t>(value.address())); |
16 } | 17 } |
17 | 18 |
18 | 19 |
19 void CommonNodeCache::GetCachedNodes(ZoneVector<Node*>* nodes) { | 20 void CommonNodeCache::GetCachedNodes(ZoneVector<Node*>* nodes) { |
20 int32_constants_.GetCachedNodes(nodes); | 21 int32_constants_.GetCachedNodes(nodes); |
21 int64_constants_.GetCachedNodes(nodes); | 22 int64_constants_.GetCachedNodes(nodes); |
22 float32_constants_.GetCachedNodes(nodes); | 23 float32_constants_.GetCachedNodes(nodes); |
23 float64_constants_.GetCachedNodes(nodes); | 24 float64_constants_.GetCachedNodes(nodes); |
24 external_constants_.GetCachedNodes(nodes); | 25 external_constants_.GetCachedNodes(nodes); |
25 number_constants_.GetCachedNodes(nodes); | 26 number_constants_.GetCachedNodes(nodes); |
26 } | 27 } |
27 | 28 |
28 } // namespace compiler | 29 } // namespace compiler |
29 } // namespace internal | 30 } // namespace internal |
30 } // namespace v8 | 31 } // namespace v8 |
OLD | NEW |