Bug 898750 - Attach Array.build only if ENABLE_PARALLEL_JS. (r=shell bustage)
authorShu-yu Guo <shu@rfrn.org>
Sat, 27 Jul 2013 21:39:02 +0200
changeset 140266 823c58cdd7230bb3e979193526ed1f0477a0ee0f
parent 140265 7a41eacda2cbdb26c4df1611f6851e3ec3a175cb
child 140267 73b69c146ca6926b4a72bb484550e5afe04b93cc
push id1951
push userryanvm@gmail.com
push dateSun, 28 Jul 2013 01:55:51 +0000
treeherderfx-team@73b69c146ca6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersshell
bugs898750
milestone25.0a1
Bug 898750 - Attach Array.build only if ENABLE_PARALLEL_JS. (r=shell bustage)
js/src/jsarray.cpp
--- a/js/src/jsarray.cpp
+++ b/js/src/jsarray.cpp
@@ -2830,20 +2830,20 @@ static const JSFunctionSpec array_static
          {"lastIndexOf",        {NULL, NULL},       2,0, "ArrayStaticLastIndexOf"},
          {"indexOf",            {NULL, NULL},       2,0, "ArrayStaticIndexOf"},
          {"forEach",            {NULL, NULL},       2,0, "ArrayStaticForEach"},
          {"map",                {NULL, NULL},       2,0, "ArrayStaticMap"},
          {"every",              {NULL, NULL},       2,0, "ArrayStaticEvery"},
          {"some",               {NULL, NULL},       2,0, "ArrayStaticSome"},
          {"reduce",             {NULL, NULL},       2,0, "ArrayStaticReduce"},
          {"reduceRight",        {NULL, NULL},       2,0, "ArrayStaticReduceRight"},
-         {"build",              {NULL, NULL},       2,0, "ArrayStaticBuild"},
     JS_FN("of",                 array_of,           0,0),
 
 #ifdef ENABLE_PARALLEL_JS
+         {"build",              {NULL, NULL},       2,0, "ArrayStaticBuild"},
     /* Parallelizable and pure static methods. */
          {"buildPar",           {NULL, NULL},       3,0, "ArrayStaticBuildPar"},
 #endif
 
     JS_FS_END
 };
 
 /* ES5 15.4.2 */