From 8a43a3d7619fde59f0d1f2fad05d8ae7d1732b02 Mon Sep 17 00:00:00 2001 From: Ali Ijaz Sheikh Date: Mon, 30 Nov 2015 21:22:40 -0800 Subject: deps: upgrade V8 to 4.7.80.24 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Pick up the latest branch head for V8 4.7: https://github.com/v8/v8/commit/be169f8df059040e6a53ec1dd4579d8bca2167b5 Full change history for the 4.7 branch: https://chromium.googlesource.com/v8/v8.git/+log/branch-heads/4.7 V8 blog post about what is new on V8 4.7: http://v8project.blogspot.de/2015/10/v8-release-47.html PR-URL: https://github.com/nodejs/node/pull/4106 Reviewed-By: bnoordhuis - Ben Noordhuis Reviewed-By: targos - Michaƫl Zasso Reviewed-By: rvagg - Rod Vagg --- deps/v8/src/compiler/operator.h | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) (limited to 'deps/v8/src/compiler/operator.h') diff --git a/deps/v8/src/compiler/operator.h b/deps/v8/src/compiler/operator.h index 5b15b97289..eba430f927 100644 --- a/deps/v8/src/compiler/operator.h +++ b/deps/v8/src/compiler/operator.h @@ -9,6 +9,7 @@ #include "src/base/flags.h" #include "src/base/functional.h" +#include "src/handles.h" #include "src/zone.h" namespace v8 { @@ -155,7 +156,8 @@ class Operator1 : public Operator { bool Equals(const Operator* other) const final { if (opcode() != other->opcode()) return false; - const Operator1* that = reinterpret_cast*>(other); + const Operator1* that = + reinterpret_cast*>(other); return this->pred_(this->parameter(), that->parameter()); } size_t HashCode() const final { @@ -185,7 +187,8 @@ inline T const& OpParameter(const Operator* op) { } // NOTE: We have to be careful to use the right equal/hash functions below, for -// float/double we always use the ones operating on the bit level. +// float/double we always use the ones operating on the bit level, for Handle<> +// we always use the ones operating on the location level. template <> inline float const& OpParameter(const Operator* op) { return reinterpret_cast, @@ -200,6 +203,27 @@ inline double const& OpParameter(const Operator* op) { ->parameter(); } +template <> +inline Handle const& OpParameter(const Operator* op) { + return reinterpret_cast< + const Operator1, Handle::equal_to, + Handle::hash>*>(op)->parameter(); +} + +template <> +inline Handle const& OpParameter(const Operator* op) { + return reinterpret_cast, Handle::equal_to, Handle::hash>*>(op) + ->parameter(); +} + +template <> +inline Handle const& OpParameter(const Operator* op) { + return reinterpret_cast< + const Operator1, Handle::equal_to, + Handle::hash>*>(op)->parameter(); +} + } // namespace compiler } // namespace internal } // namespace v8 -- cgit v1.2.1