| 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/node-cache.h" | 5 #include "src/compiler/node-cache.h" |
| 6 | 6 |
| 7 #include <cstring> | 7 #include <cstring> |
| 8 | 8 |
| 9 #include "src/globals.h" |
| 9 #include "src/zone/zone-containers.h" | 10 #include "src/zone/zone-containers.h" |
| 10 #include "src/zone/zone.h" | 11 #include "src/zone/zone.h" |
| 11 | 12 |
| 12 namespace v8 { | 13 namespace v8 { |
| 13 namespace internal { | 14 namespace internal { |
| 14 namespace compiler { | 15 namespace compiler { |
| 15 | 16 |
| 16 namespace { | 17 namespace { |
| 17 | 18 |
| 18 enum { kInitialSize = 16u, kLinearProbe = 5u }; | 19 enum { kInitialSize = 16u, kLinearProbe = 5u }; |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 for (size_t i = 0; i < size_ + kLinearProbe; i++) { | 105 for (size_t i = 0; i < size_ + kLinearProbe; i++) { |
| 105 if (entries_[i].value_) nodes->push_back(entries_[i].value_); | 106 if (entries_[i].value_) nodes->push_back(entries_[i].value_); |
| 106 } | 107 } |
| 107 } | 108 } |
| 108 } | 109 } |
| 109 | 110 |
| 110 | 111 |
| 111 // ----------------------------------------------------------------------------- | 112 // ----------------------------------------------------------------------------- |
| 112 // Instantiations | 113 // Instantiations |
| 113 | 114 |
| 115 template class V8_EXPORT_PRIVATE NodeCache<int32_t>; |
| 116 template class V8_EXPORT_PRIVATE NodeCache<int64_t>; |
| 114 | 117 |
| 115 template class NodeCache<int32_t>; | 118 template class V8_EXPORT_PRIVATE NodeCache<RelocInt32Key>; |
| 116 template class NodeCache<int64_t>; | 119 template class V8_EXPORT_PRIVATE NodeCache<RelocInt64Key>; |
| 117 | |
| 118 template class NodeCache<RelocInt32Key>; | |
| 119 template class NodeCache<RelocInt64Key>; | |
| 120 | 120 |
| 121 } // namespace compiler | 121 } // namespace compiler |
| 122 } // namespace internal | 122 } // namespace internal |
| 123 } // namespace v8 | 123 } // namespace v8 |
| OLD | NEW |