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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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; | 65 v8::TryCatch block; |
66 V8RethrowTryCatchScope rethrow(block); | 66 V8RethrowTryCatchScope rethrow(block); |
67 TONATIVE_VOID_INTERNAL(doubleArg, static_cast<double>(info[0]->NumberVal
ue())); | 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 TONATIVE_VOID_INTERNAL(dictionaryArg, Dictionary(info[3], info.GetIsolat
e())); |
71 if (!dictionaryArg.isUndefinedOrNull() && !dictionaryArg.isObject()) { | 71 if (!dictionaryArg.isUndefinedOrNull() && !dictionaryArg.isObject()) { |
72 exceptionState.throwTypeError("parameter 4 ('dictionaryArg') is not
an object."); | 72 exceptionState.throwTypeError("parameter 4 ('dictionaryArg') is not
an object."); |
73 exceptionState.throwIfNeeded(); | 73 exceptionState.throwIfNeeded(); |
74 return; | 74 return; |
75 } | 75 } |
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())); |
(...skipping 276 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 |