| Index: Source/bindings/v8/Dictionary.h
|
| diff --git a/Source/bindings/v8/Dictionary.h b/Source/bindings/v8/Dictionary.h
|
| index 27fea21e3156d98c2064dbaae22229f5a1a8f00e..2d50a037606f3f40115eaa924e05a331849f3a67 100644
|
| --- a/Source/bindings/v8/Dictionary.h
|
| +++ b/Source/bindings/v8/Dictionary.h
|
| @@ -55,7 +55,7 @@ class VoidCallback;
|
| class Dictionary {
|
| public:
|
| Dictionary();
|
| - Dictionary(const v8::Local<v8::Value>& options, v8::Isolate*);
|
| + Dictionary(const v8::Handle<v8::Value>& options, v8::Isolate*);
|
| ~Dictionary();
|
|
|
| Dictionary& operator=(const Dictionary&);
|
| @@ -100,15 +100,16 @@ public:
|
|
|
| bool getWithUndefinedOrNullCheck(const String&, String&) const;
|
|
|
| + // Only allow inline allocation.
|
| + void* operator new(size_t, NotNullTag, void* location) { return location; }
|
| +
|
| private:
|
| - bool getKey(const String& key, v8::Local<v8::Value>&) const;
|
| + // Disallow new allocation.
|
| + void* operator new(size_t);
|
|
|
| - // This object can only be used safely when stack allocated because of v8::Local.
|
| - static void* operator new(size_t);
|
| - static void* operator new[](size_t);
|
| - static void operator delete(void *);
|
| + bool getKey(const String& key, v8::Local<v8::Value>&) const;
|
|
|
| - v8::Local<v8::Value> m_options;
|
| + v8::Handle<v8::Value> m_options;
|
| v8::Isolate* m_isolate;
|
| };
|
|
|
|
|