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 "V8TestInterfaceNamedConstructor.h" | 8 #include "V8TestInterfaceNamedConstructor.h" |
9 | 9 |
10 #include "RuntimeEnabledFeatures.h" | 10 #include "RuntimeEnabledFeatures.h" |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 | 89 |
90 // Make sure the document is added to the DOM Node map. Otherwise, the TestI
nterfaceNamedConstructor instance | 90 // Make sure the document is added to the DOM Node map. Otherwise, the TestI
nterfaceNamedConstructor instance |
91 // may end up being the only node in the map and get garbage-collected prema
turely. | 91 // may end up being the only node in the map and get garbage-collected prema
turely. |
92 toV8(document, info.Holder(), isolate); | 92 toV8(document, info.Holder(), isolate); |
93 | 93 |
94 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInte
rfaceNamedConstructor", info.Holder(), isolate); | 94 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInte
rfaceNamedConstructor", info.Holder(), isolate); |
95 if (UNLIKELY(info.Length() < 1)) { | 95 if (UNLIKELY(info.Length() < 1)) { |
96 throwArityTypeError(exceptionState, 1, info.Length()); | 96 throwArityTypeError(exceptionState, 1, info.Length()); |
97 return; | 97 return; |
98 } | 98 } |
99 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, stringArg, info[0])
; | 99 V8STRINGRESOURCE_PREPARE_VOID(V8StringResource<>, stringArg, info[0]); |
100 V8TRYCATCH_VOID(bool, defaultUndefinedOptionalBooleanArg, info[1]->BooleanVa
lue()); | 100 V8TRYCATCH_VOID(bool, defaultUndefinedOptionalBooleanArg, info[1]->BooleanVa
lue()); |
101 V8TRYCATCH_EXCEPTION_VOID(int, defaultUndefinedOptionalLongArg, toInt32(info
[2], exceptionState), exceptionState); | 101 V8TRYCATCH_VOID_EXCEPTION(int, defaultUndefinedOptionalLongArg, toInt32(info
[2], exceptionState), exceptionState); |
102 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, defaultUndefinedOpt
ionalStringArg, info[3]); | 102 V8STRINGRESOURCE_PREPARE_VOID(V8StringResource<>, defaultUndefinedOptionalSt
ringArg, info[3]); |
103 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, defaultNullStringOp
tionalstringArg, argumentOrNull(info, 4)); | 103 V8STRINGRESOURCE_PREPARE_VOID(V8StringResource<>, defaultNullStringOptionals
tringArg, argumentOrNull(info, 4)); |
104 if (UNLIKELY(info.Length() <= 5)) { | 104 if (UNLIKELY(info.Length() <= 5)) { |
105 RefPtr<TestInterfaceNamedConstructor> impl = TestInterfaceNamedConstruct
or::createForJSConstructor(stringArg, defaultUndefinedOptionalBooleanArg, defaul
tUndefinedOptionalLongArg, defaultUndefinedOptionalStringArg, defaultNullStringO
ptionalstringArg); | 105 RefPtr<TestInterfaceNamedConstructor> impl = TestInterfaceNamedConstruct
or::createForJSConstructor(stringArg, defaultUndefinedOptionalBooleanArg, defaul
tUndefinedOptionalLongArg, defaultUndefinedOptionalStringArg, defaultNullStringO
ptionalstringArg); |
106 v8::Handle<v8::Object> wrapper = info.Holder(); | 106 v8::Handle<v8::Object> wrapper = info.Holder(); |
107 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceNamedConstructor
>(impl.release(), &V8TestInterfaceNamedConstructorConstructor::wrapperTypeInfo,
wrapper, isolate, WrapperConfiguration::Dependent); | 107 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceNamedConstructor
>(impl.release(), &V8TestInterfaceNamedConstructorConstructor::wrapperTypeInfo,
wrapper, isolate, WrapperConfiguration::Dependent); |
108 v8SetReturnValue(info, wrapper); | 108 v8SetReturnValue(info, wrapper); |
109 return; | 109 return; |
110 } | 110 } |
111 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, optionalStringArg,
info[5]); | 111 V8STRINGRESOURCE_PREPARE_VOID(V8StringResource<>, optionalStringArg, info[5]
); |
112 RefPtr<TestInterfaceNamedConstructor> impl = TestInterfaceNamedConstructor::
createForJSConstructor(*document, stringArg, defaultUndefinedOptionalBooleanArg,
defaultUndefinedOptionalLongArg, defaultUndefinedOptionalStringArg, defaultNull
StringOptionalstringArg, optionalStringArg, exceptionState); | 112 RefPtr<TestInterfaceNamedConstructor> impl = TestInterfaceNamedConstructor::
createForJSConstructor(*document, stringArg, defaultUndefinedOptionalBooleanArg,
defaultUndefinedOptionalLongArg, defaultUndefinedOptionalStringArg, defaultNull
StringOptionalstringArg, optionalStringArg, exceptionState); |
113 if (exceptionState.throwIfNeeded()) | 113 if (exceptionState.throwIfNeeded()) |
114 return; | 114 return; |
115 | 115 |
116 v8::Handle<v8::Object> wrapper = info.Holder(); | 116 v8::Handle<v8::Object> wrapper = info.Holder(); |
117 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceNamedConstructor>(im
pl.release(), &V8TestInterfaceNamedConstructorConstructor::wrapperTypeInfo, wrap
per, isolate, WrapperConfiguration::Dependent); | 117 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceNamedConstructor>(im
pl.release(), &V8TestInterfaceNamedConstructorConstructor::wrapperTypeInfo, wrap
per, isolate, WrapperConfiguration::Dependent); |
118 v8SetReturnValue(info, wrapper); | 118 v8SetReturnValue(info, wrapper); |
119 } | 119 } |
120 | 120 |
121 v8::Handle<v8::FunctionTemplate> V8TestInterfaceNamedConstructorConstructor::dom
Template(v8::Isolate* isolate) | 121 v8::Handle<v8::FunctionTemplate> V8TestInterfaceNamedConstructorConstructor::dom
Template(v8::Isolate* isolate) |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 fromInternalPointer(object)->deref(); | 212 fromInternalPointer(object)->deref(); |
213 } | 213 } |
214 | 214 |
215 template<> | 215 template<> |
216 v8::Handle<v8::Value> toV8NoInline(TestInterfaceNamedConstructor* impl, v8::Hand
le<v8::Object> creationContext, v8::Isolate* isolate) | 216 v8::Handle<v8::Value> toV8NoInline(TestInterfaceNamedConstructor* impl, v8::Hand
le<v8::Object> creationContext, v8::Isolate* isolate) |
217 { | 217 { |
218 return toV8(impl, creationContext, isolate); | 218 return toV8(impl, creationContext, isolate); |
219 } | 219 } |
220 | 220 |
221 } // namespace WebCore | 221 } // namespace WebCore |
OLD | NEW |