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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
103 V8StringResource<> defaultUndefinedOptionalStringArg; | 103 V8StringResource<> defaultUndefinedOptionalStringArg; |
104 V8StringResource<> defaultNullStringOptionalstringArg; | 104 V8StringResource<> defaultNullStringOptionalstringArg; |
105 V8StringResource<> optionalStringArg; | 105 V8StringResource<> optionalStringArg; |
106 { | 106 { |
107 v8::TryCatch block; | 107 v8::TryCatch block; |
108 V8RethrowTryCatchScope rethrow(block); | 108 V8RethrowTryCatchScope rethrow(block); |
109 TOSTRING_VOID_INTERNAL(stringArg, info[0]); | 109 TOSTRING_VOID_INTERNAL(stringArg, info[0]); |
110 TONATIVE_VOID_INTERNAL(defaultUndefinedOptionalBooleanArg, info[1]->Bool eanValue()); | 110 TONATIVE_VOID_INTERNAL(defaultUndefinedOptionalBooleanArg, info[1]->Bool eanValue()); |
111 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultUndefinedOptionalLongArg, t oInt32(info[2], exceptionState), exceptionState); | 111 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultUndefinedOptionalLongArg, t oInt32(info[2], exceptionState), exceptionState); |
112 TOSTRING_VOID_INTERNAL(defaultUndefinedOptionalStringArg, info[3]); | 112 TOSTRING_VOID_INTERNAL(defaultUndefinedOptionalStringArg, info[3]); |
113 TOSTRING_VOID_INTERNAL(defaultNullStringOptionalstringArg, argumentOrNul l(info, 4)); | 113 if (info.Length() > 4) { |
Jens Widell
2014/06/16 13:22:29
The generated code changes like this everywhere "=
| |
114 TOSTRING_VOID_INTERNAL(defaultNullStringOptionalstringArg, info[4]); | |
115 } else { | |
116 defaultNullStringOptionalstringArg = nullptr; | |
117 } | |
114 if (UNLIKELY(info.Length() <= 5)) { | 118 if (UNLIKELY(info.Length() <= 5)) { |
115 RefPtr<TestInterfaceNamedConstructor> impl = TestInterfaceNamedConst ructor::createForJSConstructor(stringArg, defaultUndefinedOptionalBooleanArg, de faultUndefinedOptionalLongArg, defaultUndefinedOptionalStringArg, defaultNullStr ingOptionalstringArg); | 119 RefPtr<TestInterfaceNamedConstructor> impl = TestInterfaceNamedConst ructor::createForJSConstructor(stringArg, defaultUndefinedOptionalBooleanArg, de faultUndefinedOptionalLongArg, defaultUndefinedOptionalStringArg, defaultNullStr ingOptionalstringArg); |
116 v8::Handle<v8::Object> wrapper = info.Holder(); | 120 v8::Handle<v8::Object> wrapper = info.Holder(); |
117 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceNamedConstru ctor>(impl.release(), &V8TestInterfaceNamedConstructorConstructor::wrapperTypeIn fo, wrapper, isolate, WrapperConfiguration::Dependent); | 121 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceNamedConstru ctor>(impl.release(), &V8TestInterfaceNamedConstructorConstructor::wrapperTypeIn fo, wrapper, isolate, WrapperConfiguration::Dependent); |
118 v8SetReturnValue(info, wrapper); | 122 v8SetReturnValue(info, wrapper); |
119 return; | 123 return; |
120 } | 124 } |
121 TOSTRING_VOID_INTERNAL(optionalStringArg, info[5]); | 125 TOSTRING_VOID_INTERNAL(optionalStringArg, info[5]); |
122 } | 126 } |
123 RefPtr<TestInterfaceNamedConstructor> impl = TestInterfaceNamedConstructor:: createForJSConstructor(*document, stringArg, defaultUndefinedOptionalBooleanArg, defaultUndefinedOptionalLongArg, defaultUndefinedOptionalStringArg, defaultNull StringOptionalstringArg, optionalStringArg, exceptionState); | 127 RefPtr<TestInterfaceNamedConstructor> impl = TestInterfaceNamedConstructor:: createForJSConstructor(*document, stringArg, defaultUndefinedOptionalBooleanArg, defaultUndefinedOptionalLongArg, defaultUndefinedOptionalStringArg, defaultNull StringOptionalstringArg, optionalStringArg, exceptionState); |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
221 fromInternalPointer(object)->deref(); | 225 fromInternalPointer(object)->deref(); |
222 } | 226 } |
223 | 227 |
224 template<> | 228 template<> |
225 v8::Handle<v8::Value> toV8NoInline(TestInterfaceNamedConstructor* impl, v8::Hand le<v8::Object> creationContext, v8::Isolate* isolate) | 229 v8::Handle<v8::Value> toV8NoInline(TestInterfaceNamedConstructor* impl, v8::Hand le<v8::Object> creationContext, v8::Isolate* isolate) |
226 { | 230 { |
227 return toV8(impl, creationContext, isolate); | 231 return toV8(impl, creationContext, isolate); |
228 } | 232 } |
229 | 233 |
230 } // namespace WebCore | 234 } // namespace WebCore |
OLD | NEW |