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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/OnStackObjectChecker.h

Issue 2272313003: binding: Makes ExceptionState STACK_ALLOCATED(). (Closed)
Patch Set: Synced. Created 4 years, 4 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
Index: third_party/WebKit/Source/bindings/core/v8/OnStackObjectChecker.h
diff --git a/third_party/WebKit/Source/bindings/core/v8/OnStackObjectChecker.h b/third_party/WebKit/Source/bindings/core/v8/OnStackObjectChecker.h
deleted file mode 100644
index 71578da8b0c9c2e655dcd5ad8c9925592895a14c..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/bindings/core/v8/OnStackObjectChecker.h
+++ /dev/null
@@ -1,39 +0,0 @@
-// Copyright 2014 The Chromium 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 OnStackObjectChecker_h
-#define OnStackObjectChecker_h
-
-#include "core/CoreExport.h"
-#include "wtf/HashSet.h"
-#include "wtf/Noncopyable.h"
-
-namespace blink {
-
-#if ENABLE(ASSERT)
-class Dictionary;
-
-// A lifetime checker for C++ objects which must not outlive the owner of an
-// instance of this class. In general, we should rely on Oilpan or RefCounted
-// to manage object lifetime. However, we don't use them for some objects
-// (e.g. Dictionary) for performance reason. This checker is for such objects.
-// The C++ objects to be checked must call add() on creation, and remove() on
-// destruction, respectively.
-class CORE_EXPORT OnStackObjectChecker final {
- WTF_MAKE_NONCOPYABLE(OnStackObjectChecker);
-public:
- OnStackObjectChecker();
- ~OnStackObjectChecker();
-
- void add(Dictionary*);
- void remove(Dictionary*);
-
-private:
- HashSet<Dictionary*> m_dictionaries;
-};
-#endif
-
-} // namespace blink
-
-#endif // OnStackObjectChecker_h

Powered by Google App Engine
This is Rietveld 408576698