summaryrefslogtreecommitdiff
path: root/deps/v8/src/typing-reset.h
blob: 3e1969d9ed82c88c59717895404be3b930505354 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright 2015 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef V8_TYPING_RESET_H_
#define V8_TYPING_RESET_H_

#include "src/ast/ast-expression-visitor.h"

namespace v8 {
namespace internal {

// A Visitor over a CompilationInfo's AST that resets
// typing bounds back to their default.

class TypingReseter : public AstExpressionVisitor {
 public:
  TypingReseter(Isolate* isolate, FunctionLiteral* root);

 protected:
  void VisitExpression(Expression* expression) override;
};
}  // namespace internal
}  // namespace v8

#endif  // V8_TYPING_RESET_H_