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 "V8TestInterfaceWillBeGarbageCollected.h" | 8 #include "V8TestInterfaceWillBeGarbageCollected.h" |
9 | 9 |
10 #include "bindings/core/v8/ExceptionState.h" | 10 #include "bindings/core/v8/ExceptionState.h" |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 } | 82 } |
83 | 83 |
84 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) | 84 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) |
85 { | 85 { |
86 if (UNLIKELY(info.Length() < 1)) { | 86 if (UNLIKELY(info.Length() < 1)) { |
87 V8ThrowException::throwException(createMinimumArityTypeErrorForConstruct
or(info.GetIsolate(), "TestInterfaceWillBeGarbageCollected", 1, info.Length()),
info.GetIsolate()); | 87 V8ThrowException::throwException(createMinimumArityTypeErrorForConstruct
or(info.GetIsolate(), "TestInterfaceWillBeGarbageCollected", 1, info.Length()),
info.GetIsolate()); |
88 return; | 88 return; |
89 } | 89 } |
90 V8StringResource<> str; | 90 V8StringResource<> str; |
91 { | 91 { |
92 TOSTRING_VOID_INTERNAL(str, info[0]); | 92 TONATIVE_CONVERT((str = info[0]).prepare(), return); |
93 } | 93 } |
94 RefPtrWillBeRawPtr<TestInterfaceWillBeGarbageCollected> impl = TestInterface
WillBeGarbageCollected::create(str); | 94 RefPtrWillBeRawPtr<TestInterfaceWillBeGarbageCollected> impl = TestInterface
WillBeGarbageCollected::create(str); |
95 v8::Local<v8::Object> wrapper = info.Holder(); | 95 v8::Local<v8::Object> wrapper = info.Holder(); |
96 impl->associateWithWrapper(info.GetIsolate(), &V8TestInterfaceWillBeGarbageC
ollected::wrapperTypeInfo, wrapper); | 96 impl->associateWithWrapper(info.GetIsolate(), &V8TestInterfaceWillBeGarbageC
ollected::wrapperTypeInfo, wrapper); |
97 v8SetReturnValue(info, wrapper); | 97 v8SetReturnValue(info, wrapper); |
98 } | 98 } |
99 | 99 |
100 } // namespace TestInterfaceWillBeGarbageCollectedV8Internal | 100 } // namespace TestInterfaceWillBeGarbageCollectedV8Internal |
101 | 101 |
102 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceWillBeGar
bageCollectedAttributes[] = { | 102 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceWillBeGar
bageCollectedAttributes[] = { |
(...skipping 12 matching lines...) Expand all Loading... |
115 if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExis
tingObject) { | 115 if (ConstructorMode::current(info.GetIsolate()) == ConstructorMode::WrapExis
tingObject) { |
116 v8SetReturnValue(info, info.Holder()); | 116 v8SetReturnValue(info, info.Holder()); |
117 return; | 117 return; |
118 } | 118 } |
119 if (UNLIKELY(info.Length() < 1)) { | 119 if (UNLIKELY(info.Length() < 1)) { |
120 V8ThrowException::throwException(createMinimumArityTypeErrorForConstruct
or(info.GetIsolate(), "TestInterfaceWillBeGarbageCollected", 1, info.Length()),
info.GetIsolate()); | 120 V8ThrowException::throwException(createMinimumArityTypeErrorForConstruct
or(info.GetIsolate(), "TestInterfaceWillBeGarbageCollected", 1, info.Length()),
info.GetIsolate()); |
121 return; | 121 return; |
122 } | 122 } |
123 V8StringResource<> str; | 123 V8StringResource<> str; |
124 { | 124 { |
125 TOSTRING_VOID_INTERNAL(str, info[0]); | 125 TONATIVE_CONVERT((str = info[0]).prepare(), return); |
126 } | 126 } |
127 RefPtrWillBeRawPtr<TestInterfaceWillBeGarbageCollected> impl = TestInterface
WillBeGarbageCollected::createForJSConstructor(str); | 127 RefPtrWillBeRawPtr<TestInterfaceWillBeGarbageCollected> impl = TestInterface
WillBeGarbageCollected::createForJSConstructor(str); |
128 v8::Local<v8::Object> wrapper = info.Holder(); | 128 v8::Local<v8::Object> wrapper = info.Holder(); |
129 impl->associateWithWrapper(info.GetIsolate(), &V8TestInterfaceWillBeGarbageC
ollectedConstructor::wrapperTypeInfo, wrapper); | 129 impl->associateWithWrapper(info.GetIsolate(), &V8TestInterfaceWillBeGarbageC
ollectedConstructor::wrapperTypeInfo, wrapper); |
130 v8SetReturnValue(info, wrapper); | 130 v8SetReturnValue(info, wrapper); |
131 } | 131 } |
132 | 132 |
133 v8::Local<v8::FunctionTemplate> V8TestInterfaceWillBeGarbageCollectedConstructor
::domTemplate(v8::Isolate* isolate) | 133 v8::Local<v8::FunctionTemplate> V8TestInterfaceWillBeGarbageCollectedConstructor
::domTemplate(v8::Isolate* isolate) |
134 { | 134 { |
135 static int domTemplateKey; // This address is used for a key to look up the
dom template. | 135 static int domTemplateKey; // This address is used for a key to look up the
dom template. |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 } | 216 } |
217 | 217 |
218 void V8TestInterfaceWillBeGarbageCollected::derefObject(ScriptWrappable* scriptW
rappable) | 218 void V8TestInterfaceWillBeGarbageCollected::derefObject(ScriptWrappable* scriptW
rappable) |
219 { | 219 { |
220 #if !ENABLE(OILPAN) | 220 #if !ENABLE(OILPAN) |
221 scriptWrappable->toImpl<TestInterfaceWillBeGarbageCollected>()->deref(); | 221 scriptWrappable->toImpl<TestInterfaceWillBeGarbageCollected>()->deref(); |
222 #endif | 222 #endif |
223 } | 223 } |
224 | 224 |
225 } // namespace blink | 225 } // namespace blink |
OLD | NEW |