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

Unified Diff: src/compiler.h

Issue 334173003: Reuse AstValueFactory when optimizing. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 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
« no previous file with comments | « no previous file | src/compiler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler.h
diff --git a/src/compiler.h b/src/compiler.h
index 9d91b21bd3d4851b9141ebbd0b145a23087a82ac..fdb79005085ed89dd97b2d0369cf52ba5eca8b67 100644
--- a/src/compiler.h
+++ b/src/compiler.h
@@ -323,8 +323,10 @@ class CompilationInfo {
int optimization_id() const { return optimization_id_; }
AstValueFactory* ast_value_factory() const { return ast_value_factory_; }
- void SetAstValueFactory(AstValueFactory* ast_value_factory) {
+ void SetAstValueFactory(AstValueFactory* ast_value_factory,
+ bool owned = true) {
ast_value_factory_ = ast_value_factory;
+ ast_value_factory_owned_ = owned;
}
protected:
@@ -471,6 +473,7 @@ class CompilationInfo {
int optimization_id_;
AstValueFactory* ast_value_factory_;
+ bool ast_value_factory_owned_;
DISALLOW_COPY_AND_ASSIGN(CompilationInfo);
};
« no previous file with comments | « no previous file | src/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698