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 "V8TestInterfaceNamedConstructor.h" | 8 #include "V8TestInterfaceNamedConstructor.h" |
9 | 9 |
10 #include "RuntimeEnabledFeatures.h" | 10 #include "RuntimeEnabledFeatures.h" |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 | 87 |
88 Document* document = currentDOMWindow(isolate)->document(); | 88 Document* document = currentDOMWindow(isolate)->document(); |
89 ASSERT(document); | 89 ASSERT(document); |
90 | 90 |
91 // Make sure the document is added to the DOM Node map. Otherwise, the TestI
nterfaceNamedConstructor instance | 91 // Make sure the document is added to the DOM Node map. Otherwise, the TestI
nterfaceNamedConstructor instance |
92 // may end up being the only node in the map and get garbage-collected prema
turely. | 92 // may end up being the only node in the map and get garbage-collected prema
turely. |
93 toV8(document, info.Holder(), isolate); | 93 toV8(document, info.Holder(), isolate); |
94 | 94 |
95 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInte
rfaceNamedConstructor", info.Holder(), isolate); | 95 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInte
rfaceNamedConstructor", info.Holder(), isolate); |
96 if (UNLIKELY(info.Length() < 1)) { | 96 if (UNLIKELY(info.Length() < 1)) { |
97 throwArityTypeError(exceptionState, 1, info.Length()); | 97 throwMinimumArityTypeError(exceptionState, 1, info.Length()); |
98 return; | 98 return; |
99 } | 99 } |
100 TOSTRING_VOID(V8StringResource<>, stringArg, info[0]); | 100 TOSTRING_VOID(V8StringResource<>, stringArg, info[0]); |
101 TONATIVE_VOID(bool, defaultUndefinedOptionalBooleanArg, info[1]->BooleanValu
e()); | 101 TONATIVE_VOID(bool, defaultUndefinedOptionalBooleanArg, info[1]->BooleanValu
e()); |
102 TONATIVE_VOID_EXCEPTIONSTATE(int, defaultUndefinedOptionalLongArg, toInt32(i
nfo[2], exceptionState), exceptionState); | 102 TONATIVE_VOID_EXCEPTIONSTATE(int, defaultUndefinedOptionalLongArg, toInt32(i
nfo[2], exceptionState), exceptionState); |
103 TOSTRING_VOID(V8StringResource<>, defaultUndefinedOptionalStringArg, info[3]
); | 103 TOSTRING_VOID(V8StringResource<>, defaultUndefinedOptionalStringArg, info[3]
); |
104 TOSTRING_VOID(V8StringResource<>, defaultNullStringOptionalstringArg, argume
ntOrNull(info, 4)); | 104 TOSTRING_VOID(V8StringResource<>, defaultNullStringOptionalstringArg, argume
ntOrNull(info, 4)); |
105 if (UNLIKELY(info.Length() <= 5)) { | 105 if (UNLIKELY(info.Length() <= 5)) { |
106 RefPtr<TestInterfaceNamedConstructor> impl = TestInterfaceNamedConstruct
or::createForJSConstructor(stringArg, defaultUndefinedOptionalBooleanArg, defaul
tUndefinedOptionalLongArg, defaultUndefinedOptionalStringArg, defaultNullStringO
ptionalstringArg); | 106 RefPtr<TestInterfaceNamedConstructor> impl = TestInterfaceNamedConstruct
or::createForJSConstructor(stringArg, defaultUndefinedOptionalBooleanArg, defaul
tUndefinedOptionalLongArg, defaultUndefinedOptionalStringArg, defaultNullStringO
ptionalstringArg); |
107 v8::Handle<v8::Object> wrapper = info.Holder(); | 107 v8::Handle<v8::Object> wrapper = info.Holder(); |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 fromInternalPointer(object)->deref(); | 213 fromInternalPointer(object)->deref(); |
214 } | 214 } |
215 | 215 |
216 template<> | 216 template<> |
217 v8::Handle<v8::Value> toV8NoInline(TestInterfaceNamedConstructor* impl, v8::Hand
le<v8::Object> creationContext, v8::Isolate* isolate) | 217 v8::Handle<v8::Value> toV8NoInline(TestInterfaceNamedConstructor* impl, v8::Hand
le<v8::Object> creationContext, v8::Isolate* isolate) |
218 { | 218 { |
219 return toV8(impl, creationContext, isolate); | 219 return toV8(impl, creationContext, isolate); |
220 } | 220 } |
221 | 221 |
222 } // namespace WebCore | 222 } // namespace WebCore |
OLD | NEW |