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 "V8TestInterfaceConstructor.h" | 8 #include "V8TestInterfaceConstructor.h" |
9 | 9 |
10 #include "bindings/core/v8/Dictionary.h" | 10 #include "bindings/core/v8/Dictionary.h" |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 Vector<String> sequenceStringArg; | 60 Vector<String> sequenceStringArg; |
61 Vector<Dictionary> sequenceDictionaryArg; | 61 Vector<Dictionary> sequenceDictionaryArg; |
62 Dictionary optionalDictionaryArg; | 62 Dictionary optionalDictionaryArg; |
63 TestInterfaceEmpty* optionalTestInterfaceEmptyArg; | 63 TestInterfaceEmpty* optionalTestInterfaceEmptyArg; |
64 { | 64 { |
65 v8::TryCatch block; | 65 v8::TryCatch block; |
66 V8RethrowTryCatchScope rethrow(block); | 66 V8RethrowTryCatchScope rethrow(block); |
67 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(doubleArg, toDouble(info[0], excep
tionState), exceptionState); | 67 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(doubleArg, toDouble(info[0], excep
tionState), exceptionState); |
68 TOSTRING_VOID_INTERNAL(stringArg, info[1]); | 68 TOSTRING_VOID_INTERNAL(stringArg, info[1]); |
69 TONATIVE_VOID_INTERNAL(testInterfaceEmptyArg, V8TestInterfaceEmpty::toIm
plWithTypeCheck(info.GetIsolate(), info[2])); | 69 TONATIVE_VOID_INTERNAL(testInterfaceEmptyArg, V8TestInterfaceEmpty::toIm
plWithTypeCheck(info.GetIsolate(), info[2])); |
70 TONATIVE_VOID_INTERNAL(dictionaryArg, Dictionary(info[3], info.GetIsolat
e())); | 70 if (!isUndefinedOrNull(info[3]) && !info[3]->IsObject()) { |
71 if (!dictionaryArg.isUndefinedOrNull() && !dictionaryArg.isObject()) { | |
72 exceptionState.throwTypeError("parameter 4 ('dictionaryArg') is not
an object."); | 71 exceptionState.throwTypeError("parameter 4 ('dictionaryArg') is not
an object."); |
73 exceptionState.throwIfNeeded(); | 72 exceptionState.throwIfNeeded(); |
74 return; | 73 return; |
75 } | 74 } |
| 75 TONATIVE_VOID_INTERNAL(dictionaryArg, Dictionary(info[3], info.GetIsolat
e())); |
76 TONATIVE_VOID_INTERNAL(sequenceStringArg, toImplArray<String>(info[4], 5
, info.GetIsolate())); | 76 TONATIVE_VOID_INTERNAL(sequenceStringArg, toImplArray<String>(info[4], 5
, info.GetIsolate())); |
77 TONATIVE_VOID_INTERNAL(sequenceDictionaryArg, toImplArray<Dictionary>(in
fo[5], 6, info.GetIsolate())); | 77 TONATIVE_VOID_INTERNAL(sequenceDictionaryArg, toImplArray<Dictionary>(in
fo[5], 6, info.GetIsolate())); |
78 TONATIVE_VOID_INTERNAL(optionalDictionaryArg, Dictionary(info[6], info.G
etIsolate())); | 78 if (!isUndefinedOrNull(info[6]) && !info[6]->IsObject()) { |
79 if (!optionalDictionaryArg.isUndefinedOrNull() && !optionalDictionaryArg
.isObject()) { | |
80 exceptionState.throwTypeError("parameter 7 ('optionalDictionaryArg')
is not an object."); | 79 exceptionState.throwTypeError("parameter 7 ('optionalDictionaryArg')
is not an object."); |
81 exceptionState.throwIfNeeded(); | 80 exceptionState.throwIfNeeded(); |
82 return; | 81 return; |
83 } | 82 } |
| 83 TONATIVE_VOID_INTERNAL(optionalDictionaryArg, Dictionary(info[6], info.G
etIsolate())); |
84 TONATIVE_VOID_INTERNAL(optionalTestInterfaceEmptyArg, V8TestInterfaceEmp
ty::toImplWithTypeCheck(info.GetIsolate(), info[7])); | 84 TONATIVE_VOID_INTERNAL(optionalTestInterfaceEmptyArg, V8TestInterfaceEmp
ty::toImplWithTypeCheck(info.GetIsolate(), info[7])); |
85 } | 85 } |
86 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate
()); | 86 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate
()); |
87 Document& document = *toDocument(currentExecutionContext(info.GetIsolate()))
; | 87 Document& document = *toDocument(currentExecutionContext(info.GetIsolate()))
; |
88 RefPtr<TestInterfaceConstructor> impl = TestInterfaceConstructor::create(exe
cutionContext, document, doubleArg, stringArg, testInterfaceEmptyArg, dictionary
Arg, sequenceStringArg, sequenceDictionaryArg, optionalDictionaryArg, optionalTe
stInterfaceEmptyArg, exceptionState); | 88 RefPtr<TestInterfaceConstructor> impl = TestInterfaceConstructor::create(exe
cutionContext, document, doubleArg, stringArg, testInterfaceEmptyArg, dictionary
Arg, sequenceStringArg, sequenceDictionaryArg, optionalDictionaryArg, optionalTe
stInterfaceEmptyArg, exceptionState); |
89 if (exceptionState.hadException()) { | 89 if (exceptionState.hadException()) { |
90 exceptionState.throwIfNeeded(); | 90 exceptionState.throwIfNeeded(); |
91 return; | 91 return; |
92 } | 92 } |
93 v8::Handle<v8::Object> wrapper = info.Holder(); | 93 v8::Handle<v8::Object> wrapper = info.Holder(); |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
354 return 0; | 354 return 0; |
355 } | 355 } |
356 | 356 |
357 template<> | 357 template<> |
358 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor* impl, v8::Handle<v8
::Object> creationContext, v8::Isolate* isolate) | 358 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor* impl, v8::Handle<v8
::Object> creationContext, v8::Isolate* isolate) |
359 { | 359 { |
360 return toV8(impl, creationContext, isolate); | 360 return toV8(impl, creationContext, isolate); |
361 } | 361 } |
362 | 362 |
363 } // namespace blink | 363 } // namespace blink |
OLD | NEW |