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

Unified Diff: src/handles-inl.h

Issue 10807024: Optimize functions on a second thread. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 5 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
Index: src/handles-inl.h
diff --git a/src/handles-inl.h b/src/handles-inl.h
index a5c81cec56f1d0056be0d1066683fc27432a4362..3665a3ed1c6573f6e51982ccb3d3d69e2639a629 100644
--- a/src/handles-inl.h
+++ b/src/handles-inl.h
@@ -149,8 +149,11 @@ T** HandleScope::CreateHandle(T* value, Isolate* isolate) {
#ifdef DEBUG
inline NoHandleAllocation::NoHandleAllocation() {
+ Isolate* isolate = Isolate::Current();
v8::ImplementationUtilities::HandleScopeData* current =
- Isolate::Current()->handle_scope_data();
+ isolate->handle_scope_data();
+
+ ASSERT(!isolate->optimizing_compiler_thread()->IsOptimizerThread());
// Shrink the current handle scope to make it impossible to do
// handle allocations without an explicit handle scope.

Powered by Google App Engine
This is Rietveld 408576698