OLD | NEW |
1 /* | 1 /* |
2 This file is part of the Blink open source project. | 2 This file is part of the Blink open source project. |
3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY! | 3 This file has been auto-generated by CodeGeneratorV8.pm. DO NOT MODIFY! |
4 | 4 |
5 This library is free software; you can redistribute it and/or | 5 This library is free software; you can redistribute it and/or |
6 modify it under the terms of the GNU Library General Public | 6 modify it under the terms of the GNU Library General Public |
7 License as published by the Free Software Foundation; either | 7 License as published by the Free Software Foundation; either |
8 version 2 of the License, or (at your option) any later version. | 8 version 2 of the License, or (at your option) any later version. |
9 | 9 |
10 This library is distributed in the hope that it will be useful, | 10 This library is distributed in the hope that it will be useful, |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 191 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
192 } | 192 } |
193 | 193 |
194 static void stringAttrWithGetterExceptionAttrGetter(v8::Local<v8::String> name,
const v8::PropertyCallbackInfo<v8::Value>& info) | 194 static void stringAttrWithGetterExceptionAttrGetter(v8::Local<v8::String> name,
const v8::PropertyCallbackInfo<v8::Value>& info) |
195 { | 195 { |
196 TestTypedefs* imp = V8TestTypedefs::toNative(info.Holder()); | 196 TestTypedefs* imp = V8TestTypedefs::toNative(info.Holder()); |
197 ExceptionState es(info.GetIsolate()); | 197 ExceptionState es(info.GetIsolate()); |
198 String v = imp->stringAttrWithGetterException(es); | 198 String v = imp->stringAttrWithGetterException(es); |
199 if (UNLIKELY(es.throwIfNeeded())) | 199 if (UNLIKELY(es.throwIfNeeded())) |
200 return; | 200 return; |
201 v8SetReturnValueString(info, v, info.GetIsolate(), NullStringAsEmpty); | 201 v8SetReturnValueString(info, v, info.GetIsolate()); |
202 return; | 202 return; |
203 } | 203 } |
204 | 204 |
205 static void stringAttrWithGetterExceptionAttrGetterCallback(v8::Local<v8::String
> name, const v8::PropertyCallbackInfo<v8::Value>& info) | 205 static void stringAttrWithGetterExceptionAttrGetterCallback(v8::Local<v8::String
> name, const v8::PropertyCallbackInfo<v8::Value>& info) |
206 { | 206 { |
207 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 207 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
208 TestTypedefsV8Internal::stringAttrWithGetterExceptionAttrGetter(name, info); | 208 TestTypedefsV8Internal::stringAttrWithGetterExceptionAttrGetter(name, info); |
209 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 209 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
210 } | 210 } |
211 | 211 |
212 static void stringAttrWithGetterExceptionAttrSetter(v8::Local<v8::String> name,
v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) | 212 static void stringAttrWithGetterExceptionAttrSetter(v8::Local<v8::String> name,
v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) |
213 { | 213 { |
214 TestTypedefs* imp = V8TestTypedefs::toNative(info.Holder()); | 214 TestTypedefs* imp = V8TestTypedefs::toNative(info.Holder()); |
215 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, v, value); | 215 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, v, value); |
216 imp->setStringAttrWithGetterException(v); | 216 imp->setStringAttrWithGetterException(v); |
217 return; | 217 return; |
218 } | 218 } |
219 | 219 |
220 static void stringAttrWithGetterExceptionAttrSetterCallback(v8::Local<v8::String
> name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) | 220 static void stringAttrWithGetterExceptionAttrSetterCallback(v8::Local<v8::String
> name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) |
221 { | 221 { |
222 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 222 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
223 TestTypedefsV8Internal::stringAttrWithGetterExceptionAttrSetter(name, value,
info); | 223 TestTypedefsV8Internal::stringAttrWithGetterExceptionAttrSetter(name, value,
info); |
224 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 224 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
225 } | 225 } |
226 | 226 |
227 static void stringAttrWithSetterExceptionAttrGetter(v8::Local<v8::String> name,
const v8::PropertyCallbackInfo<v8::Value>& info) | 227 static void stringAttrWithSetterExceptionAttrGetter(v8::Local<v8::String> name,
const v8::PropertyCallbackInfo<v8::Value>& info) |
228 { | 228 { |
229 TestTypedefs* imp = V8TestTypedefs::toNative(info.Holder()); | 229 TestTypedefs* imp = V8TestTypedefs::toNative(info.Holder()); |
230 v8SetReturnValueString(info, imp->stringAttrWithSetterException(), info.GetI
solate(), NullStringAsEmpty); | 230 v8SetReturnValueString(info, imp->stringAttrWithSetterException(), info.GetI
solate()); |
231 return; | 231 return; |
232 } | 232 } |
233 | 233 |
234 static void stringAttrWithSetterExceptionAttrGetterCallback(v8::Local<v8::String
> name, const v8::PropertyCallbackInfo<v8::Value>& info) | 234 static void stringAttrWithSetterExceptionAttrGetterCallback(v8::Local<v8::String
> name, const v8::PropertyCallbackInfo<v8::Value>& info) |
235 { | 235 { |
236 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 236 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
237 TestTypedefsV8Internal::stringAttrWithSetterExceptionAttrGetter(name, info); | 237 TestTypedefsV8Internal::stringAttrWithSetterExceptionAttrGetter(name, info); |
238 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 238 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
239 } | 239 } |
240 | 240 |
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
612 installPerContextProperties(wrapper, impl.get(), isolate); | 612 installPerContextProperties(wrapper, impl.get(), isolate); |
613 V8DOMWrapper::associateObjectWithWrapper<V8TestTypedefs>(impl, &info, wrappe
r, isolate, WrapperConfiguration::Independent); | 613 V8DOMWrapper::associateObjectWithWrapper<V8TestTypedefs>(impl, &info, wrappe
r, isolate, WrapperConfiguration::Independent); |
614 return wrapper; | 614 return wrapper; |
615 } | 615 } |
616 void V8TestTypedefs::derefObject(void* object) | 616 void V8TestTypedefs::derefObject(void* object) |
617 { | 617 { |
618 fromInternalPointer(object)->deref(); | 618 fromInternalPointer(object)->deref(); |
619 } | 619 } |
620 | 620 |
621 } // namespace WebCore | 621 } // namespace WebCore |
OLD | NEW |