Remove custom bindings form ScriptProfileNode.idl of attribute type Array.
Patch by Vineet Chaudhary <rgf748@motorola.com> on 2012-03-22
Reviewed by Kentaro Hara.
Replace [CustomGetter] Array with sequence<ScriptProfileNode>.
To remove the custom bindings code.
Test: No new tests. LayoutTests/fast/profiler/* test are enough for this.
* bindings/js/JSScriptProfileNodeCustom.cpp: Removed custom function.
(WebCore::JSScriptProfileNode::callUID):
* bindings/v8/custom/V8ScriptProfileNodeCustom.cpp: Removed custom function.
(WebCore):
* inspector/ScriptProfileNode.idl: Replaced Array with sequence<ScriptProfileNode>.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@111692
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2012-03-22 Vineet Chaudhary <rgf748@motorola.com>
+
+ https://bugs.webkit.org/show_bug.cgi?id=81893
+ Remove custom bindings form ScriptProfileNode.idl of attribute type Array.
+
+ Reviewed by Kentaro Hara.
+
+ Replace [CustomGetter] Array with sequence<ScriptProfileNode>.
+ To remove the custom bindings code.
+
+ Test: No new tests. LayoutTests/fast/profiler/* test are enough for this.
+
+ * bindings/js/JSScriptProfileNodeCustom.cpp: Removed custom function.
+ (WebCore::JSScriptProfileNode::callUID):
+ * bindings/v8/custom/V8ScriptProfileNodeCustom.cpp: Removed custom function.
+ (WebCore):
+ * inspector/ScriptProfileNode.idl: Replaced Array with sequence<ScriptProfileNode>.
+
2012-03-22 Andrey Kosyakov <caseq@chromium.org>
Web Inspector: only update timeline overview categories strips when these are visible
#include "JSScriptProfileNode.h"
-#if ENABLE(JAVASCRIPT_DEBUGGER)
-#include <profiler/ProfileNode.h>
-#endif
-
-#include <runtime/JSArray.h>
-
using namespace JSC;
namespace WebCore {
return result;
}
-typedef Vector<RefPtr<ProfileNode> > ProfileNodesList;
-
-JSValue JSScriptProfileNode::children(ExecState* exec) const
-{
- const ProfileNodesList& children = impl()->children();
- MarkedArgumentBuffer list;
-
- ProfileNodesList::const_iterator end = children.end();
- for (ProfileNodesList::const_iterator iter = children.begin(); iter != end; ++iter)
- list.append(toJS(exec, globalObject(), iter->get()));
-
- return constructArray(exec, globalObject(), list);
-}
-
#endif
} // namespace WebCore
namespace WebCore {
-v8::Handle<v8::Value> V8ScriptProfileNode::childrenAccessorGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
-{
- INC_STATS("DOM.ScriptProfileNode.childrenAccessorGetter");
- ScriptProfileNode* imp = V8ScriptProfileNode::toNative(info.Holder());
- const ProfileNodesList& children = imp->children();
- v8::Handle<v8::Array> result = v8::Array::New(children.size());
- int index = 0;
- ProfileNodesList::const_iterator end = children.end();
- for (ProfileNodesList::const_iterator iter = children.begin(); iter != end; ++iter)
- result->Set(v8::Integer::New(index++), toV8(iter->get()));
- return result;
-}
-
v8::Handle<v8::Value> V8ScriptProfileNode::callUIDAccessorGetter(v8::Local<v8::String> name, const v8::AccessorInfo& info)
{
INC_STATS("DOM.ScriptProfileNode.callUIDAccessorGetter");
readonly attribute double totalTime;
readonly attribute double selfTime;
readonly attribute unsigned long numberOfCalls;
- readonly attribute [CustomGetter] Array children;
+ readonly attribute sequence<ScriptProfileNode> children;
readonly attribute boolean visible;
readonly attribute [CustomGetter] unsigned long callUID;
};