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

Unified Diff: src/compilation-info.h

Issue 2650883002: Reland: [Compiler] Enable handles created during parsing and scope analysis to be deferred. (Closed)
Patch Set: Remove unused variable 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 46fb3cb9ace02be2c32141fa3175955b5b5aa857..2ec77ab09ec78c01244b966c014f979f673c97fa 100644
--- a/src/compilation-info.h
+++ b/src/compilation-info.h
@@ -232,9 +232,10 @@ class V8_EXPORT_PRIVATE CompilationInfo final {
// Determines whether or not to insert a self-optimization header.
bool ShouldSelfOptimize();
- void set_deferred_handles(DeferredHandles* deferred_handles) {
- DCHECK(deferred_handles_ == NULL);
- deferred_handles_ = deferred_handles;
+ 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 ReopenHandlesInNewHandleScope();
@@ -364,7 +365,7 @@ class V8_EXPORT_PRIVATE CompilationInfo final {
// CompilationInfo allocates.
Zone* zone_;
- DeferredHandles* deferred_handles_;
+ std::shared_ptr<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