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

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: Address feedback 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..1df714498e36e464dbc08fb7d2c493cbab5dbc20
--- /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 {
Sven Panne 2014/10/15 07:41:56 This is not really a class, using a namespace migh
wingo 2014/10/15 13:53:19 Done.
+ public:
+ // Assign type feedback IDs, bailout IDs, and other state to an AST node
Sven Panne 2014/10/15 07:41:56 Remove the "and other state" part for now.
+ // tree.
+ //
+ // Mutates the AST, so the AST should not continue to be used in the case of
+ // failure.
Sven Panne 2014/10/15 07:41:56 Actually, this is not true: We just failed to set
+ static bool Renumber(FunctionLiteral* function, Zone* zone);
+};
+}
+} // namespace v8::internal
+
+#endif // V8_AST_NUMBERING_H_

Powered by Google App Engine
This is Rietveld 408576698