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

Unified Diff: Source/bindings/core/v8/V8ObjectConstructor.h

Issue 1278983003: Adding allocator annotations to blink classes and structs. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed patch conflict Created 5 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
« no previous file with comments | « Source/bindings/core/v8/V8NPUtils.h ('k') | Source/bindings/core/v8/V8PagePopupControllerBinding.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/core/v8/V8ObjectConstructor.h
diff --git a/Source/bindings/core/v8/V8ObjectConstructor.h b/Source/bindings/core/v8/V8ObjectConstructor.h
index d028d8c71a4a2d038240b291de75b5cca7888563..10b0a1f07eceae14ce0c0257d83aceec7dca1afa 100644
--- a/Source/bindings/core/v8/V8ObjectConstructor.h
+++ b/Source/bindings/core/v8/V8ObjectConstructor.h
@@ -33,6 +33,7 @@
#include "bindings/core/v8/V8PerIsolateData.h"
#include "bindings/core/v8/V8RecursionScope.h"
+#include "wtf/Allocator.h"
#include <v8.h>
@@ -41,6 +42,7 @@ namespace blink {
class Document;
class ConstructorMode {
+ STACK_ALLOCATED();
public:
enum Mode {
WrapExistingObject,
@@ -74,6 +76,7 @@ private:
};
class V8ObjectConstructor {
+ STATIC_ONLY(V8ObjectConstructor);
public:
static v8::MaybeLocal<v8::Object> newInstance(v8::Isolate*, v8::Local<v8::Function>);
static v8::MaybeLocal<v8::Object> newInstance(v8::Isolate*, v8::Local<v8::Function>, int, v8::Local<v8::Value> argv[]);
« no previous file with comments | « Source/bindings/core/v8/V8NPUtils.h ('k') | Source/bindings/core/v8/V8PagePopupControllerBinding.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698