| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 72 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 73 } | 73 } |
| 74 | 74 |
| 75 static void funcMethod(const v8::FunctionCallbackInfo<v8::Value>& info) | 75 static void funcMethod(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 76 { | 76 { |
| 77 if (UNLIKELY(info.Length() < 1)) { | 77 if (UNLIKELY(info.Length() < 1)) { |
| 78 throwMinimumArityTypeErrorForMethod("func", "TestInterfaceWillBeGarbageC
ollected", 1, info.Length(), info.GetIsolate()); | 78 throwMinimumArityTypeErrorForMethod("func", "TestInterfaceWillBeGarbageC
ollected", 1, info.Length(), info.GetIsolate()); |
| 79 return; | 79 return; |
| 80 } | 80 } |
| 81 TestInterfaceWillBeGarbageCollected* impl = V8TestInterfaceWillBeGarbageColl
ected::toNative(info.Holder()); | 81 TestInterfaceWillBeGarbageCollected* impl = V8TestInterfaceWillBeGarbageColl
ected::toNative(info.Holder()); |
| 82 TONATIVE_VOID(TestInterfaceWillBeGarbageCollected*, arg, V8TestInterfaceWill
BeGarbageCollected::toNativeWithTypeCheck(info.GetIsolate(), info[0])); | 82 TestInterfaceWillBeGarbageCollected* arg; |
| 83 { |
| 84 v8::TryCatch block; |
| 85 TONATIVE_VOID_INTERNAL(arg, V8TestInterfaceWillBeGarbageCollected::toNat
iveWithTypeCheck(info.GetIsolate(), info[0])); |
| 86 } |
| 83 impl->func(arg); | 87 impl->func(arg); |
| 84 } | 88 } |
| 85 | 89 |
| 86 static void funcMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) | 90 static void funcMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 87 { | 91 { |
| 88 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); | 92 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); |
| 89 TestInterfaceWillBeGarbageCollectedV8Internal::funcMethod(info); | 93 TestInterfaceWillBeGarbageCollectedV8Internal::funcMethod(info); |
| 90 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); | 94 TRACE_EVENT_SET_SAMPLING_STATE("V8", "V8Execution"); |
| 91 } | 95 } |
| 92 | 96 |
| 93 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) | 97 static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) |
| 94 { | 98 { |
| 95 v8::Isolate* isolate = info.GetIsolate(); | 99 v8::Isolate* isolate = info.GetIsolate(); |
| 96 if (UNLIKELY(info.Length() < 1)) { | 100 if (UNLIKELY(info.Length() < 1)) { |
| 97 throwMinimumArityTypeErrorForConstructor("TestInterfaceWillBeGarbageColl
ected", 1, info.Length(), info.GetIsolate()); | 101 throwMinimumArityTypeErrorForConstructor("TestInterfaceWillBeGarbageColl
ected", 1, info.Length(), info.GetIsolate()); |
| 98 return; | 102 return; |
| 99 } | 103 } |
| 100 TOSTRING_VOID(V8StringResource<>, str, info[0]); | 104 V8StringResource<> str; |
| 105 { |
| 106 TOSTRING_VOID_INTERNAL(str, info[0]); |
| 107 } |
| 101 RefPtrWillBeRawPtr<TestInterfaceWillBeGarbageCollected> impl = TestInterface
WillBeGarbageCollected::create(str); | 108 RefPtrWillBeRawPtr<TestInterfaceWillBeGarbageCollected> impl = TestInterface
WillBeGarbageCollected::create(str); |
| 102 | 109 |
| 103 v8::Handle<v8::Object> wrapper = info.Holder(); | 110 v8::Handle<v8::Object> wrapper = info.Holder(); |
| 104 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceWillBeGarbageCollect
ed>(impl.release(), &V8TestInterfaceWillBeGarbageCollected::wrapperTypeInfo, wra
pper, isolate, WrapperConfiguration::Independent); | 111 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceWillBeGarbageCollect
ed>(impl.release(), &V8TestInterfaceWillBeGarbageCollected::wrapperTypeInfo, wra
pper, isolate, WrapperConfiguration::Independent); |
| 105 v8SetReturnValue(info, wrapper); | 112 v8SetReturnValue(info, wrapper); |
| 106 } | 113 } |
| 107 | 114 |
| 108 } // namespace TestInterfaceWillBeGarbageCollectedV8Internal | 115 } // namespace TestInterfaceWillBeGarbageCollectedV8Internal |
| 109 | 116 |
| 110 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceWillBeGar
bageCollectedAttributes[] = { | 117 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceWillBeGar
bageCollectedAttributes[] = { |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 #endif // !ENABLE(OILPAN) | 218 #endif // !ENABLE(OILPAN) |
| 212 } | 219 } |
| 213 | 220 |
| 214 template<> | 221 template<> |
| 215 v8::Handle<v8::Value> toV8NoInline(TestInterfaceWillBeGarbageCollected* impl, v8
::Handle<v8::Object> creationContext, v8::Isolate* isolate) | 222 v8::Handle<v8::Value> toV8NoInline(TestInterfaceWillBeGarbageCollected* impl, v8
::Handle<v8::Object> creationContext, v8::Isolate* isolate) |
| 216 { | 223 { |
| 217 return toV8(impl, creationContext, isolate); | 224 return toV8(impl, creationContext, isolate); |
| 218 } | 225 } |
| 219 | 226 |
| 220 } // namespace WebCore | 227 } // namespace WebCore |
| OLD | NEW |