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

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

Issue 26792002: Reland: Reland: Implement new Blink IDL attribute [SetReference] (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: codegen impl Created 7 years, 2 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 inline v8::Handle<v8::Value> toV8(TestOverloadedConstructors* impl, v8::Handle<v 8::Object> creationContext, v8::Isolate* isolate) 74 inline v8::Handle<v8::Value> toV8(TestOverloadedConstructors* impl, v8::Handle<v 8::Object> creationContext, v8::Isolate* isolate)
75 { 75 {
76 if (UNLIKELY(!impl)) 76 if (UNLIKELY(!impl))
77 return v8NullWithCheck(isolate); 77 return v8NullWithCheck(isolate);
78 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8TestOverloadedCon structors>(impl, isolate); 78 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8TestOverloadedCon structors>(impl, isolate);
79 if (!wrapper.IsEmpty()) 79 if (!wrapper.IsEmpty())
80 return wrapper; 80 return wrapper;
81 return wrap(impl, creationContext, isolate); 81 return wrap(impl, creationContext, isolate);
82 } 82 }
83 83
84 inline UnsafePersistent<v8::Object> toV8Persistent(TestOverloadedConstructors* i mpl, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
85 {
86 ASSERT(impl);
87
88 UnsafePersistent<v8::Object> wrapperPersistent = DOMDataStore::getWrapperPer sistent<V8TestOverloadedConstructors>(impl, isolate);
89 if (LIKELY(!wrapperPersistent.isEmpty()))
90 return wrapperPersistent;
91
92 wrap(impl, creationContext, isolate);
93
94 wrapperPersistent = DOMDataStore::getWrapperPersistent<V8TestOverloadedConst ructors>(impl, isolate);
95 ASSERT(!wrapperPersistent.isEmpty());
96 return wrapperPersistent;
97 }
98
84 template<typename CallbackInfo> 99 template<typename CallbackInfo>
85 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestOverloadedCon structors* impl, v8::Handle<v8::Object> creationContext) 100 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, TestOverloadedCon structors* impl, v8::Handle<v8::Object> creationContext)
86 { 101 {
87 if (UNLIKELY(!impl)) { 102 if (UNLIKELY(!impl)) {
88 v8SetReturnValueNull(callbackInfo); 103 v8SetReturnValueNull(callbackInfo);
89 return; 104 return;
90 } 105 }
91 if (DOMDataStore::setReturnValueFromWrapper<V8TestOverloadedConstructors>(ca llbackInfo.GetReturnValue(), impl)) 106 if (DOMDataStore::setReturnValueFromWrapper<V8TestOverloadedConstructors>(ca llbackInfo.GetReturnValue(), impl))
92 return; 107 return;
93 v8::Handle<v8::Object> wrapper = wrap(impl, creationContext, callbackInfo.Ge tIsolate()); 108 v8::Handle<v8::Object> wrapper = wrap(impl, creationContext, callbackInfo.Ge tIsolate());
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 155
141 template<class CallbackInfo, class Wrappable> 156 template<class CallbackInfo, class Wrappable>
142 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te stOverloadedConstructors > impl, Wrappable* wrappable) 157 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Te stOverloadedConstructors > impl, Wrappable* wrappable)
143 { 158 {
144 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); 159 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable);
145 } 160 }
146 161
147 } 162 }
148 163
149 #endif // V8TestOverloadedConstructors_h 164 #endif // V8TestOverloadedConstructors_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698