Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(126)

Side by Side Diff: src/profiler/strings-storage.h

Issue 2369963002: [base] Remove PointersMatch, making a separate std::equals hashmap (Closed)
Patch Set: Fix the other simulators Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/profiler/profile-generator.h ('k') | src/runtime/runtime.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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> 8 #include <stdarg.h>
9 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 18 matching lines...) Expand all
29 const char* GetName(int index); 29 const char* GetName(int index);
30 const char* GetFunctionName(Name* name); 30 const char* GetFunctionName(Name* name);
31 const char* GetFunctionName(const char* name); 31 const char* GetFunctionName(const char* name);
32 size_t GetUsedMemorySize() const; 32 size_t GetUsedMemorySize() const;
33 33
34 private: 34 private:
35 static const int kMaxNameSize = 1024; 35 static const int kMaxNameSize = 1024;
36 36
37 static bool StringsMatch(void* key1, void* key2); 37 static bool StringsMatch(void* key1, void* key2);
38 const char* AddOrDisposeString(char* str, int len); 38 const char* AddOrDisposeString(char* str, int len);
39 base::HashMap::Entry* GetEntry(const char* str, int len); 39 base::CustomMatcherHashMap::Entry* GetEntry(const char* str, int len);
40 40
41 uint32_t hash_seed_; 41 uint32_t hash_seed_;
42 base::HashMap names_; 42 base::CustomMatcherHashMap names_;
43 43
44 DISALLOW_COPY_AND_ASSIGN(StringsStorage); 44 DISALLOW_COPY_AND_ASSIGN(StringsStorage);
45 }; 45 };
46 } // namespace internal 46 } // namespace internal
47 } // namespace v8 47 } // namespace v8
48 48
49 #endif // V8_PROFILER_STRINGS_STORAGE_H_ 49 #endif // V8_PROFILER_STRINGS_STORAGE_H_
OLDNEW
« no previous file with comments | « src/profiler/profile-generator.h ('k') | src/runtime/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698