| 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 exceptionState.throwIfNeeded(); | 78 exceptionState.throwIfNeeded(); |
| 79 return; | 79 return; |
| 80 } | 80 } |
| 81 V8StringResource<> stringArg; | 81 V8StringResource<> stringArg; |
| 82 bool defaultUndefinedOptionalBooleanArg; | 82 bool defaultUndefinedOptionalBooleanArg; |
| 83 int defaultUndefinedOptionalLongArg; | 83 int defaultUndefinedOptionalLongArg; |
| 84 V8StringResource<> defaultUndefinedOptionalStringArg; | 84 V8StringResource<> defaultUndefinedOptionalStringArg; |
| 85 V8StringResource<> defaultNullStringOptionalstringArg; | 85 V8StringResource<> defaultNullStringOptionalstringArg; |
| 86 V8StringResource<> optionalStringArg; | 86 V8StringResource<> optionalStringArg; |
| 87 { | 87 { |
| 88 v8::TryCatch block; | |
| 89 V8RethrowTryCatchScope rethrow(block); | |
| 90 TOSTRING_VOID_INTERNAL(stringArg, info[0]); | 88 TOSTRING_VOID_INTERNAL(stringArg, info[0]); |
| 91 TONATIVE_VOID_INTERNAL(defaultUndefinedOptionalBooleanArg, info[1]->Bool
eanValue()); | 89 defaultUndefinedOptionalBooleanArg = info[1]->BooleanValue(); |
| 92 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultUndefinedOptionalLongArg, t
oInt32(info[2], exceptionState), exceptionState); | 90 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(defaultUndefinedOptionalLongArg, t
oInt32(info[2], exceptionState), exceptionState); |
| 93 TOSTRING_VOID_INTERNAL(defaultUndefinedOptionalStringArg, info[3]); | 91 TOSTRING_VOID_INTERNAL(defaultUndefinedOptionalStringArg, info[3]); |
| 94 if (!info[4]->IsUndefined()) { | 92 if (!info[4]->IsUndefined()) { |
| 95 TOSTRING_VOID_INTERNAL(defaultNullStringOptionalstringArg, info[4]); | 93 TOSTRING_VOID_INTERNAL(defaultNullStringOptionalstringArg, info[4]); |
| 96 } else { | 94 } else { |
| 97 defaultNullStringOptionalstringArg = nullptr; | 95 defaultNullStringOptionalstringArg = nullptr; |
| 98 } | 96 } |
| 99 if (UNLIKELY(info.Length() <= 5)) { | 97 if (UNLIKELY(info.Length() <= 5)) { |
| 100 Document& document = *toDocument(currentExecutionContext(info.GetIso
late())); | 98 Document& document = *toDocument(currentExecutionContext(info.GetIso
late())); |
| 101 RefPtr<TestInterfaceNamedConstructor> impl = TestInterfaceNamedConst
ructor::createForJSConstructor(document, stringArg, defaultUndefinedOptionalBool
eanArg, defaultUndefinedOptionalLongArg, defaultUndefinedOptionalStringArg, defa
ultNullStringOptionalstringArg, exceptionState); | 99 RefPtr<TestInterfaceNamedConstructor> impl = TestInterfaceNamedConst
ructor::createForJSConstructor(document, stringArg, defaultUndefinedOptionalBool
eanArg, defaultUndefinedOptionalLongArg, defaultUndefinedOptionalStringArg, defa
ultNullStringOptionalstringArg, exceptionState); |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 return 0; | 196 return 0; |
| 199 } | 197 } |
| 200 | 198 |
| 201 template<> | 199 template<> |
| 202 v8::Handle<v8::Value> toV8NoInline(TestInterfaceNamedConstructor* impl, v8::Hand
le<v8::Object> creationContext, v8::Isolate* isolate) | 200 v8::Handle<v8::Value> toV8NoInline(TestInterfaceNamedConstructor* impl, v8::Hand
le<v8::Object> creationContext, v8::Isolate* isolate) |
| 203 { | 201 { |
| 204 return toV8(impl, creationContext, isolate); | 202 return toV8(impl, creationContext, isolate); |
| 205 } | 203 } |
| 206 | 204 |
| 207 } // namespace blink | 205 } // namespace blink |
| OLD | NEW |