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 "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 if (!info.IsConstructCall()) { | 52 if (!info.IsConstructCall()) { |
53 V8ThrowException::throwTypeError(ExceptionMessages::constructorNotCallab
leAsFunction("Audio"), info.GetIsolate()); | 53 V8ThrowException::throwTypeError(ExceptionMessages::constructorNotCallab
leAsFunction("Audio"), info.GetIsolate()); |
54 return; | 54 return; |
55 } | 55 } |
56 | 56 |
57 if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExis
tingObject) { | 57 if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExis
tingObject) { |
58 v8SetReturnValue(info, info.Holder()); | 58 v8SetReturnValue(info, info.Holder()); |
59 return; | 59 return; |
60 } | 60 } |
61 if (UNLIKELY(info.Length() < 1)) { | 61 if (UNLIKELY(info.Length() < 1)) { |
62 throwMinimumArityTypeErrorForConstructor("TestInterfaceNamedConstructor2
", 1, info.Length(), info.GetIsolate()); | 62 V8ThrowException::throwException(createMinimumArityTypeErrorForConstruct
or("TestInterfaceNamedConstructor2", 1, info.Length(), info.GetIsolate()), info.
GetIsolate()); |
63 return; | 63 return; |
64 } | 64 } |
65 V8StringResource<> stringArg; | 65 V8StringResource<> stringArg; |
66 { | 66 { |
67 TOSTRING_VOID_INTERNAL(stringArg, info[0]); | 67 TOSTRING_VOID_INTERNAL(stringArg, info[0]); |
68 } | 68 } |
69 RefPtr<TestInterfaceNamedConstructor2> impl = TestInterfaceNamedConstructor2
::createForJSConstructor(stringArg); | 69 RefPtr<TestInterfaceNamedConstructor2> impl = TestInterfaceNamedConstructor2
::createForJSConstructor(stringArg); |
70 v8::Handle<v8::Object> wrapper = info.Holder(); | 70 v8::Handle<v8::Object> wrapper = info.Holder(); |
71 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceNamedConstructor2>(i
mpl.release(), &V8TestInterfaceNamedConstructor2Constructor::wrapperTypeInfo, wr
apper, info.GetIsolate(), WrapperConfiguration::Independent); | 71 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceNamedConstructor2>(i
mpl.release(), &V8TestInterfaceNamedConstructor2Constructor::wrapperTypeInfo, wr
apper, info.GetIsolate(), WrapperConfiguration::Independent); |
72 v8SetReturnValue(info, wrapper); | 72 v8SetReturnValue(info, wrapper); |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 fromInternalPointer(internalPointer)->deref(); | 159 fromInternalPointer(internalPointer)->deref(); |
160 } | 160 } |
161 | 161 |
162 template<> | 162 template<> |
163 v8::Handle<v8::Value> toV8NoInline(TestInterfaceNamedConstructor2* impl, v8::Han
dle<v8::Object> creationContext, v8::Isolate* isolate) | 163 v8::Handle<v8::Value> toV8NoInline(TestInterfaceNamedConstructor2* impl, v8::Han
dle<v8::Object> creationContext, v8::Isolate* isolate) |
164 { | 164 { |
165 return toV8(impl, creationContext, isolate); | 165 return toV8(impl, creationContext, isolate); |
166 } | 166 } |
167 | 167 |
168 } // namespace blink | 168 } // namespace blink |
OLD | NEW |