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/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 exceptionState.throwIfNeeded(); | 76 exceptionState.throwIfNeeded(); |
77 return; | 77 return; |
78 } | 78 } |
79 V8StringResource<> stringArg; | 79 V8StringResource<> stringArg; |
80 bool defaultUndefinedOptionalBooleanArg; | 80 bool defaultUndefinedOptionalBooleanArg; |
81 int defaultUndefinedOptionalLongArg; | 81 int defaultUndefinedOptionalLongArg; |
82 V8StringResource<> defaultUndefinedOptionalStringArg; | 82 V8StringResource<> defaultUndefinedOptionalStringArg; |
83 V8StringResource<> defaultNullStringOptionalstringArg; | 83 V8StringResource<> defaultNullStringOptionalstringArg; |
84 V8StringResource<> optionalStringArg; | 84 V8StringResource<> optionalStringArg; |
85 { | 85 { |
86 TOSTRING_VOID_INTERNAL(stringArg, info[0]); | 86 stringArg = info[0]; |
| 87 if (!stringArg.prepare()) |
| 88 return; |
87 defaultUndefinedOptionalBooleanArg = info[1]->BooleanValue(); | 89 defaultUndefinedOptionalBooleanArg = info[1]->BooleanValue(); |
88 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultUndefinedOptionalLongArg, t
oInt32(info[2], exceptionState), exceptionState); | 90 defaultUndefinedOptionalLongArg = toInt32(info[2], exceptionState); |
89 TOSTRING_VOID_INTERNAL(defaultUndefinedOptionalStringArg, info[3]); | 91 if (exceptionState.throwIfNeeded()) |
| 92 return; |
| 93 defaultUndefinedOptionalStringArg = info[3]; |
| 94 if (!defaultUndefinedOptionalStringArg.prepare()) |
| 95 return; |
90 if (!info[4]->IsUndefined()) { | 96 if (!info[4]->IsUndefined()) { |
91 TOSTRING_VOID_INTERNAL(defaultNullStringOptionalstringArg, info[4]); | 97 defaultNullStringOptionalstringArg = info[4]; |
| 98 if (!defaultNullStringOptionalstringArg.prepare()) |
| 99 return; |
92 } else { | 100 } else { |
93 defaultNullStringOptionalstringArg = nullptr; | 101 defaultNullStringOptionalstringArg = nullptr; |
94 } | 102 } |
95 if (UNLIKELY(info.Length() <= 5)) { | 103 if (UNLIKELY(info.Length() <= 5)) { |
96 Document& document = *toDocument(currentExecutionContext(info.GetIso
late())); | 104 Document& document = *toDocument(currentExecutionContext(info.GetIso
late())); |
97 RefPtr<TestInterfaceNamedConstructor> impl = TestInterfaceNamedConst
ructor::createForJSConstructor(document, stringArg, defaultUndefinedOptionalBool
eanArg, defaultUndefinedOptionalLongArg, defaultUndefinedOptionalStringArg, defa
ultNullStringOptionalstringArg, exceptionState); | 105 RefPtr<TestInterfaceNamedConstructor> impl = TestInterfaceNamedConst
ructor::createForJSConstructor(document, stringArg, defaultUndefinedOptionalBool
eanArg, defaultUndefinedOptionalLongArg, defaultUndefinedOptionalStringArg, defa
ultNullStringOptionalstringArg, exceptionState); |
98 if (exceptionState.hadException()) { | 106 if (exceptionState.hadException()) { |
99 exceptionState.throwIfNeeded(); | 107 exceptionState.throwIfNeeded(); |
100 return; | 108 return; |
101 } | 109 } |
102 v8::Local<v8::Object> wrapper = info.Holder(); | 110 v8::Local<v8::Object> wrapper = info.Holder(); |
103 impl->associateWithWrapper(info.GetIsolate(), &V8TestInterfaceNamedC
onstructorConstructor::wrapperTypeInfo, wrapper); | 111 impl->associateWithWrapper(info.GetIsolate(), &V8TestInterfaceNamedC
onstructorConstructor::wrapperTypeInfo, wrapper); |
104 v8SetReturnValue(info, wrapper); | 112 v8SetReturnValue(info, wrapper); |
105 return; | 113 return; |
106 } | 114 } |
107 TOSTRING_VOID_INTERNAL(optionalStringArg, info[5]); | 115 optionalStringArg = info[5]; |
| 116 if (!optionalStringArg.prepare()) |
| 117 return; |
108 } | 118 } |
109 Document& document = *toDocument(currentExecutionContext(info.GetIsolate()))
; | 119 Document& document = *toDocument(currentExecutionContext(info.GetIsolate()))
; |
110 RefPtr<TestInterfaceNamedConstructor> impl = TestInterfaceNamedConstructor::
createForJSConstructor(document, stringArg, defaultUndefinedOptionalBooleanArg,
defaultUndefinedOptionalLongArg, defaultUndefinedOptionalStringArg, defaultNullS
tringOptionalstringArg, optionalStringArg, exceptionState); | 120 RefPtr<TestInterfaceNamedConstructor> impl = TestInterfaceNamedConstructor::
createForJSConstructor(document, stringArg, defaultUndefinedOptionalBooleanArg,
defaultUndefinedOptionalLongArg, defaultUndefinedOptionalStringArg, defaultNullS
tringOptionalstringArg, optionalStringArg, exceptionState); |
111 if (exceptionState.hadException()) { | 121 if (exceptionState.hadException()) { |
112 exceptionState.throwIfNeeded(); | 122 exceptionState.throwIfNeeded(); |
113 return; | 123 return; |
114 } | 124 } |
115 v8::Local<v8::Object> wrapper = info.Holder(); | 125 v8::Local<v8::Object> wrapper = info.Holder(); |
116 impl->associateWithWrapper(info.GetIsolate(), &V8TestInterfaceNamedConstruct
orConstructor::wrapperTypeInfo, wrapper); | 126 impl->associateWithWrapper(info.GetIsolate(), &V8TestInterfaceNamedConstruct
orConstructor::wrapperTypeInfo, wrapper); |
117 v8SetReturnValue(info, wrapper); | 127 v8SetReturnValue(info, wrapper); |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 { | 192 { |
183 scriptWrappable->toImpl<TestInterfaceNamedConstructor>()->ref(); | 193 scriptWrappable->toImpl<TestInterfaceNamedConstructor>()->ref(); |
184 } | 194 } |
185 | 195 |
186 void V8TestInterfaceNamedConstructor::derefObject(ScriptWrappable* scriptWrappab
le) | 196 void V8TestInterfaceNamedConstructor::derefObject(ScriptWrappable* scriptWrappab
le) |
187 { | 197 { |
188 scriptWrappable->toImpl<TestInterfaceNamedConstructor>()->deref(); | 198 scriptWrappable->toImpl<TestInterfaceNamedConstructor>()->deref(); |
189 } | 199 } |
190 | 200 |
191 } // namespace blink | 201 } // namespace blink |
OLD | NEW |