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

Side by Side Diff: third_party/WebKit/Source/platform/heap/Visitor.h

Issue 1714523006: Refactoring: Remove DETAILED_MEMORY_INFRA (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Surpress generating String objects Created 4 years, 10 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 public: 393 public:
394 VisitorScope(ThreadState*, BlinkGC::GCType); 394 VisitorScope(ThreadState*, BlinkGC::GCType);
395 ~VisitorScope(); 395 ~VisitorScope();
396 Visitor* visitor() const { return m_visitor.get(); } 396 Visitor* visitor() const { return m_visitor.get(); }
397 397
398 private: 398 private:
399 ThreadState* m_state; 399 ThreadState* m_state;
400 OwnPtr<Visitor> m_visitor; 400 OwnPtr<Visitor> m_visitor;
401 }; 401 };
402 402
403 #if ENABLE(DETAILED_MEMORY_INFRA)
404 template<typename T>
405 struct TypenameStringTrait {
406 STATIC_ONLY(TypenameStringTrait);
407 static const String get()
408 {
409 return WTF::extractTypeNameFromFunctionName(WTF::extractNameFunction<T>( ));
410 }
411 };
412 #endif
413
414 } // namespace blink 403 } // namespace blink
415 404
416 #endif // Visitor_h 405 #endif // Visitor_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698