Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: Source/bindings/tests/results/V8TestSerializedScriptValueInterface.cpp

Issue 24118003: Pass isolate to v8::Undefined() function (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/bindings/tests/results/V8TestObject.cpp ('k') | Source/bindings/v8/ExceptionState.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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)
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/V8TestObject.cpp ('k') | Source/bindings/v8/ExceptionState.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698