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

Unified Diff: src/ast-numbering.h

Issue 636403003: Assign bailout and type feedback IDs in a post-pass (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 2 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
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_

Powered by Google App Engine
This is Rietveld 408576698