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

Unified Diff: src/compiler.h

Issue 9221011: Collect AstNode type information (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: refactor to AstVisitor approach Created 8 years, 11 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/compiler.h
diff --git a/src/compiler.h b/src/compiler.h
index 47eaeea3bcbe9231ae1cee1ae97a9085dc5034d8..d54900b6e1702a81fa38901bd6a52102cb41331a 100644
--- a/src/compiler.h
+++ b/src/compiler.h
@@ -1,4 +1,4 @@
-// Copyright 2011 the V8 project authors. All rights reserved.
+// Copyright 2012 the V8 project authors. All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
@@ -59,6 +59,9 @@ class CompilationInfo BASE_EMBEDDED {
}
bool is_in_loop() const { return IsInLoop::decode(flags_); }
FunctionLiteral* function() const { return function_; }
+ AstConstructionVisitor* ast_construction_visitor() {
+ return &ast_construction_visitor_;
+ }
Scope* scope() const { return scope_; }
Scope* global_scope() const { return global_scope_; }
Handle<Code> code() const { return code_; }
@@ -253,6 +256,9 @@ class CompilationInfo BASE_EMBEDDED {
// handle otherwise.
Handle<Context> calling_context_;
+ // AstConstructionVisitor that visits all of function_'s AST nodes.
+ AstConstructionVisitor ast_construction_visitor_;
+
// Compilation mode flag and whether deoptimization is allowed.
Mode mode_;
int osr_ast_id_;

Powered by Google App Engine
This is Rietveld 408576698