| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 WrapperTypeInfo V8TestTypedefs::info = { V8TestTypedefs::GetTemplate, V8TestType
defs::derefObject, 0, 0, 0, V8TestTypedefs::installPerContextPrototypeProperties
, 0, WrapperTypeObjectPrototype }; | 65 WrapperTypeInfo V8TestTypedefs::info = { V8TestTypedefs::GetTemplate, V8TestType
defs::derefObject, 0, 0, 0, V8TestTypedefs::installPerContextPrototypeProperties
, 0, WrapperTypeObjectPrototype }; |
| 66 | 66 |
| 67 namespace TestTypedefsV8Internal { | 67 namespace TestTypedefsV8Internal { |
| 68 | 68 |
| 69 template <typename T> void V8_USE(T) { } | 69 template <typename T> void V8_USE(T) { } |
| 70 | 70 |
| 71 static void unsignedLongLongAttrAttributeGetter(v8::Local<v8::String> name, cons
t v8::PropertyCallbackInfo<v8::Value>& info) | 71 static void unsignedLongLongAttrAttributeGetter(v8::Local<v8::String> name, cons
t v8::PropertyCallbackInfo<v8::Value>& info) |
| 72 { | 72 { |
| 73 TestTypedefs* imp = V8TestTypedefs::toNative(info.Holder()); | 73 TestTypedefs* imp = V8TestTypedefs::toNative(info.Holder()); |
| 74 v8SetReturnValue(info, static_cast<double>(imp->unsignedLongLongAttr())); | 74 v8SetReturnValue(info, static_cast<double>(imp->unsignedLongLongAttr())); |
| 75 return; | |
| 76 } | 75 } |
| 77 | 76 |
| 78 static void unsignedLongLongAttrAttributeGetterCallback(v8::Local<v8::String> na
me, const v8::PropertyCallbackInfo<v8::Value>& info) | 77 static void unsignedLongLongAttrAttributeGetterCallback(v8::Local<v8::String> na
me, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 79 { | 78 { |
| 80 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 79 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 81 TestTypedefsV8Internal::unsignedLongLongAttrAttributeGetter(name, info); | 80 TestTypedefsV8Internal::unsignedLongLongAttrAttributeGetter(name, info); |
| 82 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 81 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 83 } | 82 } |
| 84 | 83 |
| 85 static void unsignedLongLongAttrAttributeSetter(v8::Local<v8::String> name, v8::
Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) | 84 static void unsignedLongLongAttrAttributeSetter(v8::Local<v8::String> name, v8::
Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) |
| 86 { | 85 { |
| 87 TestTypedefs* imp = V8TestTypedefs::toNative(info.Holder()); | 86 TestTypedefs* imp = V8TestTypedefs::toNative(info.Holder()); |
| 88 V8TRYCATCH_VOID(unsigned long long, v, toUInt64(value)); | 87 V8TRYCATCH_VOID(unsigned long long, v, toUInt64(value)); |
| 89 imp->setUnsignedLongLongAttr(v); | 88 imp->setUnsignedLongLongAttr(v); |
| 90 return; | |
| 91 } | 89 } |
| 92 | 90 |
| 93 static void unsignedLongLongAttrAttributeSetterCallback(v8::Local<v8::String> na
me, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) | 91 static void unsignedLongLongAttrAttributeSetterCallback(v8::Local<v8::String> na
me, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) |
| 94 { | 92 { |
| 95 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 93 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 96 TestTypedefsV8Internal::unsignedLongLongAttrAttributeSetter(name, value, inf
o); | 94 TestTypedefsV8Internal::unsignedLongLongAttrAttributeSetter(name, value, inf
o); |
| 97 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 95 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 98 } | 96 } |
| 99 | 97 |
| 100 static void immutableSerializedScriptValueAttributeGetter(v8::Local<v8::String>
name, const v8::PropertyCallbackInfo<v8::Value>& info) | 98 static void immutableSerializedScriptValueAttributeGetter(v8::Local<v8::String>
name, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 101 { | 99 { |
| 102 TestTypedefs* imp = V8TestTypedefs::toNative(info.Holder()); | 100 TestTypedefs* imp = V8TestTypedefs::toNative(info.Holder()); |
| 103 v8SetReturnValue(info, imp->immutableSerializedScriptValue() ? imp->immutabl
eSerializedScriptValue()->deserialize() : v8::Handle<v8::Value>(v8::Null(info.Ge
tIsolate()))); | 101 v8SetReturnValue(info, imp->immutableSerializedScriptValue() ? imp->immutabl
eSerializedScriptValue()->deserialize() : v8::Handle<v8::Value>(v8::Null(info.Ge
tIsolate()))); |
| 104 return; | |
| 105 } | 102 } |
| 106 | 103 |
| 107 static void immutableSerializedScriptValueAttributeGetterCallback(v8::Local<v8::
String> name, const v8::PropertyCallbackInfo<v8::Value>& info) | 104 static void immutableSerializedScriptValueAttributeGetterCallback(v8::Local<v8::
String> name, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 108 { | 105 { |
| 109 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 106 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 110 TestTypedefsV8Internal::immutableSerializedScriptValueAttributeGetter(name,
info); | 107 TestTypedefsV8Internal::immutableSerializedScriptValueAttributeGetter(name,
info); |
| 111 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 108 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 112 } | 109 } |
| 113 | 110 |
| 114 static void immutableSerializedScriptValueAttributeSetter(v8::Local<v8::String>
name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) | 111 static void immutableSerializedScriptValueAttributeSetter(v8::Local<v8::String>
name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) |
| 115 { | 112 { |
| 116 TestTypedefs* imp = V8TestTypedefs::toNative(info.Holder()); | 113 TestTypedefs* imp = V8TestTypedefs::toNative(info.Holder()); |
| 117 V8TRYCATCH_VOID(RefPtr<SerializedScriptValue>, v, SerializedScriptValue::cre
ate(value, info.GetIsolate())); | 114 V8TRYCATCH_VOID(RefPtr<SerializedScriptValue>, v, SerializedScriptValue::cre
ate(value, info.GetIsolate())); |
| 118 imp->setImmutableSerializedScriptValue(WTF::getPtr(v)); | 115 imp->setImmutableSerializedScriptValue(WTF::getPtr(v)); |
| 119 return; | |
| 120 } | 116 } |
| 121 | 117 |
| 122 static void immutableSerializedScriptValueAttributeSetterCallback(v8::Local<v8::
String> name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>&
info) | 118 static void immutableSerializedScriptValueAttributeSetterCallback(v8::Local<v8::
String> name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>&
info) |
| 123 { | 119 { |
| 124 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 120 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 125 TestTypedefsV8Internal::immutableSerializedScriptValueAttributeSetter(name,
value, info); | 121 TestTypedefsV8Internal::immutableSerializedScriptValueAttributeSetter(name,
value, info); |
| 126 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 122 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 127 } | 123 } |
| 128 | 124 |
| 129 static void attrWithGetterExceptionAttributeGetter(v8::Local<v8::String> name, c
onst v8::PropertyCallbackInfo<v8::Value>& info) | 125 static void attrWithGetterExceptionAttributeGetter(v8::Local<v8::String> name, c
onst v8::PropertyCallbackInfo<v8::Value>& info) |
| 130 { | 126 { |
| 131 TestTypedefs* imp = V8TestTypedefs::toNative(info.Holder()); | 127 TestTypedefs* imp = V8TestTypedefs::toNative(info.Holder()); |
| 132 ExceptionState es(info.GetIsolate()); | 128 ExceptionState es(info.GetIsolate()); |
| 133 int value = imp->attrWithGetterException(es); | 129 int value = imp->attrWithGetterException(es); |
| 134 if (UNLIKELY(es.throwIfNeeded())) | 130 if (UNLIKELY(es.throwIfNeeded())) |
| 135 return; | 131 return; |
| 136 v8SetReturnValueInt(info, value); | 132 v8SetReturnValueInt(info, value); |
| 137 return; | |
| 138 } | 133 } |
| 139 | 134 |
| 140 static void attrWithGetterExceptionAttributeGetterCallback(v8::Local<v8::String>
name, const v8::PropertyCallbackInfo<v8::Value>& info) | 135 static void attrWithGetterExceptionAttributeGetterCallback(v8::Local<v8::String>
name, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 141 { | 136 { |
| 142 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 137 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 143 TestTypedefsV8Internal::attrWithGetterExceptionAttributeGetter(name, info); | 138 TestTypedefsV8Internal::attrWithGetterExceptionAttributeGetter(name, info); |
| 144 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 139 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 145 } | 140 } |
| 146 | 141 |
| 147 static void attrWithGetterExceptionAttributeSetter(v8::Local<v8::String> name, v
8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) | 142 static void attrWithGetterExceptionAttributeSetter(v8::Local<v8::String> name, v
8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) |
| 148 { | 143 { |
| 149 TestTypedefs* imp = V8TestTypedefs::toNative(info.Holder()); | 144 TestTypedefs* imp = V8TestTypedefs::toNative(info.Holder()); |
| 150 V8TRYCATCH_VOID(int, v, toInt32(value)); | 145 V8TRYCATCH_VOID(int, v, toInt32(value)); |
| 151 imp->setAttrWithGetterException(v); | 146 imp->setAttrWithGetterException(v); |
| 152 return; | |
| 153 } | 147 } |
| 154 | 148 |
| 155 static void attrWithGetterExceptionAttributeSetterCallback(v8::Local<v8::String>
name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) | 149 static void attrWithGetterExceptionAttributeSetterCallback(v8::Local<v8::String>
name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) |
| 156 { | 150 { |
| 157 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 151 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 158 TestTypedefsV8Internal::attrWithGetterExceptionAttributeSetter(name, value,
info); | 152 TestTypedefsV8Internal::attrWithGetterExceptionAttributeSetter(name, value,
info); |
| 159 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 153 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 160 } | 154 } |
| 161 | 155 |
| 162 static void attrWithSetterExceptionAttributeGetter(v8::Local<v8::String> name, c
onst v8::PropertyCallbackInfo<v8::Value>& info) | 156 static void attrWithSetterExceptionAttributeGetter(v8::Local<v8::String> name, c
onst v8::PropertyCallbackInfo<v8::Value>& info) |
| 163 { | 157 { |
| 164 TestTypedefs* imp = V8TestTypedefs::toNative(info.Holder()); | 158 TestTypedefs* imp = V8TestTypedefs::toNative(info.Holder()); |
| 165 v8SetReturnValueInt(info, imp->attrWithSetterException()); | 159 v8SetReturnValueInt(info, imp->attrWithSetterException()); |
| 166 return; | |
| 167 } | 160 } |
| 168 | 161 |
| 169 static void attrWithSetterExceptionAttributeGetterCallback(v8::Local<v8::String>
name, const v8::PropertyCallbackInfo<v8::Value>& info) | 162 static void attrWithSetterExceptionAttributeGetterCallback(v8::Local<v8::String>
name, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 170 { | 163 { |
| 171 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 164 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 172 TestTypedefsV8Internal::attrWithSetterExceptionAttributeGetter(name, info); | 165 TestTypedefsV8Internal::attrWithSetterExceptionAttributeGetter(name, info); |
| 173 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 166 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 174 } | 167 } |
| 175 | 168 |
| 176 static void attrWithSetterExceptionAttributeSetter(v8::Local<v8::String> name, v
8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) | 169 static void attrWithSetterExceptionAttributeSetter(v8::Local<v8::String> name, v
8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) |
| 177 { | 170 { |
| 178 TestTypedefs* imp = V8TestTypedefs::toNative(info.Holder()); | 171 TestTypedefs* imp = V8TestTypedefs::toNative(info.Holder()); |
| 179 V8TRYCATCH_VOID(int, v, toInt32(value)); | 172 V8TRYCATCH_VOID(int, v, toInt32(value)); |
| 180 ExceptionState es(info.GetIsolate()); | 173 ExceptionState es(info.GetIsolate()); |
| 181 imp->setAttrWithSetterException(v, es); | 174 imp->setAttrWithSetterException(v, es); |
| 182 es.throwIfNeeded(); | 175 es.throwIfNeeded(); |
| 183 return; | |
| 184 } | 176 } |
| 185 | 177 |
| 186 static void attrWithSetterExceptionAttributeSetterCallback(v8::Local<v8::String>
name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) | 178 static void attrWithSetterExceptionAttributeSetterCallback(v8::Local<v8::String>
name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) |
| 187 { | 179 { |
| 188 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 180 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 189 TestTypedefsV8Internal::attrWithSetterExceptionAttributeSetter(name, value,
info); | 181 TestTypedefsV8Internal::attrWithSetterExceptionAttributeSetter(name, value,
info); |
| 190 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 182 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 191 } | 183 } |
| 192 | 184 |
| 193 static void stringAttrWithGetterExceptionAttributeGetter(v8::Local<v8::String> n
ame, const v8::PropertyCallbackInfo<v8::Value>& info) | 185 static void stringAttrWithGetterExceptionAttributeGetter(v8::Local<v8::String> n
ame, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 194 { | 186 { |
| 195 TestTypedefs* imp = V8TestTypedefs::toNative(info.Holder()); | 187 TestTypedefs* imp = V8TestTypedefs::toNative(info.Holder()); |
| 196 ExceptionState es(info.GetIsolate()); | 188 ExceptionState es(info.GetIsolate()); |
| 197 String value = imp->stringAttrWithGetterException(es); | 189 String value = imp->stringAttrWithGetterException(es); |
| 198 if (UNLIKELY(es.throwIfNeeded())) | 190 if (UNLIKELY(es.throwIfNeeded())) |
| 199 return; | 191 return; |
| 200 v8SetReturnValueString(info, value, info.GetIsolate()); | 192 v8SetReturnValueString(info, value, info.GetIsolate()); |
| 201 return; | |
| 202 } | 193 } |
| 203 | 194 |
| 204 static void stringAttrWithGetterExceptionAttributeGetterCallback(v8::Local<v8::S
tring> name, const v8::PropertyCallbackInfo<v8::Value>& info) | 195 static void stringAttrWithGetterExceptionAttributeGetterCallback(v8::Local<v8::S
tring> name, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 205 { | 196 { |
| 206 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 197 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 207 TestTypedefsV8Internal::stringAttrWithGetterExceptionAttributeGetter(name, i
nfo); | 198 TestTypedefsV8Internal::stringAttrWithGetterExceptionAttributeGetter(name, i
nfo); |
| 208 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 199 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 209 } | 200 } |
| 210 | 201 |
| 211 static void stringAttrWithGetterExceptionAttributeSetter(v8::Local<v8::String> n
ame, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) | 202 static void stringAttrWithGetterExceptionAttributeSetter(v8::Local<v8::String> n
ame, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) |
| 212 { | 203 { |
| 213 TestTypedefs* imp = V8TestTypedefs::toNative(info.Holder()); | 204 TestTypedefs* imp = V8TestTypedefs::toNative(info.Holder()); |
| 214 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, v, value); | 205 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, v, value); |
| 215 imp->setStringAttrWithGetterException(v); | 206 imp->setStringAttrWithGetterException(v); |
| 216 return; | |
| 217 } | 207 } |
| 218 | 208 |
| 219 static void stringAttrWithGetterExceptionAttributeSetterCallback(v8::Local<v8::S
tring> name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& i
nfo) | 209 static void stringAttrWithGetterExceptionAttributeSetterCallback(v8::Local<v8::S
tring> name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& i
nfo) |
| 220 { | 210 { |
| 221 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 211 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 222 TestTypedefsV8Internal::stringAttrWithGetterExceptionAttributeSetter(name, v
alue, info); | 212 TestTypedefsV8Internal::stringAttrWithGetterExceptionAttributeSetter(name, v
alue, info); |
| 223 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 213 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 224 } | 214 } |
| 225 | 215 |
| 226 static void stringAttrWithSetterExceptionAttributeGetter(v8::Local<v8::String> n
ame, const v8::PropertyCallbackInfo<v8::Value>& info) | 216 static void stringAttrWithSetterExceptionAttributeGetter(v8::Local<v8::String> n
ame, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 227 { | 217 { |
| 228 TestTypedefs* imp = V8TestTypedefs::toNative(info.Holder()); | 218 TestTypedefs* imp = V8TestTypedefs::toNative(info.Holder()); |
| 229 v8SetReturnValueString(info, imp->stringAttrWithSetterException(), info.GetI
solate()); | 219 v8SetReturnValueString(info, imp->stringAttrWithSetterException(), info.GetI
solate()); |
| 230 return; | |
| 231 } | 220 } |
| 232 | 221 |
| 233 static void stringAttrWithSetterExceptionAttributeGetterCallback(v8::Local<v8::S
tring> name, const v8::PropertyCallbackInfo<v8::Value>& info) | 222 static void stringAttrWithSetterExceptionAttributeGetterCallback(v8::Local<v8::S
tring> name, const v8::PropertyCallbackInfo<v8::Value>& info) |
| 234 { | 223 { |
| 235 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 224 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
| 236 TestTypedefsV8Internal::stringAttrWithSetterExceptionAttributeGetter(name, i
nfo); | 225 TestTypedefsV8Internal::stringAttrWithSetterExceptionAttributeGetter(name, i
nfo); |
| 237 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 226 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 238 } | 227 } |
| 239 | 228 |
| 240 static void stringAttrWithSetterExceptionAttributeSetter(v8::Local<v8::String> n
ame, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) | 229 static void stringAttrWithSetterExceptionAttributeSetter(v8::Local<v8::String> n
ame, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) |
| 241 { | 230 { |
| 242 TestTypedefs* imp = V8TestTypedefs::toNative(info.Holder()); | 231 TestTypedefs* imp = V8TestTypedefs::toNative(info.Holder()); |
| 243 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, v, value); | 232 V8TRYCATCH_FOR_V8STRINGRESOURCE_VOID(V8StringResource<>, v, value); |
| 244 ExceptionState es(info.GetIsolate()); | 233 ExceptionState es(info.GetIsolate()); |
| 245 imp->setStringAttrWithSetterException(v, es); | 234 imp->setStringAttrWithSetterException(v, es); |
| 246 es.throwIfNeeded(); | 235 es.throwIfNeeded(); |
| 247 return; | |
| 248 } | 236 } |
| 249 | 237 |
| 250 static void stringAttrWithSetterExceptionAttributeSetterCallback(v8::Local<v8::S
tring> name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& i
nfo) | 238 static void stringAttrWithSetterExceptionAttributeSetterCallback(v8::Local<v8::S
tring> name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& i
nfo) |
| 251 { | 239 { |
| 252 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 240 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 253 TestTypedefsV8Internal::stringAttrWithSetterExceptionAttributeSetter(name, v
alue, info); | 241 TestTypedefsV8Internal::stringAttrWithSetterExceptionAttributeSetter(name, v
alue, info); |
| 254 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 242 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 255 } | 243 } |
| 256 | 244 |
| 257 static void TestTypedefsConstructorGetter(v8::Local<v8::String> name, const v8::
PropertyCallbackInfo<v8::Value>& info) | 245 static void TestTypedefsConstructorGetter(v8::Local<v8::String> name, const v8::
PropertyCallbackInfo<v8::Value>& info) |
| (...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 604 V8DOMWrapper::associateObjectWithWrapper<V8TestTypedefs>(impl, &info, wrappe
r, isolate, WrapperConfiguration::Independent); | 592 V8DOMWrapper::associateObjectWithWrapper<V8TestTypedefs>(impl, &info, wrappe
r, isolate, WrapperConfiguration::Independent); |
| 605 return wrapper; | 593 return wrapper; |
| 606 } | 594 } |
| 607 | 595 |
| 608 void V8TestTypedefs::derefObject(void* object) | 596 void V8TestTypedefs::derefObject(void* object) |
| 609 { | 597 { |
| 610 fromInternalPointer(object)->deref(); | 598 fromInternalPointer(object)->deref(); |
| 611 } | 599 } |
| 612 | 600 |
| 613 } // namespace WebCore | 601 } // namespace WebCore |
| OLD | NEW |