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

Unified Diff: src/handles.cc

Issue 10698031: Revert the change adding CompilationHandleScope. (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
« no previous file with comments | « src/handles.h ('k') | src/hydrogen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/handles.cc
diff --git a/src/handles.cc b/src/handles.cc
index 1962e2f651b1a11cf11f5cf4fb187aabaddfa612..def1604ac7438c5769a0cb6287fd009dee54758d 100644
--- a/src/handles.cc
+++ b/src/handles.cc
@@ -958,45 +958,4 @@ int Utf8Length(Handle<String> str) {
return len;
}
-
-DeferredHandleScope::DeferredHandleScope(Isolate* isolate)
- : impl_(isolate->handle_scope_implementer()) {
- impl_->BeginDeferredScope();
- Object** new_next = impl_->GetSpareOrNewBlock();
- Object** new_limit = &new_next[kHandleBlockSize];
- impl_->blocks()->Add(new_next);
-
- v8::ImplementationUtilities::HandleScopeData* data =
- impl_->isolate()->handle_scope_data();
-#ifdef DEBUG
- prev_level_ = data->level;
-#endif
- data->level++;
- prev_limit_ = data->limit;
- prev_next_ = data->next;
- data->next = new_next;
- data->limit = new_limit;
-}
-
-
-DeferredHandleScope::~DeferredHandleScope() {
- impl_->isolate()->handle_scope_data()->level--;
- ASSERT(handles_detached_);
- ASSERT(impl_->isolate()->handle_scope_data()->level == prev_level_);
-}
-
-
-DeferredHandles* DeferredHandleScope::Detach() {
- DeferredHandles* deferred = impl_->Detach(prev_limit_);
- v8::ImplementationUtilities::HandleScopeData* data =
- impl_->isolate()->handle_scope_data();
- data->next = prev_next_;
- data->limit = prev_limit_;
-#ifdef DEBUG
- handles_detached_ = true;
-#endif
- return deferred;
-}
-
-
} } // namespace v8::internal
« no previous file with comments | « src/handles.h ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698