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

Unified Diff: vm/dart_entry.cc

Issue 12036098: First set of changes towards cleaning up the bytearray access APIs (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 7 years, 11 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 | « vm/dart_api_state.h ('k') | vm/object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/dart_entry.cc
===================================================================
--- vm/dart_entry.cc (revision 17884)
+++ vm/dart_entry.cc (working copy)
@@ -46,6 +46,7 @@
ASSERT(context.isolate() == Isolate::Current());
const Code& code = Code::Handle(function.CurrentCode());
ASSERT(!code.IsNull());
+ ASSERT(Isolate::Current()->no_callback_scope_depth() == 0);
return entrypoint(code.EntryPoint(),
arguments_descriptor,
arguments,
@@ -82,6 +83,7 @@
ASSERT(context.isolate() == Isolate::Current());
const Code& code = Code::Handle(function.CurrentCode());
ASSERT(!code.IsNull());
+ ASSERT(Isolate::Current()->no_callback_scope_depth() == 0);
return entrypoint(code.EntryPoint(),
arguments_descriptor,
arguments,
@@ -127,6 +129,7 @@
ASSERT(context.isolate() == Isolate::Current());
const Code& code = Code::Handle(function.CurrentCode());
ASSERT(!code.IsNull());
+ ASSERT(Isolate::Current()->no_callback_scope_depth() == 0);
return entrypoint(code.EntryPoint(),
arguments_descriptor,
arguments,
« no previous file with comments | « vm/dart_api_state.h ('k') | vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698