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

Side by Side Diff: Source/bindings/tests/results/V8TestInterfaceEventConstructor.cpp

Issue 357413003: IDL: Drop redundant null check for string and wrapper type attributes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: updated Created 6 years, 5 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
6 6
7 #include "config.h" 7 #include "config.h"
8 #include "V8TestInterfaceEventConstructor.h" 8 #include "V8TestInterfaceEventConstructor.h"
9 9
10 #include "bindings/core/v8/custom/V8Uint8ArrayCustom.h" 10 #include "bindings/core/v8/custom/V8Uint8ArrayCustom.h"
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter"); 173 TRACE_EVENT_SET_SAMPLING_STATE("blink", "DOMGetter");
174 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon lyTestInterfaceEmptyArrayAttributeAttributeGetter(info); 174 TestInterfaceEventConstructorV8Internal::initializedByEventConstructorReadon lyTestInterfaceEmptyArrayAttributeAttributeGetter(info);
175 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution"); 175 TRACE_EVENT_SET_SAMPLING_STATE("v8", "V8Execution");
176 } 176 }
177 177
178 static void initializedByEventConstructorReadonlyNullableTestInterfaceEmptyAttri buteAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info) 178 static void initializedByEventConstructorReadonlyNullableTestInterfaceEmptyAttri buteAttributeGetter(const v8::PropertyCallbackInfo<v8::Value>& info)
179 { 179 {
180 v8::Handle<v8::Object> holder = info.Holder(); 180 v8::Handle<v8::Object> holder = info.Holder();
181 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat ive(holder); 181 TestInterfaceEventConstructor* impl = V8TestInterfaceEventConstructor::toNat ive(holder);
182 RefPtr<TestInterfaceEmpty> cppValue(impl->initializedByEventConstructorReado nlyNullableTestInterfaceEmptyAttribute()); 182 RefPtr<TestInterfaceEmpty> cppValue(impl->initializedByEventConstructorReado nlyNullableTestInterfaceEmptyAttribute());
183 if (!cppValue) {
184 v8SetReturnValueNull(info);
185 return;
186 }
187 if (cppValue && DOMDataStore::setReturnValueFromWrapper<V8TestInterfaceEmpty >(info.GetReturnValue(), cppValue.get())) 183 if (cppValue && DOMDataStore::setReturnValueFromWrapper<V8TestInterfaceEmpty >(info.GetReturnValue(), cppValue.get()))
188 return; 184 return;
189 v8::Handle<v8::Value> wrapper = toV8(cppValue.get(), holder, info.GetIsolate ()); 185 v8::Handle<v8::Value> wrapper = toV8(cppValue.get(), holder, info.GetIsolate ());
190 if (!wrapper.IsEmpty()) { 186 if (!wrapper.IsEmpty()) {
191 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString( info.GetIsolate(), "initializedByEventConstructorReadonlyNullableTestInterfaceEm ptyAttribute"), wrapper); 187 V8HiddenValue::setHiddenValue(info.GetIsolate(), holder, v8AtomicString( info.GetIsolate(), "initializedByEventConstructorReadonlyNullableTestInterfaceEm ptyAttribute"), wrapper);
192 v8SetReturnValue(info, wrapper); 188 v8SetReturnValue(info, wrapper);
193 } 189 }
194 } 190 }
195 191
196 static void initializedByEventConstructorReadonlyNullableTestInterfaceEmptyAttri buteAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInf o<v8::Value>& info) 192 static void initializedByEventConstructorReadonlyNullableTestInterfaceEmptyAttri buteAttributeGetterCallback(v8::Local<v8::String>, const v8::PropertyCallbackInf o<v8::Value>& info)
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 #endif // !ENABLE(OILPAN) 419 #endif // !ENABLE(OILPAN)
424 } 420 }
425 421
426 template<> 422 template<>
427 v8::Handle<v8::Value> toV8NoInline(TestInterfaceEventConstructor* impl, v8::Hand le<v8::Object> creationContext, v8::Isolate* isolate) 423 v8::Handle<v8::Value> toV8NoInline(TestInterfaceEventConstructor* impl, v8::Hand le<v8::Object> creationContext, v8::Isolate* isolate)
428 { 424 {
429 return toV8(impl, creationContext, isolate); 425 return toV8(impl, creationContext, isolate);
430 } 426 }
431 427
432 } // namespace WebCore 428 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698