OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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 #ifndef V8_PROFILER_STRINGS_STORAGE_H_ | 5 #ifndef V8_PROFILER_STRINGS_STORAGE_H_ |
6 #define V8_PROFILER_STRINGS_STORAGE_H_ | 6 #define V8_PROFILER_STRINGS_STORAGE_H_ |
7 | 7 |
| 8 #include <stdarg.h> |
| 9 |
8 #include "src/allocation.h" | 10 #include "src/allocation.h" |
9 #include "src/base/compiler-specific.h" | 11 #include "src/base/compiler-specific.h" |
10 #include "src/base/hashmap.h" | 12 #include "src/base/hashmap.h" |
11 | 13 |
12 namespace v8 { | 14 namespace v8 { |
13 namespace internal { | 15 namespace internal { |
14 | 16 |
15 // Provides a storage of strings allocated in C++ heap, to hold them | 17 // Provides a storage of strings allocated in C++ heap, to hold them |
16 // forever, even if they disappear from JS heap or external storage. | 18 // forever, even if they disappear from JS heap or external storage. |
17 class StringsStorage { | 19 class StringsStorage { |
(...skipping 20 matching lines...) Expand all Loading... |
38 | 40 |
39 uint32_t hash_seed_; | 41 uint32_t hash_seed_; |
40 base::HashMap names_; | 42 base::HashMap names_; |
41 | 43 |
42 DISALLOW_COPY_AND_ASSIGN(StringsStorage); | 44 DISALLOW_COPY_AND_ASSIGN(StringsStorage); |
43 }; | 45 }; |
44 } // namespace internal | 46 } // namespace internal |
45 } // namespace v8 | 47 } // namespace v8 |
46 | 48 |
47 #endif // V8_PROFILER_STRINGS_STORAGE_H_ | 49 #endif // V8_PROFILER_STRINGS_STORAGE_H_ |
OLD | NEW |