diff options
author | Ali Ijaz Sheikh <ofrobots@google.com> | 2015-08-23 06:09:40 -0700 |
---|---|---|
committer | Rod Vagg <rod@vagg.org> | 2015-09-06 21:38:01 +1000 |
commit | 9fddd83cf9adf505bce2e2373881df0c4d41b261 (patch) | |
tree | 4272ce14c10fea496af2e78fc6debb187d613451 /deps/v8/src/third_party | |
parent | 46b7d151674d138e7ea4342d5f3ada1208b87ff2 (diff) | |
download | node-new-9fddd83cf9adf505bce2e2373881df0c4d41b261.tar.gz |
deps: upgrade V8 to 4.5.103.24
Upgrade to the latest branch-head for V8 4.5. For the full commit log see
https://github.com/v8/v8-git-mirror/commits/4.5.103.24
PR-URL: https://github.com/nodejs/node/pull/2509
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Diffstat (limited to 'deps/v8/src/third_party')
-rw-r--r-- | deps/v8/src/third_party/fdlibm/fdlibm.cc | 4 | ||||
-rw-r--r-- | deps/v8/src/third_party/fdlibm/fdlibm.js | 43 | ||||
-rw-r--r-- | deps/v8/src/third_party/kernel/tools/perf/util/jitdump.h | 83 | ||||
-rw-r--r-- | deps/v8/src/third_party/valgrind/LICENSE | 54 | ||||
-rw-r--r-- | deps/v8/src/third_party/vtune/LICENSE | 59 |
5 files changed, 142 insertions, 101 deletions
diff --git a/deps/v8/src/third_party/fdlibm/fdlibm.cc b/deps/v8/src/third_party/fdlibm/fdlibm.cc index b8bc243f4d..ea3efd35be 100644 --- a/deps/v8/src/third_party/fdlibm/fdlibm.cc +++ b/deps/v8/src/third_party/fdlibm/fdlibm.cc @@ -290,5 +290,5 @@ int rempio2(double x, double* y) { } return n; } -} -} // namespace v8::internal +} // namespace internal +} // namespace v8 diff --git a/deps/v8/src/third_party/fdlibm/fdlibm.js b/deps/v8/src/third_party/fdlibm/fdlibm.js index 82f50cc514..a8935565b7 100644 --- a/deps/v8/src/third_party/fdlibm/fdlibm.js +++ b/deps/v8/src/third_party/fdlibm/fdlibm.js @@ -26,15 +26,26 @@ var kMath; var rempio2result; -(function(global, shared, exports) { +(function(global, utils) { "use strict"; %CheckIsBootstrapping(); +// ------------------------------------------------------------------- +// Imports + var GlobalMath = global.Math; -//------------------------------------------------------------------- +var MathAbs; +var MathExp; + +utils.Import(function(from) { + MathAbs = from.MathAbs; + MathExp = from.MathExp; +}); + +// ------------------------------------------------------------------- define INVPIO2 = kMath[0]; define PIO2_1 = kMath[1]; @@ -87,7 +98,7 @@ macro REMPIO2(X) } } else if (ix <= 0x413921fb) { // |X| ~<= 2^19*(pi/2), medium size - var t = $abs(X); + var t = MathAbs(X); n = (t * INVPIO2 + 0.5) | 0; var r = t - n * PIO2_1; var w = n * PIO2_1T; @@ -269,7 +280,7 @@ function KernelTan(x, y, returnTan) { if (ix < 0x3e300000) { // |x| < 2^-28 if (((ix | %_DoubleLo(x)) | (returnTan + 1)) == 0) { // x == 0 && returnTan = -1 - return 1 / $abs(x); + return 1 / MathAbs(x); } else { if (returnTan == 1) { return x; @@ -757,7 +768,7 @@ function MathSinh(x) { x = x * 1; // Convert to number. var h = (x < 0) ? -0.5 : 0.5; // |x| in [0, 22]. return sign(x)*0.5*(E+E/(E+1)) - var ax = $abs(x); + var ax = MathAbs(x); if (ax < 22) { // For |x| < 2^-28, sinh(x) = x if (ax < TWO_M28) return x; @@ -766,11 +777,11 @@ function MathSinh(x) { return h * (t + t / (t + 1)); } // |x| in [22, log(maxdouble)], return 0.5 * exp(|x|) - if (ax < LOG_MAXD) return h * $exp(ax); + if (ax < LOG_MAXD) return h * MathExp(ax); // |x| in [log(maxdouble), overflowthreshold] // overflowthreshold = 710.4758600739426 if (ax <= KSINH_OVERFLOW) { - var w = $exp(0.5 * ax); + var w = MathExp(0.5 * ax); var t = h * w; return t * w; } @@ -808,7 +819,7 @@ function MathCosh(x) { var ix = %_DoubleHi(x) & 0x7fffffff; // |x| in [0,0.5*log2], return 1+expm1(|x|)^2/(2*exp(|x|)) if (ix < 0x3fd62e43) { - var t = MathExpm1($abs(x)); + var t = MathExpm1(MathAbs(x)); var w = 1 + t; // For |x| < 2^-55, cosh(x) = 1 if (ix < 0x3c800000) return w; @@ -816,14 +827,14 @@ function MathCosh(x) { } // |x| in [0.5*log2, 22], return (exp(|x|)+1/exp(|x|)/2 if (ix < 0x40360000) { - var t = $exp($abs(x)); + var t = MathExp(MathAbs(x)); return 0.5 * t + 0.5 / t; } // |x| in [22, log(maxdouble)], return half*exp(|x|) - if (ix < 0x40862e42) return 0.5 * $exp($abs(x)); + if (ix < 0x40862e42) return 0.5 * MathExp(MathAbs(x)); // |x| in [log(maxdouble), overflowthreshold] - if ($abs(x) <= KCOSH_OVERFLOW) { - var w = $exp(0.5 * $abs(x)); + if (MathAbs(x) <= KCOSH_OVERFLOW) { + var w = MathExp(0.5 * MathAbs(x)); var t = 0.5 * w; return t * w; } @@ -926,7 +937,7 @@ define TWO53 = 9007199254740992; function MathLog2(x) { x = x * 1; // Convert to number. - var ax = $abs(x); + var ax = MathAbs(x); var hx = %_DoubleHi(x); var lx = %_DoubleLo(x); var ix = hx & 0x7fffffff; @@ -1012,7 +1023,7 @@ function MathLog2(x) { //------------------------------------------------------------------- -$installFunctions(GlobalMath, DONT_ENUM, [ +utils.InstallFunctions(GlobalMath, DONT_ENUM, [ "cos", MathCos, "sin", MathSin, "tan", MathTan, @@ -1024,7 +1035,7 @@ $installFunctions(GlobalMath, DONT_ENUM, [ "expm1", MathExpm1 ]); -%SetInlineBuiltinFlag(MathSin); -%SetInlineBuiltinFlag(MathCos); +%SetForceInlineFlag(MathSin); +%SetForceInlineFlag(MathCos); }) diff --git a/deps/v8/src/third_party/kernel/tools/perf/util/jitdump.h b/deps/v8/src/third_party/kernel/tools/perf/util/jitdump.h deleted file mode 100644 index 85d51b79af..0000000000 --- a/deps/v8/src/third_party/kernel/tools/perf/util/jitdump.h +++ /dev/null @@ -1,83 +0,0 @@ -#ifndef JITDUMP_H -#define JITDUMP_H - -#include <sys/time.h> -#include <time.h> -#include <stdint.h> - -/* JiTD */ -#define JITHEADER_MAGIC 0x4A695444 -#define JITHEADER_MAGIC_SW 0x4454694A - -#define PADDING_8ALIGNED(x) ((((x) + 7) & 7) ^ 7) - -#define JITHEADER_VERSION 1 - -struct jitheader { - uint32_t magic; /* characters "jItD" */ - uint32_t version; /* header version */ - uint32_t total_size; /* total size of header */ - uint32_t elf_mach; /* elf mach target */ - uint32_t pad1; /* reserved */ - uint32_t pid; /* JIT process id */ - uint64_t timestamp; /* timestamp */ -}; - -enum jit_record_type { - JIT_CODE_LOAD = 0, - JIT_CODE_MOVE = 1, - JIT_CODE_DEBUG_INFO = 2, - JIT_CODE_CLOSE = 3, - JIT_CODE_MAX -}; - -/* record prefix (mandatory in each record) */ -struct jr_prefix { - uint32_t id; - uint32_t total_size; - uint64_t timestamp; -}; - -struct jr_code_load { - struct jr_prefix p; - - uint32_t pid; - uint32_t tid; - uint64_t vma; - uint64_t code_addr; - uint64_t code_size; - uint64_t code_index; -}; - -struct jr_code_close { - struct jr_prefix p; -}; - -struct jr_code_move { - struct jr_prefix p; - - uint32_t pid; - uint32_t tid; - uint64_t vma; - uint64_t old_code_addr; - uint64_t new_code_addr; - uint64_t code_size; - uint64_t code_index; -}; - -struct jr_code_debug_info { - struct jr_prefix p; - - uint64_t code_addr; - uint64_t nr_entry; -}; - -union jr_entry { - struct jr_code_debug_info info; - struct jr_code_close close; - struct jr_code_load load; - struct jr_code_move move; - struct jr_prefix prefix; -}; - -#endif /* !JITDUMP_H */ diff --git a/deps/v8/src/third_party/valgrind/LICENSE b/deps/v8/src/third_party/valgrind/LICENSE new file mode 100644 index 0000000000..0be0037ca2 --- /dev/null +++ b/deps/v8/src/third_party/valgrind/LICENSE @@ -0,0 +1,54 @@ +---------------------------------------------------------------- + +Notice that the following BSD-style license applies to this one +file (valgrind.h) only. The rest of Valgrind is licensed under the +terms of the GNU General Public License, version 2, unless +otherwise indicated. See the COPYING file in the source +distribution for details. + +---------------------------------------------------------------- + +This file is part of Valgrind, a dynamic binary instrumentation +framework. + +Copyright (C) 2000-2010 Julian Seward. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: + +1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + +2. The origin of this software must not be misrepresented; you must + not claim that you wrote the original software. If you use this + software in a product, an acknowledgment in the product + documentation would be appreciated but is not required. + +3. Altered source versions must be plainly marked as such, and must + not be misrepresented as being the original software. + +4. The name of the author may not be used to endorse or promote + products derived from this software without specific prior written + permission. + +THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS +OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY +DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE +GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +---------------------------------------------------------------- + +Notice that the above BSD-style license applies to this one file +(valgrind.h) only. The entire rest of Valgrind is licensed under +the terms of the GNU General Public License, version 2. See the +COPYING file in the source distribution for details. + +---------------------------------------------------------------- diff --git a/deps/v8/src/third_party/vtune/LICENSE b/deps/v8/src/third_party/vtune/LICENSE new file mode 100644 index 0000000000..bd00b4c87d --- /dev/null +++ b/deps/v8/src/third_party/vtune/LICENSE @@ -0,0 +1,59 @@ +All files in this directory are provided by the following license if not stated +otherwise in the individual file: +==================== +This file is provided under a dual BSD/GPLv2 license. When using or +redistributing this file, you may do so under either license. + +GPL LICENSE SUMMARY + +Copyright (c) 2005-2012 Intel Corporation. All rights reserved. + +This program is free software; you can redistribute it and/or modify +it under the terms of version 2 of the GNU General Public License as +published by the Free Software Foundation. + +This program is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. +The full GNU General Public License is included in this distribution +in the file called LICENSE.GPL. + +Contact Information: +http://software.intel.com/en-us/articles/intel-vtune-amplifier-xe/ + +BSD LICENSE + +Copyright (c) 2005-2012 Intel Corporation. All rights reserved. +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in + the documentation and/or other materials provided with the + distribution. + * Neither the name of Intel Corporation nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +==================== |