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

Side by Side Diff: Source/bindings/tests/results/V8Float64Array.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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 inline v8::Handle<v8::Value> toV8(Float64Array* impl, v8::Handle<v8::Object> cre ationContext, v8::Isolate* isolate) 72 inline v8::Handle<v8::Value> toV8(Float64Array* impl, v8::Handle<v8::Object> cre ationContext, v8::Isolate* isolate)
73 { 73 {
74 if (UNLIKELY(!impl)) 74 if (UNLIKELY(!impl))
75 return v8NullWithCheck(isolate); 75 return v8NullWithCheck(isolate);
76 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8Float64Array>(imp l, isolate); 76 v8::Handle<v8::Value> wrapper = DOMDataStore::getWrapper<V8Float64Array>(imp l, isolate);
77 if (!wrapper.IsEmpty()) 77 if (!wrapper.IsEmpty())
78 return wrapper; 78 return wrapper;
79 return wrap(impl, creationContext, isolate); 79 return wrap(impl, creationContext, isolate);
80 } 80 }
81 81
82 inline UnsafePersistent<v8::Object> toV8Persistent(Float64Array* impl, v8::Handl e<v8::Object> creationContext, v8::Isolate* isolate)
83 {
84 ASSERT(impl);
85
86 UnsafePersistent<v8::Object> wrapperPersistent = DOMDataStore::getWrapperPer sistent<V8Float64Array>(impl, isolate);
87 if (LIKELY(!wrapperPersistent.isEmpty()))
88 return wrapperPersistent;
89
90 wrap(impl, creationContext, isolate);
91
92 wrapperPersistent = DOMDataStore::getWrapperPersistent<V8Float64Array>(impl, isolate);
93 ASSERT(!wrapperPersistent.isEmpty());
94 return wrapperPersistent;
95 }
96
82 template<typename CallbackInfo> 97 template<typename CallbackInfo>
83 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, Float64Array* imp l, v8::Handle<v8::Object> creationContext) 98 inline void v8SetReturnValue(const CallbackInfo& callbackInfo, Float64Array* imp l, v8::Handle<v8::Object> creationContext)
84 { 99 {
85 if (UNLIKELY(!impl)) { 100 if (UNLIKELY(!impl)) {
86 v8SetReturnValueNull(callbackInfo); 101 v8SetReturnValueNull(callbackInfo);
87 return; 102 return;
88 } 103 }
89 if (DOMDataStore::setReturnValueFromWrapper<V8Float64Array>(callbackInfo.Get ReturnValue(), impl)) 104 if (DOMDataStore::setReturnValueFromWrapper<V8Float64Array>(callbackInfo.Get ReturnValue(), impl))
90 return; 105 return;
91 v8::Handle<v8::Object> wrapper = wrap(impl, creationContext, callbackInfo.Ge tIsolate()); 106 v8::Handle<v8::Object> wrapper = wrap(impl, creationContext, callbackInfo.Ge tIsolate());
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 153
139 template<class CallbackInfo, class Wrappable> 154 template<class CallbackInfo, class Wrappable>
140 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Fl oat64Array > impl, Wrappable* wrappable) 155 inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<Fl oat64Array > impl, Wrappable* wrappable)
141 { 156 {
142 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable); 157 v8SetReturnValueFast(callbackInfo, impl.get(), wrappable);
143 } 158 }
144 159
145 } 160 }
146 161
147 #endif // V8Float64Array_h 162 #endif // V8Float64Array_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698