| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInte
rfaceConstructor", info.Holder(), info.GetIsolate()); | 55 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInte
rfaceConstructor", info.Holder(), info.GetIsolate()); |
| 56 double doubleArg; | 56 double doubleArg; |
| 57 V8StringResource<> stringArg; | 57 V8StringResource<> stringArg; |
| 58 TestInterfaceEmpty* testInterfaceEmptyArg; | 58 TestInterfaceEmpty* testInterfaceEmptyArg; |
| 59 Dictionary dictionaryArg; | 59 Dictionary dictionaryArg; |
| 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; | |
| 66 V8RethrowTryCatchScope rethrow(block); | |
| 67 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(doubleArg, toDouble(info[0], excep
tionState), exceptionState); | 65 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(doubleArg, toDouble(info[0], excep
tionState), exceptionState); |
| 68 TOSTRING_VOID_INTERNAL(stringArg, info[1]); | 66 TOSTRING_VOID_INTERNAL(stringArg, info[1]); |
| 69 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(info.G
etIsolate(), info[2]); | 67 testInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeCheck(info.G
etIsolate(), info[2]); |
| 70 if (!isUndefinedOrNull(info[3]) && !info[3]->IsObject()) { | 68 if (!isUndefinedOrNull(info[3]) && !info[3]->IsObject()) { |
| 71 exceptionState.throwTypeError("parameter 4 ('dictionaryArg') is not
an object."); | 69 exceptionState.throwTypeError("parameter 4 ('dictionaryArg') is not
an object."); |
| 72 exceptionState.throwIfNeeded(); | 70 exceptionState.throwIfNeeded(); |
| 73 return; | 71 return; |
| 74 } | 72 } |
| 75 dictionaryArg = Dictionary(info[3], info.GetIsolate()); | 73 dictionaryArg = Dictionary(info[3], info.GetIsolate()); |
| 76 TONATIVE_VOID_INTERNAL(sequenceStringArg, toImplArray<String>(info[4], 5
, info.GetIsolate())); | 74 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(sequenceStringArg, toImplArray<Str
ing>(info[4], 5, info.GetIsolate(), exceptionState), exceptionState); |
| 77 TONATIVE_VOID_INTERNAL(sequenceDictionaryArg, toImplArray<Dictionary>(in
fo[5], 6, info.GetIsolate())); | 75 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(sequenceDictionaryArg, toImplArray
<Dictionary>(info[5], 6, info.GetIsolate(), exceptionState), exceptionState); |
| 78 if (!isUndefinedOrNull(info[6]) && !info[6]->IsObject()) { | 76 if (!isUndefinedOrNull(info[6]) && !info[6]->IsObject()) { |
| 79 exceptionState.throwTypeError("parameter 7 ('optionalDictionaryArg')
is not an object."); | 77 exceptionState.throwTypeError("parameter 7 ('optionalDictionaryArg')
is not an object."); |
| 80 exceptionState.throwIfNeeded(); | 78 exceptionState.throwIfNeeded(); |
| 81 return; | 79 return; |
| 82 } | 80 } |
| 83 optionalDictionaryArg = Dictionary(info[6], info.GetIsolate()); | 81 optionalDictionaryArg = Dictionary(info[6], info.GetIsolate()); |
| 84 optionalTestInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeChec
k(info.GetIsolate(), info[7]); | 82 optionalTestInterfaceEmptyArg = V8TestInterfaceEmpty::toImplWithTypeChec
k(info.GetIsolate(), info[7]); |
| 85 } | 83 } |
| 86 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate
()); | 84 ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate
()); |
| 87 Document& document = *toDocument(currentExecutionContext(info.GetIsolate()))
; | 85 Document& document = *toDocument(currentExecutionContext(info.GetIsolate()))
; |
| (...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 354 return 0; | 352 return 0; |
| 355 } | 353 } |
| 356 | 354 |
| 357 template<> | 355 template<> |
| 358 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor* impl, v8::Handle<v8
::Object> creationContext, v8::Isolate* isolate) | 356 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor* impl, v8::Handle<v8
::Object> creationContext, v8::Isolate* isolate) |
| 359 { | 357 { |
| 360 return toV8(impl, creationContext, isolate); | 358 return toV8(impl, creationContext, isolate); |
| 361 } | 359 } |
| 362 | 360 |
| 363 } // namespace blink | 361 } // namespace blink |
| OLD | NEW |