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

Unified Diff: src/strings-storage.h

Issue 1378253002: Move strings-storage.* to the profiler directory (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebaseline Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/profiler/strings-storage.cc ('k') | src/strings-storage.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/strings-storage.h
diff --git a/src/strings-storage.h b/src/strings-storage.h
deleted file mode 100644
index f81b8e2db410a4c05c544586028dc6f67a1360f8..0000000000000000000000000000000000000000
--- a/src/strings-storage.h
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright 2015 the V8 project authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef V8_STRINGS_STORAGE_H_
-#define V8_STRINGS_STORAGE_H_
-
-#include "src/allocation.h"
-#include "src/hashmap.h"
-
-namespace v8 {
-namespace internal {
-
-// Provides a storage of strings allocated in C++ heap, to hold them
-// forever, even if they disappear from JS heap or external storage.
-class StringsStorage {
- public:
- explicit StringsStorage(Heap* heap);
- ~StringsStorage();
-
- const char* GetCopy(const char* src);
- const char* GetFormatted(const char* format, ...);
- const char* GetVFormatted(const char* format, va_list args);
- const char* GetName(Name* name);
- const char* GetName(int index);
- const char* GetFunctionName(Name* name);
- const char* GetFunctionName(const char* name);
- size_t GetUsedMemorySize() const;
-
- private:
- static const int kMaxNameSize = 1024;
-
- static bool StringsMatch(void* key1, void* key2);
- const char* AddOrDisposeString(char* str, int len);
- HashMap::Entry* GetEntry(const char* str, int len);
-
- uint32_t hash_seed_;
- HashMap names_;
-
- DISALLOW_COPY_AND_ASSIGN(StringsStorage);
-};
-} // namespace internal
-} // namespace v8
-
-#endif // V8_STRINGS_STORAGE_H_
« no previous file with comments | « src/profiler/strings-storage.cc ('k') | src/strings-storage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698