29d793728a
We're moving away from using CompilationInfo as a big bag o' stuff. Passing in just what we need to several AstVisitors to avoid increasing the problem. BUG=None TEST=trybots R=titzer@chromium.org LOG=N Review URL: https://codereview.chromium.org/1318823010 Cr-Commit-Position: refs/heads/master@{#30529}
27 lines
662 B
C++
27 lines
662 B
C++
// 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-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, Zone* zone, FunctionLiteral* root);
|
|
|
|
protected:
|
|
void VisitExpression(Expression* expression) override;
|
|
};
|
|
}
|
|
} // namespace v8::internal
|
|
|
|
#endif // V8_TYPING_RESET_H_
|