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

Unified Diff: tools/dom/scripts/systemnative.py

Issue 24376005: - Added Dart_GetNativeIsolateData so that the bindings code can access the IsolateCurrentData (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 3 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 | « runtime/vm/zone.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/scripts/systemnative.py
===================================================================
--- tools/dom/scripts/systemnative.py (revision 27780)
+++ tools/dom/scripts/systemnative.py (working copy)
@@ -416,18 +416,21 @@
' {\n'
' if (!value)\n'
' return Dart_Null();\n'
- ' Dart_WeakPersistentHandle result = '
- ' DartDOMWrapper::lookupWrapper(isNode, value);\n'
+ ' DartDOMData* domData = DartDOMData::current();\n'
+ ' Dart_WeakPersistentHandle result =\n'
+ ' DartDOMWrapper::lookupWrapper(domData, isNode, value);\n'
' if (result)\n'
' return Dart_HandleFromWeakPersistent(result);\n'
' return createWrapper(value);\n'
' }\n'
- ' static void returnToDart(Dart_NativeArguments args,'
+ ' static void returnToDart(Dart_NativeArguments args,\n'
' NativeType* value)\n'
' {\n'
' if (value) {\n'
- ' Dart_WeakPersistentHandle result = '
- ' DartDOMWrapper::lookupWrapper(isNode, value);\n'
+ ' DartDOMData* domData = static_cast<DartDOMData*>(\n'
+ ' Dart_GetNativeIsolateData(args));\n'
+ ' Dart_WeakPersistentHandle result =\n'
+ ' DartDOMWrapper::lookupWrapper(domData, isNode, value);\n'
' if (result)\n'
' Dart_SetWeakHandleReturnValue(args, result);\n'
' else\n'
« no previous file with comments | « runtime/vm/zone.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698