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

Side by Side Diff: Source/bindings/tests/results/V8TestActiveDOMObject.h

Issue 14348032: Perfrorm binding integrity check using scriptwrappable. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: roll in fix from https://codereview.chromium.org/14520011/ Created 7 years, 7 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 This file is part of the Blink open source project. 2 This file is part of the Blink open source project.
3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY! 3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY!
4 4
5 This library is free software; you can redistribute it and/or 5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public 6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either 7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version. 8 version 2 of the License, or (at your option) any later version.
9 9
10 This library is distributed in the hope that it will be useful, 10 This library is distributed in the hope that it will be useful,
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 class WrapperTypeTraits<TestActiveDOMObject > { 55 class WrapperTypeTraits<TestActiveDOMObject > {
56 public: 56 public:
57 static WrapperTypeInfo* info() { return &V8TestActiveDOMObject::info; } 57 static WrapperTypeInfo* info() { return &V8TestActiveDOMObject::info; }
58 }; 58 };
59 59
60 60
61 inline v8::Handle<v8::Object> wrap(TestActiveDOMObject* impl, v8::Handle<v8::Obj ect> creationContext, v8::Isolate* isolate) 61 inline v8::Handle<v8::Object> wrap(TestActiveDOMObject* impl, v8::Handle<v8::Obj ect> creationContext, v8::Isolate* isolate)
62 { 62 {
63 ASSERT(impl); 63 ASSERT(impl);
64 ASSERT(DOMDataStore::getWrapper(impl, isolate).IsEmpty()); 64 ASSERT(DOMDataStore::getWrapper(impl, isolate).IsEmpty());
65 if (ScriptWrappable::wrapperCanBeStoredInObject(impl)) {
66 const WrapperTypeInfo* actualInfo = ScriptWrappable::getTypeInfoFromObje ct(impl);
67 // Might be a XXXConstructor::info instead of an XXX::info. These will b oth have
68 // the same object de-ref functions, though, so use that as the basis of the check.
69 RELEASE_ASSERT(actualInfo->derefObjectFunction == V8TestActiveDOMObject: :info.derefObjectFunction);
70 }
65 return V8TestActiveDOMObject::createWrapper(impl, creationContext, isolate); 71 return V8TestActiveDOMObject::createWrapper(impl, creationContext, isolate);
66 } 72 }
67 73
68 inline v8::Handle<v8::Value> toV8(TestActiveDOMObject* impl, v8::Handle<v8::Obje ct> creationContext, v8::Isolate* isolate) 74 inline v8::Handle<v8::Value> toV8(TestActiveDOMObject* impl, v8::Handle<v8::Obje ct> creationContext, v8::Isolate* isolate)
69 { 75 {
70 if (UNLIKELY(!impl)) 76 if (UNLIKELY(!impl))
71 return v8NullWithCheck(isolate); 77 return v8NullWithCheck(isolate);
72 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper(impl, isolate); 78 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper(impl, isolate);
73 if (!wrapper.IsEmpty()) 79 if (!wrapper.IsEmpty())
74 return wrapper; 80 return wrapper;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 } 129 }
124 130
125 inline v8::Handle<v8::Value> toV8(PassRefPtr< TestActiveDOMObject > impl, v8::Ha ndle<v8::Object> creationContext, v8::Isolate* isolate) 131 inline v8::Handle<v8::Value> toV8(PassRefPtr< TestActiveDOMObject > impl, v8::Ha ndle<v8::Object> creationContext, v8::Isolate* isolate)
126 { 132 {
127 return toV8(impl.get(), creationContext, isolate); 133 return toV8(impl.get(), creationContext, isolate);
128 } 134 }
129 135
130 } 136 }
131 137
132 #endif // V8TestActiveDOMObject_h 138 #endif // V8TestActiveDOMObject_h
OLDNEW
« no previous file with comments | « Source/bindings/scripts/CodeGeneratorV8.pm ('k') | Source/bindings/tests/results/V8TestCustomNamedGetter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698