| 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 "bindings/v8/ExceptionState.h" | 10 #include "bindings/v8/ExceptionState.h" |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 V8StringResource<> defaultUndefinedOptionalStringArg; | 104 V8StringResource<> defaultUndefinedOptionalStringArg; |
| 105 V8StringResource<> defaultNullStringOptionalstringArg; | 105 V8StringResource<> defaultNullStringOptionalstringArg; |
| 106 V8StringResource<> optionalStringArg; | 106 V8StringResource<> optionalStringArg; |
| 107 { | 107 { |
| 108 v8::TryCatch block; | 108 v8::TryCatch block; |
| 109 V8RethrowTryCatchScope rethrow(block); | 109 V8RethrowTryCatchScope rethrow(block); |
| 110 TOSTRING_VOID_INTERNAL(stringArg, info[0]); | 110 TOSTRING_VOID_INTERNAL(stringArg, info[0]); |
| 111 TONATIVE_VOID_INTERNAL(defaultUndefinedOptionalBooleanArg, info[1]->Bool
eanValue()); | 111 TONATIVE_VOID_INTERNAL(defaultUndefinedOptionalBooleanArg, info[1]->Bool
eanValue()); |
| 112 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultUndefinedOptionalLongArg, t
oInt32(info[2], exceptionState), exceptionState); | 112 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultUndefinedOptionalLongArg, t
oInt32(info[2], exceptionState), exceptionState); |
| 113 TOSTRING_VOID_INTERNAL(defaultUndefinedOptionalStringArg, info[3]); | 113 TOSTRING_VOID_INTERNAL(defaultUndefinedOptionalStringArg, info[3]); |
| 114 TOSTRING_VOID_INTERNAL(defaultNullStringOptionalstringArg, argumentOrNul
l(info, 4)); | 114 if (info.Length() > 4) { |
| 115 TOSTRING_VOID_INTERNAL(defaultNullStringOptionalstringArg, info[4]); |
| 116 } else { |
| 117 defaultNullStringOptionalstringArg = nullptr; |
| 118 } |
| 115 if (UNLIKELY(info.Length() <= 5)) { | 119 if (UNLIKELY(info.Length() <= 5)) { |
| 116 RefPtr<TestInterfaceNamedConstructor> impl = TestInterfaceNamedConst
ructor::createForJSConstructor(document, stringArg, defaultUndefinedOptionalBool
eanArg, defaultUndefinedOptionalLongArg, defaultUndefinedOptionalStringArg, defa
ultNullStringOptionalstringArg, exceptionState); | 120 RefPtr<TestInterfaceNamedConstructor> impl = TestInterfaceNamedConst
ructor::createForJSConstructor(document, stringArg, defaultUndefinedOptionalBool
eanArg, defaultUndefinedOptionalLongArg, defaultUndefinedOptionalStringArg, defa
ultNullStringOptionalstringArg, exceptionState); |
| 117 v8::Handle<v8::Object> wrapper = info.Holder(); | 121 v8::Handle<v8::Object> wrapper = info.Holder(); |
| 118 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceNamedConstru
ctor>(impl.release(), &V8TestInterfaceNamedConstructorConstructor::wrapperTypeIn
fo, wrapper, isolate, WrapperConfiguration::Dependent); | 122 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceNamedConstru
ctor>(impl.release(), &V8TestInterfaceNamedConstructorConstructor::wrapperTypeIn
fo, wrapper, isolate, WrapperConfiguration::Dependent); |
| 119 v8SetReturnValue(info, wrapper); | 123 v8SetReturnValue(info, wrapper); |
| 120 return; | 124 return; |
| 121 } | 125 } |
| 122 TOSTRING_VOID_INTERNAL(optionalStringArg, info[5]); | 126 TOSTRING_VOID_INTERNAL(optionalStringArg, info[5]); |
| 123 } | 127 } |
| 124 RefPtr<TestInterfaceNamedConstructor> impl = TestInterfaceNamedConstructor::
createForJSConstructor(document, stringArg, defaultUndefinedOptionalBooleanArg,
defaultUndefinedOptionalLongArg, defaultUndefinedOptionalStringArg, defaultNullS
tringOptionalstringArg, optionalStringArg, exceptionState); | 128 RefPtr<TestInterfaceNamedConstructor> impl = TestInterfaceNamedConstructor::
createForJSConstructor(document, stringArg, defaultUndefinedOptionalBooleanArg,
defaultUndefinedOptionalLongArg, defaultUndefinedOptionalStringArg, defaultNullS
tringOptionalstringArg, optionalStringArg, exceptionState); |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 fromInternalPointer(object)->deref(); | 226 fromInternalPointer(object)->deref(); |
| 223 } | 227 } |
| 224 | 228 |
| 225 template<> | 229 template<> |
| 226 v8::Handle<v8::Value> toV8NoInline(TestInterfaceNamedConstructor* impl, v8::Hand
le<v8::Object> creationContext, v8::Isolate* isolate) | 230 v8::Handle<v8::Value> toV8NoInline(TestInterfaceNamedConstructor* impl, v8::Hand
le<v8::Object> creationContext, v8::Isolate* isolate) |
| 227 { | 231 { |
| 228 return toV8(impl, creationContext, isolate); | 232 return toV8(impl, creationContext, isolate); |
| 229 } | 233 } |
| 230 | 234 |
| 231 } // namespace WebCore | 235 } // namespace WebCore |
| OLD | NEW |