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

Unified Diff: src/compilation-info.h

Issue 2687973003: Revert of [Compiler] Enable handles created during parsing and scope analysis to be deferred. (Closed)
Patch Set: Created 3 years, 10 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 | « src/api.cc ('k') | src/compilation-info.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compilation-info.h
diff --git a/src/compilation-info.h b/src/compilation-info.h
index 2ec77ab09ec78c01244b966c014f979f673c97fa..46fb3cb9ace02be2c32141fa3175955b5b5aa857 100644
--- a/src/compilation-info.h
+++ b/src/compilation-info.h
@@ -232,10 +232,9 @@
// Determines whether or not to insert a self-optimization header.
bool ShouldSelfOptimize();
- void set_deferred_handles(std::shared_ptr<DeferredHandles> deferred_handles);
- void set_deferred_handles(DeferredHandles* deferred_handles);
- std::shared_ptr<DeferredHandles> deferred_handles() {
- return deferred_handles_;
+ void set_deferred_handles(DeferredHandles* deferred_handles) {
+ DCHECK(deferred_handles_ == NULL);
+ deferred_handles_ = deferred_handles;
}
void ReopenHandlesInNewHandleScope();
@@ -365,7 +364,7 @@
// CompilationInfo allocates.
Zone* zone_;
- std::shared_ptr<DeferredHandles> deferred_handles_;
+ DeferredHandles* deferred_handles_;
// Dependencies for this compilation, e.g. stable maps.
CompilationDependencies dependencies_;
« no previous file with comments | « src/api.cc ('k') | src/compilation-info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698