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

Unified Diff: src/global-handles.cc

Issue 56060: Add just enough state changes from EXTERNAL (outside V8) to OTHER... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 9 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/api.cc ('k') | src/handles.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/global-handles.cc
===================================================================
--- src/global-handles.cc (revision 1641)
+++ src/global-handles.cc (working copy)
@@ -153,7 +153,11 @@
// behavior.
WeakReferenceCallback func = callback();
if (func != NULL) {
- func(v8::Persistent<v8::Object>(ToApi<v8::Object>(handle())), par);
+ v8::Persistent<v8::Object> object = ToApi<v8::Object>(handle());
+ { // Leaving V8.
Mads Ager (chromium) 2009/03/30 13:26:06 This probably does not lint?
+ VMState state(EXTERNAL);
+ func(object, par);
+ }
}
}
« no previous file with comments | « src/api.cc ('k') | src/handles.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698