Revision: 16987
Author: [email protected]
Date: Fri Sep 27 11:31:06 2013 UTC
Log: Only zapped used handles if a handle scope fits entirely within
one handle block
This should avoid zapping the same unused handles over and over again
when using many small nested handle scopes.
BUG=none
[email protected], [email protected]
Review URL: https://codereview.chromium.org/24359003
http://code.google.com/p/v8/source/detail?r=16987
Modified:
/branches/bleeding_edge/src/handles-inl.h
=======================================
--- /branches/bleeding_edge/src/handles-inl.h Wed Sep 11 15:12:27 2013 UTC
+++ /branches/bleeding_edge/src/handles-inl.h Fri Sep 27 11:31:06 2013 UTC
@@ -130,16 +130,17 @@
v8::ImplementationUtilities::HandleScopeData* current =
isolate->handle_scope_data();
- current->next = prev_next;
+ std::swap(current->next, prev_next);
current->level--;
if (current->limit != prev_limit) {
current->limit = prev_limit;
DeleteExtensions(isolate);
- }
-
#ifdef ENABLE_EXTRA_CHECKS
- ZapRange(prev_next, prev_limit);
+ ZapRange(current->next, prev_limit);
+ } else {
+ ZapRange(current->next, prev_next);
#endif
+ }
}
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.