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

Unified Diff: src/execution.cc

Issue 8937003: Implement callback when script finishes running in V8 API. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fixed comments. Created 8 years, 12 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/execution.cc
diff --git a/src/execution.cc b/src/execution.cc
index b16e7396ad45e6410ee96066fead715aad75cd3b..628a19825b1a6078f0af22a69290c9ca1ee5d54f 100644
--- a/src/execution.cc
+++ b/src/execution.cc
@@ -107,6 +107,7 @@ static Handle<Object> Invoke(bool is_construct,
// allocation of handles without explicit handle scopes.
SaveContext save(isolate);
NoHandleAllocation na;
+ // Increase call depth and fire callbacks after the call if applicable.
JSEntryFunction stub_entry = FUNCTION_CAST<JSEntryFunction>(code->entry());
// Call the function through the right JS entry stub.

Powered by Google App Engine
This is Rietveld 408576698