Changeset 126393 in webkit
- Timestamp:
- Aug 22, 2012 10:59:23 PM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r126392 r126393 1 2012-08-22 Kentaro Hara <haraken@chromium.org> 2 3 [V8] Remove V8Proxy from CodeGeneratorV8.pm 4 https://bugs.webkit.org/show_bug.cgi?id=94773 5 6 Reviewed by Adam Barth. 7 8 To kill V8Proxy, we can remove V8Proxy uses from CodeGeneratorV8.pm. 9 10 No tests. No change in behavior. 11 12 * bindings/scripts/CodeGeneratorV8.pm: 13 (GenerateToV8Converters): 14 * bindings/scripts/test/V8/V8Float64Array.cpp: 15 (WebCore::V8Float64Array::wrapSlow): 16 * bindings/scripts/test/V8/V8TestActiveDOMObject.cpp: 17 (WebCore::V8TestActiveDOMObject::wrapSlow): 18 * bindings/scripts/test/V8/V8TestCustomNamedGetter.cpp: 19 (WebCore::V8TestCustomNamedGetter::wrapSlow): 20 * bindings/scripts/test/V8/V8TestEventConstructor.cpp: 21 (WebCore::V8TestEventConstructor::wrapSlow): 22 * bindings/scripts/test/V8/V8TestEventTarget.cpp: 23 (WebCore::V8TestEventTarget::wrapSlow): 24 * bindings/scripts/test/V8/V8TestException.cpp: 25 (WebCore::V8TestException::wrapSlow): 26 * bindings/scripts/test/V8/V8TestInterface.cpp: 27 (WebCore::V8TestInterface::wrapSlow): 28 * bindings/scripts/test/V8/V8TestMediaQueryListListener.cpp: 29 (WebCore::V8TestMediaQueryListListener::wrapSlow): 30 * bindings/scripts/test/V8/V8TestNamedConstructor.cpp: 31 (WebCore::V8TestNamedConstructor::wrapSlow): 32 * bindings/scripts/test/V8/V8TestNode.cpp: 33 (WebCore::V8TestNode::wrapSlow): 34 * bindings/scripts/test/V8/V8TestObj.cpp: 35 (WebCore::V8TestObj::wrapSlow): 36 * bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.cpp: 37 (WebCore::V8TestSerializedScriptValueInterface::wrapSlow): 38 1 39 2012-08-22 Sukolsak Sakshuwong <sukolsak@google.com> 2 40 -
trunk/Source/WebCore/bindings/scripts/CodeGeneratorV8.pm
r126375 r126393 3353 3353 } 3354 3354 3355 my $proxyInit; 3355 AddToImplIncludes("Frame.h"); 3356 my $frame = "0"; 3356 3357 if (IsNodeSubType($dataNode)) { 3357 AddToImplIncludes("Frame.h");3358 $proxyInit = "impl->document()->frame() ? impl->document()->frame()->script()->proxy() : 0";3359 3358 # DocumentType nodes are the only nodes that may have a NULL document. 3360 3359 if ($interfaceName eq "DocumentType") { 3361 $ proxyInit = "impl->document() ? ($proxyInit) : 0";3362 } 3363 } else {3364 $proxyInit = "0";3360 $frame = "impl->document() ? impl->document()->frame() : 0"; 3361 } else { 3362 $frame = "impl->document()->frame()"; 3363 } 3365 3364 } 3366 3365 push(@implContent, <<END); 3367 V8Proxy* proxy = $proxyInit;3366 Frame* frame = $frame; 3368 3367 END 3369 3368 3370 3369 if (IsSubType($dataNode, "Document")) { 3371 3370 push(@implContent, <<END); 3372 if ( proxy && proxy->windowShell()->context().IsEmpty() && proxy->windowShell()->initContextIfNeeded()) {3371 if (frame && frame->script()->windowShell()->context().IsEmpty() && frame->script()->windowShell()->initContextIfNeeded()) { 3373 3372 // initContextIfNeeded may have created a wrapper for the object, retry from the start. 3374 3373 return ${className}::wrap(impl.get(), isolate); … … 3384 3383 push(@implContent, <<END); 3385 3384 if (impl->frame()) { 3386 proxy = impl->frame()->script()->proxy();3387 proxy->windowShell()->initContextIfNeeded();3385 frame = impl->frame(); 3386 frame->script()->windowShell()->initContextIfNeeded(); 3388 3387 } 3389 3388 END … … 3395 3394 // Enter the node's context and create the wrapper in that context. 3396 3395 v8::Handle<v8::Context> context; 3397 if ( proxy && !proxy->frame()->script()->matchesCurrentContext()) {3396 if (frame && !frame->script()->matchesCurrentContext()) { 3398 3397 // For performance, we enter the context only if the currently running context 3399 3398 // is different from the context that we are about to enter. 3400 context = proxy->frame()->script()->currentWorldContext();3399 context = frame->script()->currentWorldContext(); 3401 3400 if (!context.IsEmpty()) 3402 3401 context->Enter(); … … 3406 3405 3407 3406 push(@implContent, <<END); 3408 wrapper = V8DOMWrapper::instantiateV8Object( proxy ? proxy->frame() : 0, &info, impl.get());3407 wrapper = V8DOMWrapper::instantiateV8Object(frame, &info, impl.get()); 3409 3408 END 3410 3409 if (IsNodeSubType($dataNode) || IsVisibleAcrossOrigins($dataNode)) { -
trunk/Source/WebCore/bindings/scripts/test/V8/V8Float64Array.cpp
r126362 r126393 25 25 #include "ContextFeatures.h" 26 26 #include "ExceptionCode.h" 27 #include "Frame.h" 27 28 #include "RuntimeEnabledFeatures.h" 28 29 #include "V8ArrayBufferView.h" … … 152 153 v8::Handle<v8::Object> wrapper; 153 154 ASSERT(static_cast<void*>(static_cast<ArrayBufferView*>(impl.get())) == static_cast<void*>(impl.get())); 154 V8Proxy* proxy= 0;155 wrapper = V8DOMWrapper::instantiateV8Object( proxy ? proxy->frame() : 0, &info, impl.get());155 Frame* frame = 0; 156 wrapper = V8DOMWrapper::instantiateV8Object(frame, &info, impl.get()); 156 157 if (UNLIKELY(wrapper.IsEmpty())) 157 158 return wrapper; -
trunk/Source/WebCore/bindings/scripts/test/V8/V8TestActiveDOMObject.cpp
r126370 r126393 181 181 { 182 182 v8::Handle<v8::Object> wrapper; 183 V8Proxy* proxy= 0;183 Frame* frame = 0; 184 184 if (impl->frame()) { 185 proxy = impl->frame()->script()->proxy();186 proxy->windowShell()->initContextIfNeeded();185 frame = impl->frame(); 186 frame->script()->windowShell()->initContextIfNeeded(); 187 187 } 188 188 189 189 // Enter the node's context and create the wrapper in that context. 190 190 v8::Handle<v8::Context> context; 191 if ( proxy && !proxy->frame()->script()->matchesCurrentContext()) {191 if (frame && !frame->script()->matchesCurrentContext()) { 192 192 // For performance, we enter the context only if the currently running context 193 193 // is different from the context that we are about to enter. 194 context = proxy->frame()->script()->currentWorldContext();194 context = frame->script()->currentWorldContext(); 195 195 if (!context.IsEmpty()) 196 196 context->Enter(); 197 197 } 198 wrapper = V8DOMWrapper::instantiateV8Object( proxy ? proxy->frame() : 0, &info, impl.get());198 wrapper = V8DOMWrapper::instantiateV8Object(frame, &info, impl.get()); 199 199 // Exit the node's context if it was entered. 200 200 if (!context.IsEmpty()) -
trunk/Source/WebCore/bindings/scripts/test/V8/V8TestCustomNamedGetter.cpp
r126362 r126393 25 25 #include "ContextFeatures.h" 26 26 #include "ExceptionCode.h" 27 #include "Frame.h" 27 28 #include "RuntimeEnabledFeatures.h" 28 29 #include "V8Binding.h" … … 114 115 { 115 116 v8::Handle<v8::Object> wrapper; 116 V8Proxy* proxy= 0;117 wrapper = V8DOMWrapper::instantiateV8Object( proxy ? proxy->frame() : 0, &info, impl.get());117 Frame* frame = 0; 118 wrapper = V8DOMWrapper::instantiateV8Object(frame, &info, impl.get()); 118 119 if (UNLIKELY(wrapper.IsEmpty())) 119 120 return wrapper; -
trunk/Source/WebCore/bindings/scripts/test/V8/V8TestEventConstructor.cpp
r126362 r126393 25 25 #include "ContextFeatures.h" 26 26 #include "Dictionary.h" 27 #include "Frame.h" 27 28 #include "RuntimeEnabledFeatures.h" 28 29 #include "V8Binding.h" … … 151 152 { 152 153 v8::Handle<v8::Object> wrapper; 153 V8Proxy* proxy= 0;154 wrapper = V8DOMWrapper::instantiateV8Object( proxy ? proxy->frame() : 0, &info, impl.get());154 Frame* frame = 0; 155 wrapper = V8DOMWrapper::instantiateV8Object(frame, &info, impl.get()); 155 156 if (UNLIKELY(wrapper.IsEmpty())) 156 157 return wrapper; -
trunk/Source/WebCore/bindings/scripts/test/V8/V8TestEventTarget.cpp
r126362 r126393 25 25 #include "ContextFeatures.h" 26 26 #include "ExceptionCode.h" 27 #include "Frame.h" 27 28 #include "RuntimeEnabledFeatures.h" 28 29 #include "V8Binding.h" … … 175 176 { 176 177 v8::Handle<v8::Object> wrapper; 177 V8Proxy* proxy= 0;178 wrapper = V8DOMWrapper::instantiateV8Object( proxy ? proxy->frame() : 0, &info, impl.get());178 Frame* frame = 0; 179 wrapper = V8DOMWrapper::instantiateV8Object(frame, &info, impl.get()); 179 180 if (UNLIKELY(wrapper.IsEmpty())) 180 181 return wrapper; -
trunk/Source/WebCore/bindings/scripts/test/V8/V8TestException.cpp
r126362 r126393 24 24 #include "BindingState.h" 25 25 #include "ContextFeatures.h" 26 #include "Frame.h" 26 27 #include "RuntimeEnabledFeatures.h" 27 28 #include "V8Binding.h" … … 105 106 { 106 107 v8::Handle<v8::Object> wrapper; 107 V8Proxy* proxy= 0;108 wrapper = V8DOMWrapper::instantiateV8Object( proxy ? proxy->frame() : 0, &info, impl.get());108 Frame* frame = 0; 109 wrapper = V8DOMWrapper::instantiateV8Object(frame, &info, impl.get()); 109 110 if (UNLIKELY(wrapper.IsEmpty())) 110 111 return wrapper; -
trunk/Source/WebCore/bindings/scripts/test/V8/V8TestInterface.cpp
r126362 r126393 27 27 #include "ContextFeatures.h" 28 28 #include "ExceptionCode.h" 29 #include "Frame.h" 29 30 #include "RuntimeEnabledFeatures.h" 30 31 #include "TestSupplemental.h" … … 348 349 { 349 350 v8::Handle<v8::Object> wrapper; 350 V8Proxy* proxy= 0;351 wrapper = V8DOMWrapper::instantiateV8Object( proxy ? proxy->frame() : 0, &info, impl.get());351 Frame* frame = 0; 352 wrapper = V8DOMWrapper::instantiateV8Object(frame, &info, impl.get()); 352 353 if (UNLIKELY(wrapper.IsEmpty())) 353 354 return wrapper; -
trunk/Source/WebCore/bindings/scripts/test/V8/V8TestMediaQueryListListener.cpp
r126362 r126393 25 25 #include "ContextFeatures.h" 26 26 #include "ExceptionCode.h" 27 #include "Frame.h" 27 28 #include "MediaQueryListListener.h" 28 29 #include "RuntimeEnabledFeatures.h" … … 114 115 { 115 116 v8::Handle<v8::Object> wrapper; 116 V8Proxy* proxy= 0;117 wrapper = V8DOMWrapper::instantiateV8Object( proxy ? proxy->frame() : 0, &info, impl.get());117 Frame* frame = 0; 118 wrapper = V8DOMWrapper::instantiateV8Object(frame, &info, impl.get()); 118 119 if (UNLIKELY(wrapper.IsEmpty())) 119 120 return wrapper; -
trunk/Source/WebCore/bindings/scripts/test/V8/V8TestNamedConstructor.cpp
r126362 r126393 159 159 { 160 160 v8::Handle<v8::Object> wrapper; 161 V8Proxy* proxy= 0;162 wrapper = V8DOMWrapper::instantiateV8Object( proxy ? proxy->frame() : 0, &info, impl.get());161 Frame* frame = 0; 162 wrapper = V8DOMWrapper::instantiateV8Object(frame, &info, impl.get()); 163 163 if (UNLIKELY(wrapper.IsEmpty())) 164 164 return wrapper; -
trunk/Source/WebCore/bindings/scripts/test/V8/V8TestNode.cpp
r126370 r126393 115 115 v8::Handle<v8::Object> wrapper; 116 116 ASSERT(static_cast<void*>(static_cast<Node*>(impl.get())) == static_cast<void*>(impl.get())); 117 V8Proxy* proxy = impl->document()->frame() ? impl->document()->frame()->script()->proxy() : 0;117 Frame* frame = impl->document()->frame(); 118 118 119 119 // Enter the node's context and create the wrapper in that context. 120 120 v8::Handle<v8::Context> context; 121 if ( proxy && !proxy->frame()->script()->matchesCurrentContext()) {121 if (frame && !frame->script()->matchesCurrentContext()) { 122 122 // For performance, we enter the context only if the currently running context 123 123 // is different from the context that we are about to enter. 124 context = proxy->frame()->script()->currentWorldContext();124 context = frame->script()->currentWorldContext(); 125 125 if (!context.IsEmpty()) 126 126 context->Enter(); 127 127 } 128 wrapper = V8DOMWrapper::instantiateV8Object( proxy ? proxy->frame() : 0, &info, impl.get());128 wrapper = V8DOMWrapper::instantiateV8Object(frame, &info, impl.get()); 129 129 // Exit the node's context if it was entered. 130 130 if (!context.IsEmpty()) -
trunk/Source/WebCore/bindings/scripts/test/V8/V8TestObj.cpp
r126362 r126393 27 27 #include "Dictionary.h" 28 28 #include "ExceptionCode.h" 29 #include "Frame.h" 29 30 #include "HTMLNames.h" 30 31 #include "IDBBindingUtilities.h" … … 2321 2322 { 2322 2323 v8::Handle<v8::Object> wrapper; 2323 V8Proxy* proxy= 0;2324 wrapper = V8DOMWrapper::instantiateV8Object( proxy ? proxy->frame() : 0, &info, impl.get());2324 Frame* frame = 0; 2325 wrapper = V8DOMWrapper::instantiateV8Object(frame, &info, impl.get()); 2325 2326 if (UNLIKELY(wrapper.IsEmpty())) 2326 2327 return wrapper; -
trunk/Source/WebCore/bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.cpp
r126362 r126393 27 27 #include "ContextFeatures.h" 28 28 #include "ExceptionCode.h" 29 #include "Frame.h" 29 30 #include "MessagePort.h" 30 31 #include "RuntimeEnabledFeatures.h" … … 297 298 { 298 299 v8::Handle<v8::Object> wrapper; 299 V8Proxy* proxy= 0;300 wrapper = V8DOMWrapper::instantiateV8Object( proxy ? proxy->frame() : 0, &info, impl.get());300 Frame* frame = 0; 301 wrapper = V8DOMWrapper::instantiateV8Object(frame, &info, impl.get()); 301 302 if (UNLIKELY(wrapper.IsEmpty())) 302 303 return wrapper;
Note: See TracChangeset
for help on using the changeset viewer.