Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(74)

Unified Diff: src/typing-reset.h

Issue 1288773007: Adding visitors to regurgitate expression types or reset them. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: back to macros Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/ast-expression-visitor.cc ('k') | src/typing-reset.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « src/ast-expression-visitor.cc ('k') | src/typing-reset.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698