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

Unified Diff: Source/bindings/dart/DartJsInterop.cpp

Issue 466243002: Support merged Dart-JS callstacks (Closed) Base URL: svn://svn.chromium.org/blink/branches/dart/dartium
Patch Set: Created 6 years, 4 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: Source/bindings/dart/DartJsInterop.cpp
diff --git a/Source/bindings/dart/DartJsInterop.cpp b/Source/bindings/dart/DartJsInterop.cpp
index 36881d2a1263b6c774227134cec32a619cede11b..335d162b0548fbe48e8aee4aaed7865e8d25de64 100644
--- a/Source/bindings/dart/DartJsInterop.cpp
+++ b/Source/bindings/dart/DartJsInterop.cpp
@@ -77,6 +77,9 @@ static void functionInvocationCallback(const v8::FunctionCallbackInfo<v8::Value>
DartScopes scopes(args.Holder());
Dart_Handle handle = scopes.handle;
DartDOMData* domData = DartDOMData::current();
+ // We need to call V8Scope to properly track the stack depth and timestamp
+ // for the transition between V8 and Dart.
+ V8Scope v8scope(domData);
ASSERT(domData);
ASSERT(DartUtilities::isFunction(domData, handle));

Powered by Google App Engine
This is Rietveld 408576698