Index: src/ast-numbering.h |
diff --git a/src/ast-numbering.h b/src/ast-numbering.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..1b37e8c79b6229cd07b876e9ac85764599f3b170 |
--- /dev/null |
+++ b/src/ast-numbering.h |
@@ -0,0 +1,25 @@ |
+// Copyright 2014 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_AST_NUMBERING_H_ |
+#define V8_AST_NUMBERING_H_ |
+ |
+namespace v8 { |
+namespace internal { |
+ |
+class CompilationInfo; |
+ |
+class AstNumbering { |
+ public: |
+ // Assign type feedback IDs, bailout IDs, and other state to an AST node |
+ // tree. |
+ // |
+ // Mutates the AST, so the AST should not continue to be used in the case of |
+ // failure. |
+ static bool Renumber(CompilationInfo* info); |
+}; |
+} |
+} // namespace v8::internal |
+ |
+#endif // V8_AST_NUMBERING_H_ |