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 "V8TestInterfaceGarbageCollected.h" | 8 #include "V8TestInterfaceGarbageCollected.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", "TestInterfaceGarbageCollect
ed", 1, info.Length(), info.GetIsolate()); | 78 throwMinimumArityTypeErrorForMethod("func", "TestInterfaceGarbageCollect
ed", 1, info.Length(), info.GetIsolate()); |
79 return; | 79 return; |
80 } | 80 } |
81 TestInterfaceGarbageCollected* impl = V8TestInterfaceGarbageCollected::toNat
ive(info.Holder()); | 81 TestInterfaceGarbageCollected* impl = V8TestInterfaceGarbageCollected::toNat
ive(info.Holder()); |
82 TONATIVE_VOID(TestInterfaceGarbageCollected*, arg, V8TestInterfaceGarbageCol
lected::toNativeWithTypeCheck(info.GetIsolate(), info[0])); | 82 TestInterfaceGarbageCollected* arg; |
| 83 { |
| 84 v8::TryCatch block; |
| 85 TONATIVE_VOID_INTERNAL(arg, V8TestInterfaceGarbageCollected::toNativeWit
hTypeCheck(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 TestInterfaceGarbageCollectedV8Internal::funcMethod(info); | 93 TestInterfaceGarbageCollectedV8Internal::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("TestInterfaceGarbageCollected"
, 1, info.Length(), info.GetIsolate()); | 101 throwMinimumArityTypeErrorForConstructor("TestInterfaceGarbageCollected"
, 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 RawPtr<TestInterfaceGarbageCollected> impl = TestInterfaceGarbageCollected::
create(str); | 108 RawPtr<TestInterfaceGarbageCollected> impl = TestInterfaceGarbageCollected::
create(str); |
102 | 109 |
103 v8::Handle<v8::Object> wrapper = info.Holder(); | 110 v8::Handle<v8::Object> wrapper = info.Holder(); |
104 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceGarbageCollected>(im
pl.release(), &V8TestInterfaceGarbageCollected::wrapperTypeInfo, wrapper, isolat
e, WrapperConfiguration::Independent); | 111 V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceGarbageCollected>(im
pl.release(), &V8TestInterfaceGarbageCollected::wrapperTypeInfo, wrapper, isolat
e, WrapperConfiguration::Independent); |
105 v8SetReturnValue(info, wrapper); | 112 v8SetReturnValue(info, wrapper); |
106 } | 113 } |
107 | 114 |
108 } // namespace TestInterfaceGarbageCollectedV8Internal | 115 } // namespace TestInterfaceGarbageCollectedV8Internal |
109 | 116 |
110 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceGarbageCo
llectedAttributes[] = { | 117 static const V8DOMConfiguration::AttributeConfiguration V8TestInterfaceGarbageCo
llectedAttributes[] = { |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 { | 215 { |
209 } | 216 } |
210 | 217 |
211 template<> | 218 template<> |
212 v8::Handle<v8::Value> toV8NoInline(TestInterfaceGarbageCollected* impl, v8::Hand
le<v8::Object> creationContext, v8::Isolate* isolate) | 219 v8::Handle<v8::Value> toV8NoInline(TestInterfaceGarbageCollected* impl, v8::Hand
le<v8::Object> creationContext, v8::Isolate* isolate) |
213 { | 220 { |
214 return toV8(impl, creationContext, isolate); | 221 return toV8(impl, creationContext, isolate); |
215 } | 222 } |
216 | 223 |
217 } // namespace WebCore | 224 } // namespace WebCore |
OLD | NEW |