| 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 "V8TestInterfaceConstructor2.h" | 8 #include "V8TestInterfaceConstructor2.h" |
| 9 | 9 |
| 10 #include "bindings/core/v8/Dictionary.h" | 10 #include "bindings/core/v8/Dictionary.h" |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInte
rfaceConstructor2", info.Holder(), info.GetIsolate()); | 69 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInte
rfaceConstructor2", info.Holder(), info.GetIsolate()); |
| 70 TestInterfaceEmpty* testInterfaceEmptyArg; | 70 TestInterfaceEmpty* testInterfaceEmptyArg; |
| 71 int longArg; | 71 int longArg; |
| 72 V8StringResource<> defaultUndefinedOptionalStringArg; | 72 V8StringResource<> defaultUndefinedOptionalStringArg; |
| 73 V8StringResource<> defaultNullStringOptionalStringArg; | 73 V8StringResource<> defaultNullStringOptionalStringArg; |
| 74 Dictionary defaultUndefinedOptionalDictionaryArg; | 74 Dictionary defaultUndefinedOptionalDictionaryArg; |
| 75 V8StringResource<> optionalStringArg; | 75 V8StringResource<> optionalStringArg; |
| 76 { | 76 { |
| 77 v8::TryCatch block; | 77 v8::TryCatch block; |
| 78 V8RethrowTryCatchScope rethrow(block); | 78 V8RethrowTryCatchScope rethrow(block); |
| 79 TONATIVE_VOID_INTERNAL(testInterfaceEmptyArg, V8TestInterfaceEmpty::toIm
plWithTypeCheck(info.GetIsolate(), info[0])); | 79 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(info.G
etIsolate(), info[0]); |
| 80 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[1], exceptio
nState), exceptionState); | 80 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(longArg, toInt32(info[1], exceptio
nState), exceptionState); |
| 81 TOSTRING_VOID_INTERNAL(defaultUndefinedOptionalStringArg, info[2]); | 81 TOSTRING_VOID_INTERNAL(defaultUndefinedOptionalStringArg, info[2]); |
| 82 if (!info[3]->IsUndefined()) { | 82 if (!info[3]->IsUndefined()) { |
| 83 TOSTRING_VOID_INTERNAL(defaultNullStringOptionalStringArg, info[3]); | 83 TOSTRING_VOID_INTERNAL(defaultNullStringOptionalStringArg, info[3]); |
| 84 } else { | 84 } else { |
| 85 defaultNullStringOptionalStringArg = nullptr; | 85 defaultNullStringOptionalStringArg = nullptr; |
| 86 } | 86 } |
| 87 if (!isUndefinedOrNull(info[4]) && !info[4]->IsObject()) { | 87 if (!isUndefinedOrNull(info[4]) && !info[4]->IsObject()) { |
| 88 exceptionState.throwTypeError("parameter 5 ('defaultUndefinedOptiona
lDictionaryArg') is not an object."); | 88 exceptionState.throwTypeError("parameter 5 ('defaultUndefinedOptiona
lDictionaryArg') is not an object."); |
| 89 exceptionState.throwIfNeeded(); | 89 exceptionState.throwIfNeeded(); |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 return 0; | 232 return 0; |
| 233 } | 233 } |
| 234 | 234 |
| 235 template<> | 235 template<> |
| 236 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor2* impl, v8::Handle<v
8::Object> creationContext, v8::Isolate* isolate) | 236 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor2* impl, v8::Handle<v
8::Object> creationContext, v8::Isolate* isolate) |
| 237 { | 237 { |
| 238 return toV8(impl, creationContext, isolate); | 238 return toV8(impl, creationContext, isolate); |
| 239 } | 239 } |
| 240 | 240 |
| 241 } // namespace blink | 241 } // namespace blink |
| OLD | NEW |