| Index: src/typing-reset.h
|
| diff --git a/src/typing-reset.h b/src/typing-reset.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..5e7d6282007fb7cfd3b885e6a9f2b7f87a3b0c95
|
| --- /dev/null
|
| +++ b/src/typing-reset.h
|
| @@ -0,0 +1,29 @@
|
| +// 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:
|
| + explicit TypingReseter(CompilationInfo* info);
|
| +
|
| + protected:
|
| + void VisitExpression(Expression* expression) override;
|
| +
|
| + private:
|
| + CompilationInfo* info_;
|
| +};
|
| +}
|
| +} // namespace v8::internal
|
| +
|
| +#endif // V8_TYPING_RESET_H_
|
|
|