Commit 94a143fc authored by vivek.vg@samsung.com's avatar vivek.vg@samsung.com

Make XPathFunction map use non-static table of FunctionMapping

The functionMap is already a global static variable. The createFunction has a check
which makes the method createFunction being called only once. Hence there is no need
of this function table to be a static table.

This reduces the bss size on linux by 656 bytes

R=haraken

Review URL: https://codereview.chromium.org/1324133002

git-svn-id: svn://svn.chromium.org/blink/trunk@201638 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 84d721aa
......@@ -707,7 +707,8 @@ struct FunctionMapping {
static void createFunctionMap()
{
static const FunctionMapping functions[] = {
ASSERT(!functionMap);
const FunctionMapping functions[] = {
{ "boolean", { &createFunBoolean, 1 } },
{ "ceiling", { &createFunCeiling, 1 } },
{ "concat", { &createFunConcat, Interval(2, Interval::Inf) } },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment