blob: 3e1969d9ed82c88c59717895404be3b930505354 [file] [log] [blame]
Ben Murdoch4a90d5f2016-03-22 12:00:34 +00001// 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.
4
5#ifndef V8_TYPING_RESET_H_
6#define V8_TYPING_RESET_H_
7
8#include "src/ast/ast-expression-visitor.h"
9
10namespace v8 {
11namespace internal {
12
13// A Visitor over a CompilationInfo's AST that resets
14// typing bounds back to their default.
15
16class TypingReseter : public AstExpressionVisitor {
17 public:
18 TypingReseter(Isolate* isolate, FunctionLiteral* root);
19
20 protected:
21 void VisitExpression(Expression* expression) override;
22};
23} // namespace internal
24} // namespace v8
25
26#endif // V8_TYPING_RESET_H_