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

Unified Diff: src/compiler.h

Issue 10640012: Add a second kind of HandleScope that ties the lifetime of Handles created in its scope to the life… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 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
« src/api.cc ('K') | « src/api.cc ('k') | 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 26c0ac43c1b33d5ea25c942544cd3cbb882a0b86..4b372a79474e228e9c7f1d5b9a0f3803b20e2e05 100644
--- a/src/compiler.h
+++ b/src/compiler.h
@@ -45,6 +45,8 @@ class CompilationInfo BASE_EMBEDDED {
CompilationInfo(Handle<SharedFunctionInfo> shared_info, Zone* zone);
CompilationInfo(Handle<JSFunction> closure, Zone* zone);
+ ~CompilationInfo();
+
Isolate* isolate() {
ASSERT(Isolate::Current() == isolate_);
return isolate_;
@@ -173,6 +175,12 @@ class CompilationInfo BASE_EMBEDDED {
// current compilation pipeline.
void AbortOptimization();
+ void RememberHiddenExtensions(
Erik Corry 2012/06/22 11:08:36 Could be called StorePersistentExtensions.
sanjoy 2012/06/22 20:08:10 Fixed.
+ HandleScopeImplementer::HiddenExtensions* extensions) {
+ ASSERT(!hidden_extensions_);
+ hidden_extensions_ = extensions;
+ }
+
private:
Isolate* isolate_;
@@ -259,6 +267,8 @@ class CompilationInfo BASE_EMBEDDED {
// CompilationInfo allocates.
Zone* zone_;
+ HandleScopeImplementer::HiddenExtensions* hidden_extensions_;
+
DISALLOW_COPY_AND_ASSIGN(CompilationInfo);
};
« src/api.cc ('K') | « src/api.cc ('k') | src/compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698