| 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 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 static void cachedValueCallWithAttributeSetter(v8::Local<v8::String> name, v8::L
ocal<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) | 221 static void cachedValueCallWithAttributeSetter(v8::Local<v8::String> name, v8::L
ocal<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) |
| 222 { | 222 { |
| 223 TestSerializedScriptValueInterface* imp = V8TestSerializedScriptValueInterfa
ce::toNative(info.Holder()); | 223 TestSerializedScriptValueInterface* imp = V8TestSerializedScriptValueInterfa
ce::toNative(info.Holder()); |
| 224 V8TRYCATCH_VOID(RefPtr<SerializedScriptValue>, v, SerializedScriptValue::cre
ate(value, info.GetIsolate())); | 224 V8TRYCATCH_VOID(RefPtr<SerializedScriptValue>, v, SerializedScriptValue::cre
ate(value, info.GetIsolate())); |
| 225 ScriptState* currentState = ScriptState::current(); | 225 ScriptState* currentState = ScriptState::current(); |
| 226 if (!currentState) | 226 if (!currentState) |
| 227 return; | 227 return; |
| 228 ScriptState& state = *currentState; | 228 ScriptState& state = *currentState; |
| 229 imp->setCachedValueCallWith(&state, WTF::getPtr(v)); | 229 imp->setCachedValueCallWith(&state, WTF::getPtr(v)); |
| 230 if (state.hadException()) | 230 if (state.hadException()) |
| 231 throwError(state.exception()); | 231 throwError(state.exception(), info.GetIsolate()); |
| 232 info.Holder()->DeleteHiddenValue(v8::String::NewSymbol("cachedValueCallWith"
)); // Invalidate the cached value. | 232 info.Holder()->DeleteHiddenValue(v8::String::NewSymbol("cachedValueCallWith"
)); // Invalidate the cached value. |
| 233 return; | 233 return; |
| 234 } | 234 } |
| 235 | 235 |
| 236 static void cachedValueCallWithAttributeSetterCallback(v8::Local<v8::String> nam
e, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) | 236 static void cachedValueCallWithAttributeSetterCallback(v8::Local<v8::String> nam
e, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) |
| 237 { | 237 { |
| 238 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 238 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
| 239 TestSerializedScriptValueInterfaceV8Internal::cachedValueCallWithAttributeSe
tter(name, value, info); | 239 TestSerializedScriptValueInterfaceV8Internal::cachedValueCallWithAttributeSe
tter(name, value, info); |
| 240 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 240 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
| 241 } | 241 } |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 } | 313 } |
| 314 | 314 |
| 315 void V8TestSerializedScriptValueInterface::derefObject(void* object) | 315 void V8TestSerializedScriptValueInterface::derefObject(void* object) |
| 316 { | 316 { |
| 317 fromInternalPointer(object)->deref(); | 317 fromInternalPointer(object)->deref(); |
| 318 } | 318 } |
| 319 | 319 |
| 320 } // namespace WebCore | 320 } // namespace WebCore |
| 321 | 321 |
| 322 #endif // ENABLE(Condition1) || ENABLE(Condition2) | 322 #endif // ENABLE(Condition1) || ENABLE(Condition2) |
| OLD | NEW |