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

Unified Diff: third_party/WebKit/Source/platform/wtf/Assertions.cpp

Issue 2861743002: blink: Remove last (non-bindings-tests) occurences of m_instVars. (Closed)
Patch Set: Created 3 years, 8 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 | « third_party/WebKit/Source/bindings/core/v8/V8BindingDesign.md ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/wtf/Assertions.cpp
diff --git a/third_party/WebKit/Source/platform/wtf/Assertions.cpp b/third_party/WebKit/Source/platform/wtf/Assertions.cpp
index 25f7a8dc62f905965e2ff65dc97c0d1e3e37c2cc..58785d66aed2de1c87289861af57c075c7396b03 100644
--- a/third_party/WebKit/Source/platform/wtf/Assertions.cpp
+++ b/third_party/WebKit/Source/platform/wtf/Assertions.cpp
@@ -128,40 +128,6 @@ static void vprintf_stderr_with_trailing_newline(const char* format,
#pragma GCC diagnostic pop
#endif
-namespace {
-
-class FrameToNameScope {
Nico 2017/05/03 14:55:35 The last client of this was removed in https://cod
- public:
- explicit FrameToNameScope(void*);
- ~FrameToNameScope();
- const char* nullableName() { return m_name; }
-
- private:
- const char* m_name;
- char* m_cxaDemangled;
-};
-
-FrameToNameScope::FrameToNameScope(void* addr) : m_name(0), m_cxaDemangled(0) {
-#if OS(MACOSX) || (OS(LINUX) && !defined(__UCLIBC__))
- Dl_info info;
- if (!dladdr(addr, &info) || !info.dli_sname)
- return;
- const char* mangledName = info.dli_sname;
- if ((m_cxaDemangled = abi::__cxa_demangle(mangledName, 0, 0, 0)))
- m_name = m_cxaDemangled;
- else
- m_name = mangledName;
-#else
- (void)addr;
-#endif
-}
-
-FrameToNameScope::~FrameToNameScope() {
- free(m_cxaDemangled);
-}
-
-} // anonymous namespace
-
#if !LOG_DISABLED
namespace WTF {
« no previous file with comments | « third_party/WebKit/Source/bindings/core/v8/V8BindingDesign.md ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698