Web Inspector: optional arguments support for the frontend needs to be extended.
authorloislo@chromium.org <loislo@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 28 Sep 2011 16:57:17 +0000 (16:57 +0000)
committerloislo@chromium.org <loislo@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 28 Sep 2011 16:57:17 +0000 (16:57 +0000)
commit9a11a4c6e169175cdddda5e95b47bebe0953b372
tree018ede947c38f983fd78a47fd36c7a13676bce1c
parenteb4b8bca80405b985067525d36eff3745ab2a460
Web Inspector: optional arguments support for the frontend needs to be extended.
https://bugs.webkit.org/show_bug.cgi?id=69005

Generator supports optional arguments but they are transferred by value.
It is not suitable if the used type doesn't have operator bool.
I'll transfer such arguments by pointer.

Reviewed by Pavel Feldman.

Build is the test.

* inspector/CodeGeneratorInspector.pm:
(generateFrontendFunction):
(paramTypeTraits):
* inspector/InspectorDebuggerAgent.cpp:
(WebCore::InspectorDebuggerAgent::didParseSource):
* inspector/InspectorResourceAgent.cpp:
(WebCore::InspectorResourceAgent::didFailLoading):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@96227 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/inspector/CodeGeneratorInspector.pm
Source/WebCore/inspector/InspectorDebuggerAgent.cpp
Source/WebCore/inspector/InspectorResourceAgent.cpp