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

Side by Side Diff: Source/bindings/tests/results/V8TestCustomNamedGetter.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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 class WrapperTypeTraits<TestCustomNamedGetter > { 56 class WrapperTypeTraits<TestCustomNamedGetter > {
57 public: 57 public:
58 static WrapperTypeInfo* info() { return &V8TestCustomNamedGetter::info; } 58 static WrapperTypeInfo* info() { return &V8TestCustomNamedGetter::info; }
59 }; 59 };
60 60
61 61
62 inline v8::Handle<v8::Object> wrap(TestCustomNamedGetter* impl, v8::Handle<v8::O bject> creationContext, v8::Isolate* isolate) 62 inline v8::Handle<v8::Object> wrap(TestCustomNamedGetter* impl, v8::Handle<v8::O bject> creationContext, v8::Isolate* isolate)
63 { 63 {
64 ASSERT(impl); 64 ASSERT(impl);
65 ASSERT(DOMDataStore::getWrapper(impl, isolate).IsEmpty()); 65 ASSERT(DOMDataStore::getWrapper(impl, isolate).IsEmpty());
66 if (ScriptWrappable::wrapperCanBeStoredInObject(impl)) {
67 const WrapperTypeInfo* actualInfo = ScriptWrappable::getTypeInfoFromObje ct(impl);
68 if (actualInfo != &V8TestCustomNamedGetter::info)
69 CRASH();
70 }
66 return V8TestCustomNamedGetter::createWrapper(impl, creationContext, isolate ); 71 return V8TestCustomNamedGetter::createWrapper(impl, creationContext, isolate );
67 } 72 }
68 73
69 inline v8::Handle<v8::Value> toV8(TestCustomNamedGetter* impl, v8::Handle<v8::Ob ject> creationContext, v8::Isolate* isolate) 74 inline v8::Handle<v8::Value> toV8(TestCustomNamedGetter* impl, v8::Handle<v8::Ob ject> creationContext, v8::Isolate* isolate)
70 { 75 {
71 if (UNLIKELY(!impl)) 76 if (UNLIKELY(!impl))
72 return v8NullWithCheck(isolate); 77 return v8NullWithCheck(isolate);
73 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper(impl, isolate); 78 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper(impl, isolate);
74 if (!wrapper.IsEmpty()) 79 if (!wrapper.IsEmpty())
75 return wrapper; 80 return wrapper;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 } 129 }
125 130
126 inline v8::Handle<v8::Value> toV8(PassRefPtr< TestCustomNamedGetter > impl, v8:: Handle<v8::Object> creationContext, v8::Isolate* isolate) 131 inline v8::Handle<v8::Value> toV8(PassRefPtr< TestCustomNamedGetter > impl, v8:: Handle<v8::Object> creationContext, v8::Isolate* isolate)
127 { 132 {
128 return toV8(impl.get(), creationContext, isolate); 133 return toV8(impl.get(), creationContext, isolate);
129 } 134 }
130 135
131 } 136 }
132 137
133 #endif // V8TestCustomNamedGetter_h 138 #endif // V8TestCustomNamedGetter_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698