| 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 "RuntimeEnabledFeatures.h" | 10 #include "RuntimeEnabledFeatures.h" |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 ASSERT(document); | 141 ASSERT(document); |
| 142 | 142 |
| 143 // Make sure the document is added to the DOM Node map. Otherwise, the TestI
nterfaceWillBeGarbageCollected instance | 143 // Make sure the document is added to the DOM Node map. Otherwise, the TestI
nterfaceWillBeGarbageCollected instance |
| 144 // may end up being the only node in the map and get garbage-collected prema
turely. | 144 // may end up being the only node in the map and get garbage-collected prema
turely. |
| 145 toV8(document, info.Holder(), isolate); | 145 toV8(document, info.Holder(), isolate); |
| 146 | 146 |
| 147 if (UNLIKELY(info.Length() < 1)) { | 147 if (UNLIKELY(info.Length() < 1)) { |
| 148 throwMinimumArityTypeErrorForConstructor("TestInterfaceWillBeGarbageColl
ected", 1, info.Length(), info.GetIsolate()); | 148 throwMinimumArityTypeErrorForConstructor("TestInterfaceWillBeGarbageColl
ected", 1, info.Length(), info.GetIsolate()); |
| 149 return; | 149 return; |
| 150 } | 150 } |
| 151 TOSTRING_VOID(V8StringResource<>, str, info[0]); | 151 V8StringResource<> str; |
| 152 { |
| 153 TOSTRING_VOID_INTERNAL(str, info[0]); |
| 154 } |
| 152 RefPtrWillBeRawPtr<TestInterfaceWillBeGarbageCollected> impl = TestInterface
WillBeGarbageCollected::createForJSConstructor(*document, str); | 155 RefPtrWillBeRawPtr<TestInterfaceWillBeGarbageCollected> impl = TestInterface
WillBeGarbageCollected::createForJSConstructor(*document, str); |
| 153 | 156 |
| 154 v8::Handle<v8::Object> wrapper = info.Holder(); | 157 v8::Handle<v8::Object> wrapper = info.Holder(); |
| 155 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceWillBeGarbageCollect
ed>(impl.release(), &V8TestInterfaceWillBeGarbageCollectedConstructor::wrapperTy
peInfo, wrapper, isolate, WrapperConfiguration::Independent); | 158 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceWillBeGarbageCollect
ed>(impl.release(), &V8TestInterfaceWillBeGarbageCollectedConstructor::wrapperTy
peInfo, wrapper, isolate, WrapperConfiguration::Independent); |
| 156 v8SetReturnValue(info, wrapper); | 159 v8SetReturnValue(info, wrapper); |
| 157 } | 160 } |
| 158 | 161 |
| 159 v8::Handle<v8::FunctionTemplate> V8TestInterfaceWillBeGarbageCollectedConstructo
r::domTemplate(v8::Isolate* isolate) | 162 v8::Handle<v8::FunctionTemplate> V8TestInterfaceWillBeGarbageCollectedConstructo
r::domTemplate(v8::Isolate* isolate) |
| 160 { | 163 { |
| 161 static int domTemplateKey; // This address is used for a key to look up the
dom template. | 164 static int domTemplateKey; // This address is used for a key to look up the
dom template. |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 #endif // !ENABLE(OILPAN) | 273 #endif // !ENABLE(OILPAN) |
| 271 } | 274 } |
| 272 | 275 |
| 273 template<> | 276 template<> |
| 274 v8::Handle<v8::Value> toV8NoInline(TestInterfaceWillBeGarbageCollected* impl, v8
::Handle<v8::Object> creationContext, v8::Isolate* isolate) | 277 v8::Handle<v8::Value> toV8NoInline(TestInterfaceWillBeGarbageCollected* impl, v8
::Handle<v8::Object> creationContext, v8::Isolate* isolate) |
| 275 { | 278 { |
| 276 return toV8(impl, creationContext, isolate); | 279 return toV8(impl, creationContext, isolate); |
| 277 } | 280 } |
| 278 | 281 |
| 279 } // namespace WebCore | 282 } // namespace WebCore |
| OLD | NEW |