| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 | 58 |
| 59 v8::Handle<v8::Object> wrapper = info.Holder(); | 59 v8::Handle<v8::Object> wrapper = info.Holder(); |
| 60 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceConstructor>(impl.re
lease(), &V8TestInterfaceConstructor::wrapperTypeInfo, wrapper, isolate, Wrapper
Configuration::Independent); | 60 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceConstructor>(impl.re
lease(), &V8TestInterfaceConstructor::wrapperTypeInfo, wrapper, isolate, Wrapper
Configuration::Independent); |
| 61 v8SetReturnValue(info, wrapper); | 61 v8SetReturnValue(info, wrapper); |
| 62 } | 62 } |
| 63 | 63 |
| 64 static void constructor2(const v8::FunctionCallbackInfo<v8::Value>& info) | 64 static void constructor2(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 65 { | 65 { |
| 66 v8::Isolate* isolate = info.GetIsolate(); | 66 v8::Isolate* isolate = info.GetIsolate(); |
| 67 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInte
rfaceConstructor", info.Holder(), isolate); | 67 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInte
rfaceConstructor", info.Holder(), isolate); |
| 68 V8TRYCATCH_VOID(double, doubleArg, static_cast<double>(info[0]->NumberValue(
))); | 68 TONATIVE_VOID(double, doubleArg, static_cast<double>(info[0]->NumberValue())
); |
| 69 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, stringArg, info[1])
; | 69 TOSTRING_VOID(V8StringResource<>, stringArg, info[1]); |
| 70 V8TRYCATCH_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceE
mpty::toNativeWithTypeCheck(info.GetIsolate(), info[2])); | 70 TONATIVE_VOID(TestInterfaceEmpty*, testInterfaceEmptyArg, V8TestInterfaceEmp
ty::toNativeWithTypeCheck(info.GetIsolate(), info[2])); |
| 71 V8TRYCATCH_VOID(Dictionary, dictionaryArg, Dictionary(info[3], info.GetIsola
te())); | 71 TONATIVE_VOID(Dictionary, dictionaryArg, Dictionary(info[3], info.GetIsolate
())); |
| 72 if (!dictionaryArg.isUndefinedOrNull() && !dictionaryArg.isObject()) { | 72 if (!dictionaryArg.isUndefinedOrNull() && !dictionaryArg.isObject()) { |
| 73 exceptionState.throwTypeError("parameter 4 ('dictionaryArg') is not an o
bject."); | 73 exceptionState.throwTypeError("parameter 4 ('dictionaryArg') is not an o
bject."); |
| 74 exceptionState.throwIfNeeded(); | 74 exceptionState.throwIfNeeded(); |
| 75 return; | 75 return; |
| 76 } | 76 } |
| 77 V8TRYCATCH_VOID(Vector<String>, sequenceStringArg, toNativeArray<String>(inf
o[4], 5, info.GetIsolate())); | 77 TONATIVE_VOID(Vector<String>, sequenceStringArg, toNativeArray<String>(info[
4], 5, info.GetIsolate())); |
| 78 V8TRYCATCH_VOID(Vector<Dictionary>, sequenceDictionaryArg, toNativeArray<Dic
tionary>(info[5], 6, info.GetIsolate())); | 78 TONATIVE_VOID(Vector<Dictionary>, sequenceDictionaryArg, toNativeArray<Dicti
onary>(info[5], 6, info.GetIsolate())); |
| 79 V8TRYCATCH_VOID(Dictionary, optionalDictionaryArg, Dictionary(info[6], info.
GetIsolate())); | 79 TONATIVE_VOID(Dictionary, optionalDictionaryArg, Dictionary(info[6], info.Ge
tIsolate())); |
| 80 if (!optionalDictionaryArg.isUndefinedOrNull() && !optionalDictionaryArg.isO
bject()) { | 80 if (!optionalDictionaryArg.isUndefinedOrNull() && !optionalDictionaryArg.isO
bject()) { |
| 81 exceptionState.throwTypeError("parameter 7 ('optionalDictionaryArg') is
not an object."); | 81 exceptionState.throwTypeError("parameter 7 ('optionalDictionaryArg') is
not an object."); |
| 82 exceptionState.throwIfNeeded(); | 82 exceptionState.throwIfNeeded(); |
| 83 return; | 83 return; |
| 84 } | 84 } |
| 85 V8TRYCATCH_VOID(TestInterfaceEmpty*, optionalTestInterfaceEmptyArg, V8TestIn
terfaceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[7])); | 85 TONATIVE_VOID(TestInterfaceEmpty*, optionalTestInterfaceEmptyArg, V8TestInte
rfaceEmpty::toNativeWithTypeCheck(info.GetIsolate(), info[7])); |
| 86 ExecutionContext* context = currentExecutionContext(isolate); | 86 ExecutionContext* context = currentExecutionContext(isolate); |
| 87 Document& document = *toDocument(currentExecutionContext(isolate)); | 87 Document& document = *toDocument(currentExecutionContext(isolate)); |
| 88 RefPtr<TestInterfaceConstructor> impl = TestInterfaceConstructor::create(con
text, document, doubleArg, stringArg, testInterfaceEmptyArg, dictionaryArg, sequ
enceStringArg, sequenceDictionaryArg, optionalDictionaryArg, optionalTestInterfa
ceEmptyArg, exceptionState); | 88 RefPtr<TestInterfaceConstructor> impl = TestInterfaceConstructor::create(con
text, document, doubleArg, stringArg, testInterfaceEmptyArg, dictionaryArg, sequ
enceStringArg, sequenceDictionaryArg, optionalDictionaryArg, optionalTestInterfa
ceEmptyArg, exceptionState); |
| 89 if (exceptionState.throwIfNeeded()) | 89 if (exceptionState.throwIfNeeded()) |
| 90 return; | 90 return; |
| 91 | 91 |
| 92 v8::Handle<v8::Object> wrapper = info.Holder(); | 92 v8::Handle<v8::Object> wrapper = info.Holder(); |
| 93 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceConstructor>(impl.re
lease(), &V8TestInterfaceConstructor::wrapperTypeInfo, wrapper, isolate, Wrapper
Configuration::Independent); | 93 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceConstructor>(impl.re
lease(), &V8TestInterfaceConstructor::wrapperTypeInfo, wrapper, isolate, Wrapper
Configuration::Independent); |
| 94 v8SetReturnValue(info, wrapper); | 94 v8SetReturnValue(info, wrapper); |
| 95 } | 95 } |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 fromInternalPointer(object)->deref(); | 199 fromInternalPointer(object)->deref(); |
| 200 } | 200 } |
| 201 | 201 |
| 202 template<> | 202 template<> |
| 203 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor* impl, v8::Handle<v8
::Object> creationContext, v8::Isolate* isolate) | 203 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor* impl, v8::Handle<v8
::Object> creationContext, v8::Isolate* isolate) |
| 204 { | 204 { |
| 205 return toV8(impl, creationContext, isolate); | 205 return toV8(impl, creationContext, isolate); |
| 206 } | 206 } |
| 207 | 207 |
| 208 } // namespace WebCore | 208 } // namespace WebCore |
| OLD | NEW |