From 2dcc3665abf57c3607cebffdeeca062f5894885d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Thu, 1 Aug 2019 08:38:30 +0200 Subject: deps: update V8 to 7.6.303.28 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/28016 Reviewed-By: Colin Ihrig Reviewed-By: Refael Ackermann (רפאל פלחי) Reviewed-By: Rich Trott Reviewed-By: Michael Dawson Reviewed-By: Jiawen Geng --- deps/v8/src/ast/ast-function-literal-id-reindexer.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'deps/v8/src/ast/ast-function-literal-id-reindexer.h') diff --git a/deps/v8/src/ast/ast-function-literal-id-reindexer.h b/deps/v8/src/ast/ast-function-literal-id-reindexer.h index 400196da68..f4dac7b01e 100644 --- a/deps/v8/src/ast/ast-function-literal-id-reindexer.h +++ b/deps/v8/src/ast/ast-function-literal-id-reindexer.h @@ -8,6 +8,10 @@ #include "src/ast/ast-traversal-visitor.h" #include "src/base/macros.h" +#ifdef DEBUG +#include +#endif + namespace v8 { namespace internal { @@ -23,10 +27,22 @@ class AstFunctionLiteralIdReindexer final // AstTraversalVisitor implementation. void VisitFunctionLiteral(FunctionLiteral* lit); + void VisitClassLiteral(ClassLiteral* lit); private: int delta_; +#ifdef DEBUG + // Visited set, only used in DCHECKs for verification. + std::set visited_; + + // Visit all function literals, checking if they have already been visited + // (are in the visited set). + void CheckVisited(Expression* expr); +#else + void CheckVisited(Expression* expr) {} +#endif + DISALLOW_COPY_AND_ASSIGN(AstFunctionLiteralIdReindexer); }; -- cgit v1.2.1