1 // Copyright 2015 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef V8_TYPING_RESET_H_
6 #define V8_TYPING_RESET_H_
8 #include "src/ast-expression-visitor.h"
13 // A Visitor over a CompilationInfo's AST that resets
14 // typing bounds back to their default.
16 class TypingReseter : public AstExpressionVisitor {
18 TypingReseter(Isolate* isolate, Zone* zone, FunctionLiteral* root);
21 void VisitExpression(Expression* expression) override;
23 } // namespace internal
26 #endif // V8_TYPING_RESET_H_