Changeset 141511 in webkit
- Timestamp:
- Jan 31, 2013 5:21:56 PM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r141509 r141511 1 2013-01-31 Kentaro Hara <haraken@chromium.org> 2 3 [V8] Pass an Isolate to GetTemplate() in CodeGeneratorV8.pm 4 https://bugs.webkit.org/show_bug.cgi?id=108445 5 6 Reviewed by Adam Barth. 7 8 No tests. No change in behavior. 9 10 * bindings/scripts/CodeGeneratorV8.pm: 11 (GenerateDomainSafeFunctionGetter): 12 (GenerateDomainSafeFunctionSetter): 13 (GenerateNormalAttrGetter): 14 (GenerateNamedConstructorCallback): 15 (GenerateImplementation): 16 * bindings/scripts/test/V8/V8Float64Array.cpp: 17 (WebCore::ConfigureV8Float64ArrayTemplate): 18 * bindings/scripts/test/V8/V8TestActiveDOMObject.cpp: 19 (WebCore::TestActiveDOMObjectV8Internal::postMessageAttrGetter): 20 (WebCore::TestActiveDOMObjectV8Internal::TestActiveDOMObjectDomainSafeFunctionSetter): 21 * bindings/scripts/test/V8/V8TestNamedConstructor.cpp: 22 (WebCore::V8TestNamedConstructorConstructor::GetTemplate): 23 * bindings/scripts/test/V8/V8TestNode.cpp: 24 (WebCore::ConfigureV8TestNodeTemplate): 25 1 26 2013-01-31 Kentaro Hara <haraken@chromium.org> 2 27 -
trunk/Source/WebCore/bindings/scripts/CodeGeneratorV8.pm
r141502 r141511 786 786 { 787 787 static v8::Persistent<v8::FunctionTemplate> privateTemplate = v8::Persistent<v8::FunctionTemplate>::New($newTemplateString); 788 v8::Handle<v8::Object> holder = info.This()->FindInstanceInPrototypeChain(${v8InterfaceName}::GetTemplate( ));788 v8::Handle<v8::Object> holder = info.This()->FindInstanceInPrototypeChain(${v8InterfaceName}::GetTemplate(info.GetIsolate())); 789 789 if (holder.IsEmpty()) { 790 790 // can only reach here by 'object.__proto__.func', and it should passed … … 816 816 static void ${interfaceName}DomainSafeFunctionSetter(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info) 817 817 { 818 v8::Handle<v8::Object> holder = info.This()->FindInstanceInPrototypeChain(${v8InterfaceName}::GetTemplate( ));818 v8::Handle<v8::Object> holder = info.This()->FindInstanceInPrototypeChain(${v8InterfaceName}::GetTemplate(info.GetIsolate())); 819 819 if (holder.IsEmpty()) 820 820 return; … … 910 910 # perform lookup first 911 911 push(@implContentDecls, <<END); 912 v8::Handle<v8::Object> holder = info.This()->FindInstanceInPrototypeChain(${v8InterfaceName}::GetTemplate( ));912 v8::Handle<v8::Object> holder = info.This()->FindInstanceInPrototypeChain(${v8InterfaceName}::GetTemplate(info.GetIsolate())); 913 913 if (holder.IsEmpty()) 914 914 return v8Undefined(); … … 2199 2199 instance->SetInternalFieldCount(${v8InterfaceName}::internalFieldCount); 2200 2200 result->SetClassName(v8::String::NewSymbol("${interfaceName}")); 2201 result->Inherit(${v8InterfaceName}::GetTemplate( ));2201 result->Inherit(${v8InterfaceName}::GetTemplate(isolate)); 2202 2202 2203 2203 cachedTemplate = v8::Persistent<v8::FunctionTemplate>::New(result); … … 2649 2649 AddToImplIncludes("V8${parent}.h"); 2650 2650 $parentClass = "V8" . $parent; 2651 $parentClassTemplate = $parentClass . "::GetTemplate( )";2651 $parentClassTemplate = $parentClass . "::GetTemplate(isolate)"; 2652 2652 last; 2653 2653 } -
trunk/Source/WebCore/bindings/scripts/test/V8/V8Float64Array.cpp
r141105 r141511 111 111 112 112 v8::Local<v8::Signature> defaultSignature; 113 defaultSignature = V8DOMConfiguration::configureTemplate(desc, "Float64Array", V8ArrayBufferView::GetTemplate( ), V8Float64Array::internalFieldCount,113 defaultSignature = V8DOMConfiguration::configureTemplate(desc, "Float64Array", V8ArrayBufferView::GetTemplate(isolate), V8Float64Array::internalFieldCount, 114 114 0, 0, 115 115 V8Float64ArrayCallbacks, WTF_ARRAY_LENGTH(V8Float64ArrayCallbacks)); -
trunk/Source/WebCore/bindings/scripts/test/V8/V8TestActiveDOMObject.cpp
r141105 r141511 94 94 { 95 95 static v8::Persistent<v8::FunctionTemplate> privateTemplate = v8::Persistent<v8::FunctionTemplate>::New(v8::FunctionTemplate::New(TestActiveDOMObjectV8Internal::postMessageCallback, v8Undefined(), v8::Signature::New(V8TestActiveDOMObject::GetRawTemplate(info.GetIsolate())))); 96 v8::Handle<v8::Object> holder = info.This()->FindInstanceInPrototypeChain(V8TestActiveDOMObject::GetTemplate( ));96 v8::Handle<v8::Object> holder = info.This()->FindInstanceInPrototypeChain(V8TestActiveDOMObject::GetTemplate(info.GetIsolate())); 97 97 if (holder.IsEmpty()) { 98 98 // can only reach here by 'object.__proto__.func', and it should passed … … 115 115 static void TestActiveDOMObjectDomainSafeFunctionSetter(v8::Local<v8::String> name, v8::Local<v8::Value> value, const v8::AccessorInfo& info) 116 116 { 117 v8::Handle<v8::Object> holder = info.This()->FindInstanceInPrototypeChain(V8TestActiveDOMObject::GetTemplate( ));117 v8::Handle<v8::Object> holder = info.This()->FindInstanceInPrototypeChain(V8TestActiveDOMObject::GetTemplate(info.GetIsolate())); 118 118 if (holder.IsEmpty()) 119 119 return; -
trunk/Source/WebCore/bindings/scripts/test/V8/V8TestNamedConstructor.cpp
r141105 r141511 113 113 instance->SetInternalFieldCount(V8TestNamedConstructor::internalFieldCount); 114 114 result->SetClassName(v8::String::NewSymbol("TestNamedConstructor")); 115 result->Inherit(V8TestNamedConstructor::GetTemplate( ));115 result->Inherit(V8TestNamedConstructor::GetTemplate(isolate)); 116 116 117 117 cachedTemplate = v8::Persistent<v8::FunctionTemplate>::New(result); -
trunk/Source/WebCore/bindings/scripts/test/V8/V8TestNode.cpp
r141105 r141511 85 85 86 86 v8::Local<v8::Signature> defaultSignature; 87 defaultSignature = V8DOMConfiguration::configureTemplate(desc, "TestNode", V8Node::GetTemplate( ), V8TestNode::internalFieldCount,87 defaultSignature = V8DOMConfiguration::configureTemplate(desc, "TestNode", V8Node::GetTemplate(isolate), V8TestNode::internalFieldCount, 88 88 0, 0, 89 89 0, 0);
Note: See TracChangeset
for help on using the changeset viewer.