| 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_;
|
|
|