2015-08-24 17:16:38 +00:00
|
|
|
// 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_
|
|
|
|
|
2015-11-26 16:22:34 +00:00
|
|
|
#include "src/ast/ast-expression-visitor.h"
|
2015-08-24 17:16:38 +00:00
|
|
|
|
|
|
|
namespace v8 {
|
|
|
|
namespace internal {
|
|
|
|
|
|
|
|
// A Visitor over a CompilationInfo's AST that resets
|
|
|
|
// typing bounds back to their default.
|
|
|
|
|
|
|
|
class TypingReseter : public AstExpressionVisitor {
|
|
|
|
public:
|
2015-10-15 10:34:10 +00:00
|
|
|
TypingReseter(Isolate* isolate, FunctionLiteral* root);
|
2015-08-24 17:16:38 +00:00
|
|
|
|
|
|
|
protected:
|
|
|
|
void VisitExpression(Expression* expression) override;
|
|
|
|
};
|
2015-09-30 13:46:56 +00:00
|
|
|
} // namespace internal
|
|
|
|
} // namespace v8
|
2015-08-24 17:16:38 +00:00
|
|
|
|
|
|
|
#endif // V8_TYPING_RESET_H_
|