OLD | NEW |
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 "V8TestInterfaceConstructor2.h" | 8 #include "V8TestInterfaceConstructor2.h" |
9 | 9 |
10 #include "bindings/tests/v8/V8TestInterfaceEmpty.h" | 10 #include "bindings/tests/v8/V8TestInterfaceEmpty.h" |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 V8StringResource<> defaultUndefinedOptionalStringArg; | 88 V8StringResource<> defaultUndefinedOptionalStringArg; |
89 V8StringResource<> defaultNullStringOptionalStringArg; | 89 V8StringResource<> defaultNullStringOptionalStringArg; |
90 Dictionary defaultUndefinedOptionalDictionaryArg; | 90 Dictionary defaultUndefinedOptionalDictionaryArg; |
91 V8StringResource<> optionalStringArg; | 91 V8StringResource<> optionalStringArg; |
92 { | 92 { |
93 v8::TryCatch block; | 93 v8::TryCatch block; |
94 V8RethrowTryCatchScope rethrow(block); | 94 V8RethrowTryCatchScope rethrow(block); |
95 TONATIVE_VOID_INTERNAL(testInterfaceEmptyArg, V8TestInterfaceEmpty::toNa
tiveWithTypeCheck(info.GetIsolate(), info[0])); | 95 TONATIVE_VOID_INTERNAL(testInterfaceEmptyArg, V8TestInterfaceEmpty::toNa
tiveWithTypeCheck(info.GetIsolate(), info[0])); |
96 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[1], exceptio
nState), exceptionState); | 96 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[1], exceptio
nState), exceptionState); |
97 TOSTRING_VOID_INTERNAL(defaultUndefinedOptionalStringArg, info[2]); | 97 TOSTRING_VOID_INTERNAL(defaultUndefinedOptionalStringArg, info[2]); |
98 TOSTRING_VOID_INTERNAL(defaultNullStringOptionalStringArg, argumentOrNul
l(info, 3)); | 98 if (info.Length() > 3) { |
| 99 TOSTRING_VOID_INTERNAL(defaultNullStringOptionalStringArg, info[3]); |
| 100 } else { |
| 101 defaultNullStringOptionalStringArg = nullptr; |
| 102 } |
99 TONATIVE_VOID_INTERNAL(defaultUndefinedOptionalDictionaryArg, Dictionary
(info[4], info.GetIsolate())); | 103 TONATIVE_VOID_INTERNAL(defaultUndefinedOptionalDictionaryArg, Dictionary
(info[4], info.GetIsolate())); |
100 if (!defaultUndefinedOptionalDictionaryArg.isUndefinedOrNull() && !defau
ltUndefinedOptionalDictionaryArg.isObject()) { | 104 if (!defaultUndefinedOptionalDictionaryArg.isUndefinedOrNull() && !defau
ltUndefinedOptionalDictionaryArg.isObject()) { |
101 exceptionState.throwTypeError("parameter 5 ('defaultUndefinedOptiona
lDictionaryArg') is not an object."); | 105 exceptionState.throwTypeError("parameter 5 ('defaultUndefinedOptiona
lDictionaryArg') is not an object."); |
102 exceptionState.throwIfNeeded(); | 106 exceptionState.throwIfNeeded(); |
103 return; | 107 return; |
104 } | 108 } |
105 if (UNLIKELY(info.Length() <= 5)) { | 109 if (UNLIKELY(info.Length() <= 5)) { |
106 RefPtr<TestInterfaceConstructor2> impl = TestInterfaceConstructor2::
create(testInterfaceEmptyArg, longArg, defaultUndefinedOptionalStringArg, defaul
tNullStringOptionalStringArg, defaultUndefinedOptionalDictionaryArg); | 110 RefPtr<TestInterfaceConstructor2> impl = TestInterfaceConstructor2::
create(testInterfaceEmptyArg, longArg, defaultUndefinedOptionalStringArg, defaul
tNullStringOptionalStringArg, defaultUndefinedOptionalDictionaryArg); |
107 v8::Handle<v8::Object> wrapper = info.Holder(); | 111 v8::Handle<v8::Object> wrapper = info.Holder(); |
108 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceConstructor2
>(impl.release(), &V8TestInterfaceConstructor2::wrapperTypeInfo, wrapper, isolat
e, WrapperConfiguration::Independent); | 112 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceConstructor2
>(impl.release(), &V8TestInterfaceConstructor2::wrapperTypeInfo, wrapper, isolat
e, WrapperConfiguration::Independent); |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 fromInternalPointer(object)->deref(); | 265 fromInternalPointer(object)->deref(); |
262 } | 266 } |
263 | 267 |
264 template<> | 268 template<> |
265 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor2* impl, v8::Handle<v
8::Object> creationContext, v8::Isolate* isolate) | 269 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor2* impl, v8::Handle<v
8::Object> creationContext, v8::Isolate* isolate) |
266 { | 270 { |
267 return toV8(impl, creationContext, isolate); | 271 return toV8(impl, creationContext, isolate); |
268 } | 272 } |
269 | 273 |
270 } // namespace WebCore | 274 } // namespace WebCore |
OLD | NEW |