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 "V8TestInterfaceNamedConstructor2.h" | 8 #include "V8TestInterfaceNamedConstructor2.h" |
9 | 9 |
10 #include "RuntimeEnabledFeatures.h" | 10 #include "RuntimeEnabledFeatures.h" |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 } | 60 } |
61 | 61 |
62 Document* document = currentDOMWindow(info.GetIsolate())->document(); | 62 Document* document = currentDOMWindow(info.GetIsolate())->document(); |
63 ASSERT(document); | 63 ASSERT(document); |
64 | 64 |
65 // Make sure the document is added to the DOM Node map. Otherwise, the TestI
nterfaceNamedConstructor2 instance | 65 // Make sure the document is added to the DOM Node map. Otherwise, the TestI
nterfaceNamedConstructor2 instance |
66 // may end up being the only node in the map and get garbage-collected prema
turely. | 66 // may end up being the only node in the map and get garbage-collected prema
turely. |
67 toV8(document, info.Holder(), info.GetIsolate()); | 67 toV8(document, info.Holder(), info.GetIsolate()); |
68 | 68 |
69 if (UNLIKELY(info.Length() < 1)) { | 69 if (UNLIKELY(info.Length() < 1)) { |
70 throwTypeError(ExceptionMessages::failedToConstruct("TestInterfaceNamedC
onstructor2", ExceptionMessages::notEnoughArguments(1, info.Length())), info.Get
Isolate()); | 70 throwArityTypeErrorForConstructor("TestInterfaceNamedConstructor2", 1, i
nfo.Length(), info.GetIsolate()); |
71 return; | 71 return; |
72 } | 72 } |
73 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, stringArg, info[0])
; | 73 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, stringArg, info[0])
; |
74 RefPtr<TestInterfaceNamedConstructor2> impl = TestInterfaceNamedConstructor2
::createForJSConstructor(*document, stringArg); | 74 RefPtr<TestInterfaceNamedConstructor2> impl = TestInterfaceNamedConstructor2
::createForJSConstructor(*document, stringArg); |
75 | 75 |
76 v8::Handle<v8::Object> wrapper = info.Holder(); | 76 v8::Handle<v8::Object> wrapper = info.Holder(); |
77 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceNamedConstructor2>(i
mpl.release(), &V8TestInterfaceNamedConstructor2Constructor::wrapperTypeInfo, wr
apper, info.GetIsolate(), WrapperConfiguration::Independent); | 77 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceNamedConstructor2>(i
mpl.release(), &V8TestInterfaceNamedConstructor2Constructor::wrapperTypeInfo, wr
apper, info.GetIsolate(), WrapperConfiguration::Independent); |
78 v8SetReturnValue(info, wrapper); | 78 v8SetReturnValue(info, wrapper); |
79 } | 79 } |
80 | 80 |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 fromInternalPointer(object)->deref(); | 167 fromInternalPointer(object)->deref(); |
168 } | 168 } |
169 | 169 |
170 template<> | 170 template<> |
171 v8::Handle<v8::Value> toV8NoInline(TestInterfaceNamedConstructor2* impl, v8::Han
dle<v8::Object> creationContext, v8::Isolate* isolate) | 171 v8::Handle<v8::Value> toV8NoInline(TestInterfaceNamedConstructor2* impl, v8::Han
dle<v8::Object> creationContext, v8::Isolate* isolate) |
172 { | 172 { |
173 return toV8(impl, creationContext, isolate); | 173 return toV8(impl, creationContext, isolate); |
174 } | 174 } |
175 | 175 |
176 } // namespace WebCore | 176 } // namespace WebCore |
OLD | NEW |