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

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

Issue 14348032: Perfrorm binding integrity check using scriptwrappable. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 7 years, 8 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 WebKit open source project. 2 This file is part of the WebKit open source project.
3 This file has been generated by generate-bindings.pl. DO NOT MODIFY! 3 This file has been generated by generate-bindings.pl. 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 class WrapperTypeTraits<TestObj > { 61 class WrapperTypeTraits<TestObj > {
62 public: 62 public:
63 static WrapperTypeInfo* info() { return &V8TestObj::info; } 63 static WrapperTypeInfo* info() { return &V8TestObj::info; }
64 }; 64 };
65 65
66 66
67 inline v8::Handle<v8::Object> wrap(TestObj* impl, v8::Handle<v8::Object> creatio nContext, v8::Isolate* isolate) 67 inline v8::Handle<v8::Object> wrap(TestObj* impl, v8::Handle<v8::Object> creatio nContext, v8::Isolate* isolate)
68 { 68 {
69 ASSERT(impl); 69 ASSERT(impl);
70 ASSERT(DOMDataStore::getWrapper(impl, isolate).IsEmpty()); 70 ASSERT(DOMDataStore::getWrapper(impl, isolate).IsEmpty());
71 if (ScriptWrappable::wrapperCanBeStoredInObject(impl)) {
72 const WrapperTypeInfo* actualInfo = ScriptWrappable::getTypeInfoFromObje ct(impl);
73 if (actualInfo != &V8TestObj::info)
74 CRASH();
75 }
71 return V8TestObj::createWrapper(impl, creationContext, isolate); 76 return V8TestObj::createWrapper(impl, creationContext, isolate);
72 } 77 }
73 78
74 inline v8::Handle<v8::Value> toV8(TestObj* impl, v8::Handle<v8::Object> creation Context, v8::Isolate* isolate) 79 inline v8::Handle<v8::Value> toV8(TestObj* impl, v8::Handle<v8::Object> creation Context, v8::Isolate* isolate)
75 { 80 {
76 if (UNLIKELY(!impl)) 81 if (UNLIKELY(!impl))
77 return v8NullWithCheck(isolate); 82 return v8NullWithCheck(isolate);
78 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper(impl, isolate); 83 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper(impl, isolate);
79 if (!wrapper.IsEmpty()) 84 if (!wrapper.IsEmpty())
80 return wrapper; 85 return wrapper;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 } 134 }
130 135
131 inline v8::Handle<v8::Value> toV8(PassRefPtr< TestObj > impl, v8::Handle<v8::Obj ect> creationContext, v8::Isolate* isolate) 136 inline v8::Handle<v8::Value> toV8(PassRefPtr< TestObj > impl, v8::Handle<v8::Obj ect> creationContext, v8::Isolate* isolate)
132 { 137 {
133 return toV8(impl.get(), creationContext, isolate); 138 return toV8(impl.get(), creationContext, isolate);
134 } 139 }
135 140
136 } 141 }
137 142
138 #endif // V8TestObj_h 143 #endif // V8TestObj_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698