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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 static void dirtyScriptValueAttributeGetterCallback(v8::Local<v8::String> name,
const v8::PropertyCallbackInfo<v8::Value>& info) | 168 static void dirtyScriptValueAttributeGetterCallback(v8::Local<v8::String> name,
const v8::PropertyCallbackInfo<v8::Value>& info) |
169 { | 169 { |
170 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); | 170 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); |
171 TestSerializedScriptValueInterfaceV8Internal::dirtyScriptValueAttributeGette
r(name, info); | 171 TestSerializedScriptValueInterfaceV8Internal::dirtyScriptValueAttributeGette
r(name, info); |
172 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 172 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
173 } | 173 } |
174 | 174 |
175 static void dirtyScriptValueAttributeSetter(v8::Local<v8::String> name, v8::Loca
l<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) | 175 static void dirtyScriptValueAttributeSetter(v8::Local<v8::String> name, v8::Loca
l<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) |
176 { | 176 { |
177 TestSerializedScriptValueInterface* imp = V8TestSerializedScriptValueInterfa
ce::toNative(info.Holder()); | 177 TestSerializedScriptValueInterface* imp = V8TestSerializedScriptValueInterfa
ce::toNative(info.Holder()); |
178 V8TRYCATCH_VOID(ScriptValue, v, ScriptValue(value)); | 178 V8TRYCATCH_VOID(ScriptValue, v, ScriptValue(value, info.GetIsolate())); |
179 imp->setDirtyScriptValue(v); | 179 imp->setDirtyScriptValue(v); |
180 info.Holder()->DeleteHiddenValue(v8::String::NewSymbol("dirtyScriptValue"));
// Invalidate the cached value. | 180 info.Holder()->DeleteHiddenValue(v8::String::NewSymbol("dirtyScriptValue"));
// Invalidate the cached value. |
181 return; | 181 return; |
182 } | 182 } |
183 | 183 |
184 static void dirtyScriptValueAttributeSetterCallback(v8::Local<v8::String> name,
v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) | 184 static void dirtyScriptValueAttributeSetterCallback(v8::Local<v8::String> name,
v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) |
185 { | 185 { |
186 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); | 186 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); |
187 TestSerializedScriptValueInterfaceV8Internal::dirtyScriptValueAttributeSette
r(name, value, info); | 187 TestSerializedScriptValueInterfaceV8Internal::dirtyScriptValueAttributeSette
r(name, value, info); |
188 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); | 188 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); |
(...skipping 124 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 |