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

Unified Diff: src/handles-inl.h

Issue 3545004: [Isolates] Avoid isolate lookup in HandleScope destructor. (Closed)
Patch Set: Created 10 years, 3 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
« include/v8.h ('K') | « src/api.cc ('k') | src/isolate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/handles-inl.h
diff --git a/src/handles-inl.h b/src/handles-inl.h
index 0088d3a379bef788237c1c6fd74b188e9c3dc97f..6e7c3d972434f16fb7ce410824e22112f1f8649e 100644
--- a/src/handles-inl.h
+++ b/src/handles-inl.h
@@ -127,7 +127,8 @@ void HandleScope::Enter(
void HandleScope::Leave(
const v8::ImplementationUtilities::HandleScopeData* previous) {
- Isolate* isolate = Isolate::Current();
+ Isolate* isolate = previous->isolate;
+ ASSERT(isolate == Isolate::Current());
v8::ImplementationUtilities::HandleScopeData* current =
isolate->handle_scope_data();
if (current->extensions > 0) {
« include/v8.h ('K') | « src/api.cc ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698