| 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 90 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 91 } | 91 } |
| 92 | 92 |
| 93 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) | 93 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 94 { | 94 { |
| 95 v8::Isolate* isolate = info.GetIsolate(); | 95 v8::Isolate* isolate = info.GetIsolate(); |
| 96 if (UNLIKELY(info.Length() < 1)) { | 96 if (UNLIKELY(info.Length() < 1)) { |
| 97 throwArityTypeErrorForConstructor("TestInterfaceWillBeGarbageCollected",
1, info.Length(), info.GetIsolate()); | 97 throwArityTypeErrorForConstructor("TestInterfaceWillBeGarbageCollected",
1, info.Length(), info.GetIsolate()); |
| 98 return; | 98 return; |
| 99 } | 99 } |
| 100 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, str, info[0]); | 100 V8STRINGRESOURCE_PREPARE_VOID(V8StringResource<>, str, info[0]); |
| 101 RefPtrWillBeRawPtr<TestInterfaceWillBeGarbageCollected> impl = TestInterface
WillBeGarbageCollected::create(str); | 101 RefPtrWillBeRawPtr<TestInterfaceWillBeGarbageCollected> impl = TestInterface
WillBeGarbageCollected::create(str); |
| 102 | 102 |
| 103 v8::Handle<v8::Object> wrapper = info.Holder(); | 103 v8::Handle<v8::Object> wrapper = info.Holder(); |
| 104 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceWillBeGarbageCollect
ed>(impl.release(), &V8TestInterfaceWillBeGarbageCollected::wrapperTypeInfo, wra
pper, isolate, WrapperConfiguration::Independent); | 104 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceWillBeGarbageCollect
ed>(impl.release(), &V8TestInterfaceWillBeGarbageCollected::wrapperTypeInfo, wra
pper, isolate, WrapperConfiguration::Independent); |
| 105 v8SetReturnValue(info, wrapper); | 105 v8SetReturnValue(info, wrapper); |
| 106 } | 106 } |
| 107 | 107 |
| 108 } // namespace TestInterfaceWillBeGarbageCollectedV8Internal | 108 } // namespace TestInterfaceWillBeGarbageCollectedV8Internal |
| 109 | 109 |
| 110 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceWillBeGar
bageCollectedAttributes[] = { | 110 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceWillBeGar
bageCollectedAttributes[] = { |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 #endif // !ENABLE(OILPAN) | 211 #endif // !ENABLE(OILPAN) |
| 212 } | 212 } |
| 213 | 213 |
| 214 template<> | 214 template<> |
| 215 v8::Handle<v8::Value> toV8NoInline(TestInterfaceWillBeGarbageCollected* impl, v8
::Handle<v8::Object> creationContext, v8::Isolate* isolate) | 215 v8::Handle<v8::Value> toV8NoInline(TestInterfaceWillBeGarbageCollected* impl, v8
::Handle<v8::Object> creationContext, v8::Isolate* isolate) |
| 216 { | 216 { |
| 217 return toV8(impl, creationContext, isolate); | 217 return toV8(impl, creationContext, isolate); |
| 218 } | 218 } |
| 219 | 219 |
| 220 } // namespace WebCore | 220 } // namespace WebCore |
| OLD | NEW |