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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 return; | 98 return; |
99 } | 99 } |
100 V8StringResource<> stringArg; | 100 V8StringResource<> stringArg; |
101 bool defaultUndefinedOptionalBooleanArg; | 101 bool defaultUndefinedOptionalBooleanArg; |
102 int defaultUndefinedOptionalLongArg; | 102 int defaultUndefinedOptionalLongArg; |
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 TOSTRING_VOID_INTERNAL(stringArg, info[0]); | 109 TOSTRING_VOID_INTERNAL(stringArg, info[0]); |
109 TONATIVE_VOID_INTERNAL(defaultUndefinedOptionalBooleanArg, info[1]->Bool
eanValue()); | 110 TONATIVE_VOID_INTERNAL(defaultUndefinedOptionalBooleanArg, info[1]->Bool
eanValue()); |
110 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultUndefinedOptionalLongArg, t
oInt32(info[2], exceptionState), exceptionState); | 111 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultUndefinedOptionalLongArg, t
oInt32(info[2], exceptionState), exceptionState); |
111 TOSTRING_VOID_INTERNAL(defaultUndefinedOptionalStringArg, info[3]); | 112 TOSTRING_VOID_INTERNAL(defaultUndefinedOptionalStringArg, info[3]); |
112 TOSTRING_VOID_INTERNAL(defaultNullStringOptionalstringArg, argumentOrNul
l(info, 4)); | 113 TOSTRING_VOID_INTERNAL(defaultNullStringOptionalstringArg, argumentOrNul
l(info, 4)); |
113 if (UNLIKELY(info.Length() <= 5)) { | 114 if (UNLIKELY(info.Length() <= 5)) { |
114 RefPtr<TestInterfaceNamedConstructor> impl = TestInterfaceNamedConst
ructor::createForJSConstructor(stringArg, defaultUndefinedOptionalBooleanArg, de
faultUndefinedOptionalLongArg, defaultUndefinedOptionalStringArg, defaultNullStr
ingOptionalstringArg); | 115 RefPtr<TestInterfaceNamedConstructor> impl = TestInterfaceNamedConst
ructor::createForJSConstructor(stringArg, defaultUndefinedOptionalBooleanArg, de
faultUndefinedOptionalLongArg, defaultUndefinedOptionalStringArg, defaultNullStr
ingOptionalstringArg); |
115 v8::Handle<v8::Object> wrapper = info.Holder(); | 116 v8::Handle<v8::Object> wrapper = info.Holder(); |
116 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceNamedConstru
ctor>(impl.release(), &V8TestInterfaceNamedConstructorConstructor::wrapperTypeIn
fo, wrapper, isolate, WrapperConfiguration::Dependent); | 117 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceNamedConstru
ctor>(impl.release(), &V8TestInterfaceNamedConstructorConstructor::wrapperTypeIn
fo, wrapper, isolate, WrapperConfiguration::Dependent); |
117 v8SetReturnValue(info, wrapper); | 118 v8SetReturnValue(info, wrapper); |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 fromInternalPointer(object)->deref(); | 223 fromInternalPointer(object)->deref(); |
223 } | 224 } |
224 | 225 |
225 template<> | 226 template<> |
226 v8::Handle<v8::Value> toV8NoInline(TestInterfaceNamedConstructor* impl, v8::Hand
le<v8::Object> creationContext, v8::Isolate* isolate) | 227 v8::Handle<v8::Value> toV8NoInline(TestInterfaceNamedConstructor* impl, v8::Hand
le<v8::Object> creationContext, v8::Isolate* isolate) |
227 { | 228 { |
228 return toV8(impl, creationContext, isolate); | 229 return toV8(impl, creationContext, isolate); |
229 } | 230 } |
230 | 231 |
231 } // namespace WebCore | 232 } // namespace WebCore |
OLD | NEW |