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

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

Issue 23450039: Pass isolate to ScriptValue constructor (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
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 1680 matching lines...) Expand 10 before | Expand all | Expand 10 after
1691 static void anyAttributeAttributeGetterCallback(v8::Local<v8::String> name, cons t v8::PropertyCallbackInfo<v8::Value>& info) 1691 static void anyAttributeAttributeGetterCallback(v8::Local<v8::String> name, cons t v8::PropertyCallbackInfo<v8::Value>& info)
1692 { 1692 {
1693 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1693 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1694 TestObjV8Internal::anyAttributeAttributeGetter(name, info); 1694 TestObjV8Internal::anyAttributeAttributeGetter(name, info);
1695 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 1695 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
1696 } 1696 }
1697 1697
1698 static void anyAttributeAttributeSetter(v8::Local<v8::String> name, v8::Local<v8 ::Value> value, const v8::PropertyCallbackInfo<void>& info) 1698 static void anyAttributeAttributeSetter(v8::Local<v8::String> name, v8::Local<v8 ::Value> value, const v8::PropertyCallbackInfo<void>& info)
1699 { 1699 {
1700 TestObj* imp = V8TestObject::toNative(info.Holder()); 1700 TestObj* imp = V8TestObject::toNative(info.Holder());
1701 V8TRYCATCH_VOID(ScriptValue, v, ScriptValue(value)); 1701 V8TRYCATCH_VOID(ScriptValue, v, ScriptValue(value, info.GetIsolate()));
1702 imp->setAnyAttribute(v); 1702 imp->setAnyAttribute(v);
1703 return; 1703 return;
1704 } 1704 }
1705 1705
1706 static void anyAttributeAttributeSetterCallback(v8::Local<v8::String> name, v8:: Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) 1706 static void anyAttributeAttributeSetterCallback(v8::Local<v8::String> name, v8:: Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
1707 { 1707 {
1708 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1708 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1709 TestObjV8Internal::anyAttributeAttributeSetter(name, value, info); 1709 TestObjV8Internal::anyAttributeAttributeSetter(name, value, info);
1710 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 1710 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
1711 } 1711 }
1712 1712
1713 static void callbackFunctionAttributeAttributeGetter(v8::Local<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info) 1713 static void callbackFunctionAttributeAttributeGetter(v8::Local<v8::String> name, const v8::PropertyCallbackInfo<v8::Value>& info)
1714 { 1714 {
1715 TestObj* imp = V8TestObject::toNative(info.Holder()); 1715 TestObj* imp = V8TestObject::toNative(info.Holder());
1716 v8SetReturnValue(info, imp->callbackFunctionAttribute().v8Value()); 1716 v8SetReturnValue(info, imp->callbackFunctionAttribute().v8Value());
1717 return; 1717 return;
1718 } 1718 }
1719 1719
1720 static void callbackFunctionAttributeAttributeGetterCallback(v8::Local<v8::Strin g> name, const v8::PropertyCallbackInfo<v8::Value>& info) 1720 static void callbackFunctionAttributeAttributeGetterCallback(v8::Local<v8::Strin g> name, const v8::PropertyCallbackInfo<v8::Value>& info)
1721 { 1721 {
1722 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter"); 1722 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMGetter");
1723 TestObjV8Internal::callbackFunctionAttributeAttributeGetter(name, info); 1723 TestObjV8Internal::callbackFunctionAttributeAttributeGetter(name, info);
1724 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 1724 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
1725 } 1725 }
1726 1726
1727 static void callbackFunctionAttributeAttributeSetter(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) 1727 static void callbackFunctionAttributeAttributeSetter(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
1728 { 1728 {
1729 TestObj* imp = V8TestObject::toNative(info.Holder()); 1729 TestObj* imp = V8TestObject::toNative(info.Holder());
1730 V8TRYCATCH_VOID(ScriptValue, v, ScriptValue(value)); 1730 V8TRYCATCH_VOID(ScriptValue, v, ScriptValue(value, info.GetIsolate()));
1731 imp->setCallbackFunctionAttribute(v); 1731 imp->setCallbackFunctionAttribute(v);
1732 return; 1732 return;
1733 } 1733 }
1734 1734
1735 static void callbackFunctionAttributeAttributeSetterCallback(v8::Local<v8::Strin g> name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) 1735 static void callbackFunctionAttributeAttributeSetterCallback(v8::Local<v8::Strin g> name, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info)
1736 { 1736 {
1737 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter"); 1737 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMSetter");
1738 TestObjV8Internal::callbackFunctionAttributeAttributeSetter(name, value, inf o); 1738 TestObjV8Internal::callbackFunctionAttributeAttributeSetter(name, value, inf o);
1739 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 1739 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
1740 } 1740 }
(...skipping 2236 matching lines...) Expand 10 before | Expand all | Expand 10 after
3977 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 3977 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
3978 } 3978 }
3979 3979
3980 static void callbackFunctionArgumentMethod(const v8::FunctionCallbackInfo<v8::Va lue>& args) 3980 static void callbackFunctionArgumentMethod(const v8::FunctionCallbackInfo<v8::Va lue>& args)
3981 { 3981 {
3982 if (UNLIKELY(args.Length() < 1)) { 3982 if (UNLIKELY(args.Length() < 1)) {
3983 throwNotEnoughArgumentsError(args.GetIsolate()); 3983 throwNotEnoughArgumentsError(args.GetIsolate());
3984 return; 3984 return;
3985 } 3985 }
3986 TestObj* imp = V8TestObject::toNative(args.Holder()); 3986 TestObj* imp = V8TestObject::toNative(args.Holder());
3987 V8TRYCATCH_VOID(ScriptValue, function, ScriptValue(args[0])); 3987 V8TRYCATCH_VOID(ScriptValue, function, ScriptValue(args[0], args.GetIsolate( )));
3988 imp->callbackFunctionArgument(function); 3988 imp->callbackFunctionArgument(function);
3989 3989
3990 return; 3990 return;
3991 } 3991 }
3992 3992
3993 static void callbackFunctionArgumentMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& args) 3993 static void callbackFunctionArgumentMethodCallback(const v8::FunctionCallbackInf o<v8::Value>& args)
3994 { 3994 {
3995 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod"); 3995 TRACE_EVENT_SET_SAMPLING_STATE("Blink", "DOMMethod");
3996 TestObjV8Internal::callbackFunctionArgumentMethod(args); 3996 TestObjV8Internal::callbackFunctionArgumentMethod(args);
3997 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution"); 3997 TRACE_EVENT_SET_SAMPLING_STATE("V8", "Execution");
(...skipping 1557 matching lines...) Expand 10 before | Expand all | Expand 10 after
5555 V8DOMWrapper::associateObjectWithWrapper<V8TestObject>(impl, &info, wrapper, isolate, WrapperConfiguration::Independent); 5555 V8DOMWrapper::associateObjectWithWrapper<V8TestObject>(impl, &info, wrapper, isolate, WrapperConfiguration::Independent);
5556 return wrapper; 5556 return wrapper;
5557 } 5557 }
5558 5558
5559 void V8TestObject::derefObject(void* object) 5559 void V8TestObject::derefObject(void* object)
5560 { 5560 {
5561 fromInternalPointer(object)->deref(); 5561 fromInternalPointer(object)->deref();
5562 } 5562 }
5563 5563
5564 } // namespace WebCore 5564 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698