| 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 "RuntimeEnabledFeatures.h" | 10 #include "RuntimeEnabledFeatures.h" |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInte
rfaceConstructor", info.Holder(), isolate); | 67 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInte
rfaceConstructor", info.Holder(), isolate); |
| 68 double doubleArg; | 68 double doubleArg; |
| 69 V8StringResource<> stringArg; | 69 V8StringResource<> stringArg; |
| 70 TestInterfaceEmpty* testInterfaceEmptyArg; | 70 TestInterfaceEmpty* testInterfaceEmptyArg; |
| 71 Dictionary dictionaryArg; | 71 Dictionary dictionaryArg; |
| 72 Vector<String> sequenceStringArg; | 72 Vector<String> sequenceStringArg; |
| 73 Vector<Dictionary> sequenceDictionaryArg; | 73 Vector<Dictionary> sequenceDictionaryArg; |
| 74 Dictionary optionalDictionaryArg; | 74 Dictionary optionalDictionaryArg; |
| 75 TestInterfaceEmpty* optionalTestInterfaceEmptyArg; | 75 TestInterfaceEmpty* optionalTestInterfaceEmptyArg; |
| 76 { | 76 { |
| 77 v8::TryCatch block; | 77 V8TryPropagate block; |
| 78 TONATIVE_VOID_INTERNAL(doubleArg, static_cast<double>(info[0]->NumberVal
ue())); | 78 TONATIVE_VOID_INTERNAL(doubleArg, static_cast<double>(info[0]->NumberVal
ue())); |
| 79 TOSTRING_VOID_INTERNAL(stringArg, info[1]); | 79 TOSTRING_VOID_INTERNAL(stringArg, info[1]); |
| 80 TONATIVE_VOID_INTERNAL(testInterfaceEmptyArg, V8TestInterfaceEmpty::toNa
tiveWithTypeCheck(info.GetIsolate(), info[2])); | 80 TONATIVE_VOID_INTERNAL(testInterfaceEmptyArg, V8TestInterfaceEmpty::toNa
tiveWithTypeCheck(info.GetIsolate(), info[2])); |
| 81 TONATIVE_VOID_INTERNAL(dictionaryArg, Dictionary(info[3], info.GetIsolat
e())); | 81 TONATIVE_VOID_INTERNAL(dictionaryArg, Dictionary(info[3], info.GetIsolat
e())); |
| 82 if (!dictionaryArg.isUndefinedOrNull() && !dictionaryArg.isObject()) { | 82 if (!dictionaryArg.isUndefinedOrNull() && !dictionaryArg.isObject()) { |
| 83 exceptionState.throwTypeError("parameter 4 ('dictionaryArg') is not
an object."); | 83 exceptionState.throwTypeError("parameter 4 ('dictionaryArg') is not
an object."); |
| 84 exceptionState.throwIfNeeded(); | 84 exceptionState.throwIfNeeded(); |
| 85 block.ReThrow(); | |
| 86 return; | 85 return; |
| 87 } | 86 } |
| 88 TONATIVE_VOID_INTERNAL(sequenceStringArg, toNativeArray<String>(info[4],
5, info.GetIsolate())); | 87 TONATIVE_VOID_INTERNAL(sequenceStringArg, toNativeArray<String>(info[4],
5, info.GetIsolate())); |
| 89 TONATIVE_VOID_INTERNAL(sequenceDictionaryArg, toNativeArray<Dictionary>(
info[5], 6, info.GetIsolate())); | 88 TONATIVE_VOID_INTERNAL(sequenceDictionaryArg, toNativeArray<Dictionary>(
info[5], 6, info.GetIsolate())); |
| 90 TONATIVE_VOID_INTERNAL(optionalDictionaryArg, Dictionary(info[6], info.G
etIsolate())); | 89 TONATIVE_VOID_INTERNAL(optionalDictionaryArg, Dictionary(info[6], info.G
etIsolate())); |
| 91 if (!optionalDictionaryArg.isUndefinedOrNull() && !optionalDictionaryArg
.isObject()) { | 90 if (!optionalDictionaryArg.isUndefinedOrNull() && !optionalDictionaryArg
.isObject()) { |
| 92 exceptionState.throwTypeError("parameter 7 ('optionalDictionaryArg')
is not an object."); | 91 exceptionState.throwTypeError("parameter 7 ('optionalDictionaryArg')
is not an object."); |
| 93 exceptionState.throwIfNeeded(); | 92 exceptionState.throwIfNeeded(); |
| 94 block.ReThrow(); | |
| 95 return; | 93 return; |
| 96 } | 94 } |
| 97 TONATIVE_VOID_INTERNAL(optionalTestInterfaceEmptyArg, V8TestInterfaceEmp
ty::toNativeWithTypeCheck(info.GetIsolate(), info[7])); | 95 TONATIVE_VOID_INTERNAL(optionalTestInterfaceEmptyArg, V8TestInterfaceEmp
ty::toNativeWithTypeCheck(info.GetIsolate(), info[7])); |
| 98 } | 96 } |
| 99 ExecutionContext* context = currentExecutionContext(isolate); | 97 ExecutionContext* context = currentExecutionContext(isolate); |
| 100 Document& document = *toDocument(currentExecutionContext(isolate)); | 98 Document& document = *toDocument(currentExecutionContext(isolate)); |
| 101 RefPtr<TestInterfaceConstructor> impl = TestInterfaceConstructor::create(con
text, document, doubleArg, stringArg, testInterfaceEmptyArg, dictionaryArg, sequ
enceStringArg, sequenceDictionaryArg, optionalDictionaryArg, optionalTestInterfa
ceEmptyArg, exceptionState); | 99 RefPtr<TestInterfaceConstructor> impl = TestInterfaceConstructor::create(con
text, document, doubleArg, stringArg, testInterfaceEmptyArg, dictionaryArg, sequ
enceStringArg, sequenceDictionaryArg, optionalDictionaryArg, optionalTestInterfa
ceEmptyArg, exceptionState); |
| 102 if (exceptionState.throwIfNeeded()) | 100 if (exceptionState.throwIfNeeded()) |
| 103 return; | 101 return; |
| 104 | 102 |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 fromInternalPointer(object)->deref(); | 239 fromInternalPointer(object)->deref(); |
| 242 } | 240 } |
| 243 | 241 |
| 244 template<> | 242 template<> |
| 245 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor* impl, v8::Handle<v8
::Object> creationContext, v8::Isolate* isolate) | 243 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor* impl, v8::Handle<v8
::Object> creationContext, v8::Isolate* isolate) |
| 246 { | 244 { |
| 247 return toV8(impl, creationContext, isolate); | 245 return toV8(impl, creationContext, isolate); |
| 248 } | 246 } |
| 249 | 247 |
| 250 } // namespace WebCore | 248 } // namespace WebCore |
| OLD | NEW |