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 "V8TestInterfaceConstructor4.h" | 8 #include "V8TestInterfaceConstructor4.h" |
9 | 9 |
10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 static void constructor1(const v8::FunctionCallbackInfo<v8::Value>& info) | 36 static void constructor1(const v8::FunctionCallbackInfo<v8::Value>& info) |
37 { | 37 { |
38 TestInterfaceConstructor4* testInterface4Arg; | 38 TestInterfaceConstructor4* testInterface4Arg; |
39 { | 39 { |
40 v8::TryCatch block; | 40 v8::TryCatch block; |
41 V8RethrowTryCatchScope rethrow(block); | 41 V8RethrowTryCatchScope rethrow(block); |
42 TONATIVE_VOID_INTERNAL(testInterface4Arg, V8TestInterfaceConstructor4::t
oImplWithTypeCheck(info.GetIsolate(), info[0])); | 42 TONATIVE_VOID_INTERNAL(testInterface4Arg, V8TestInterfaceConstructor4::t
oImplWithTypeCheck(info.GetIsolate(), info[0])); |
43 } | 43 } |
44 RefPtr<TestInterfaceConstructor4> impl = TestInterfaceConstructor4::create(t
estInterface4Arg); | 44 RefPtr<TestInterfaceConstructor4> impl = TestInterfaceConstructor4::create(t
estInterface4Arg); |
45 v8::Handle<v8::Object> wrapper = info.Holder(); | 45 v8::Handle<v8::Object> wrapper = info.Holder(); |
46 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceConstructor4>(impl.r
elease(), &V8TestInterfaceConstructor4::wrapperTypeInfo, wrapper, info.GetIsolat
e()); | 46 impl->associateWithWrapper(&V8TestInterfaceConstructor4::wrapperTypeInfo, wr
apper, info.GetIsolate()); |
47 v8SetReturnValue(info, wrapper); | 47 v8SetReturnValue(info, wrapper); |
48 } | 48 } |
49 | 49 |
50 static void constructor2(const v8::FunctionCallbackInfo<v8::Value>& info) | 50 static void constructor2(const v8::FunctionCallbackInfo<v8::Value>& info) |
51 { | 51 { |
52 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInte
rfaceConstructor4", info.Holder(), info.GetIsolate()); | 52 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInte
rfaceConstructor4", info.Holder(), info.GetIsolate()); |
53 V8StringResource<> scalarValueStringArg; | 53 V8StringResource<> scalarValueStringArg; |
54 { | 54 { |
55 v8::TryCatch block; | 55 v8::TryCatch block; |
56 V8RethrowTryCatchScope rethrow(block); | 56 V8RethrowTryCatchScope rethrow(block); |
57 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(scalarValueStringArg, toScalarValu
eString(info[0], exceptionState), exceptionState); | 57 TONATIVE_VOID_EXCEPTIONSTATE_INTERNAL(scalarValueStringArg, toScalarValu
eString(info[0], exceptionState), exceptionState); |
58 } | 58 } |
59 RefPtr<TestInterfaceConstructor4> impl = TestInterfaceConstructor4::create(s
calarValueStringArg); | 59 RefPtr<TestInterfaceConstructor4> impl = TestInterfaceConstructor4::create(s
calarValueStringArg); |
60 v8::Handle<v8::Object> wrapper = info.Holder(); | 60 v8::Handle<v8::Object> wrapper = info.Holder(); |
61 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceConstructor4>(impl.r
elease(), &V8TestInterfaceConstructor4::wrapperTypeInfo, wrapper, info.GetIsolat
e()); | 61 impl->associateWithWrapper(&V8TestInterfaceConstructor4::wrapperTypeInfo, wr
apper, info.GetIsolate()); |
62 v8SetReturnValue(info, wrapper); | 62 v8SetReturnValue(info, wrapper); |
63 } | 63 } |
64 | 64 |
65 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) | 65 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) |
66 { | 66 { |
67 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInte
rfaceConstructor4", info.Holder(), info.GetIsolate()); | 67 ExceptionState exceptionState(ExceptionState::ConstructionContext, "TestInte
rfaceConstructor4", info.Holder(), info.GetIsolate()); |
68 switch (std::min(1, info.Length())) { | 68 switch (std::min(1, info.Length())) { |
69 case 1: | 69 case 1: |
70 if (V8TestInterfaceConstructor4::hasInstance(info[0], info.GetIsolate())
) { | 70 if (V8TestInterfaceConstructor4::hasInstance(info[0], info.GetIsolate())
) { |
71 TestInterfaceConstructor4V8Internal::constructor1(info); | 71 TestInterfaceConstructor4V8Internal::constructor1(info); |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 return 0; | 159 return 0; |
160 } | 160 } |
161 | 161 |
162 template<> | 162 template<> |
163 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor4* impl, v8::Handle<v
8::Object> creationContext, v8::Isolate* isolate) | 163 v8::Handle<v8::Value> toV8NoInline(TestInterfaceConstructor4* impl, v8::Handle<v
8::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 |