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

Unified Diff: runtime/vm/dart_api_impl.cc

Issue 23681014: - Modify toDart to first do a simple lookup in the appropriate table before going down the templati… (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 | « no previous file | tools/dom/scripts/generator.py » ('j') | tools/dom/scripts/generator.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/dart_api_impl.cc
===================================================================
--- runtime/vm/dart_api_impl.cc (revision 27632)
+++ runtime/vm/dart_api_impl.cc (working copy)
@@ -124,7 +124,9 @@
FinalizablePersistentHandle* Api::UnwrapAsWeakPersistentHandle(
Dart_WeakPersistentHandle object) {
- ASSERT(Isolate::Current()->api_state()->IsValidWeakPersistentHandle(object));
+ ASSERT(Isolate::Current()->api_state()->IsValidWeakPersistentHandle(object) ||
+ Isolate::Current()->api_state()->
+ IsValidPrologueWeakPersistentHandle(object));
return reinterpret_cast<FinalizablePersistentHandle*>(object);
}
« no previous file with comments | « no previous file | tools/dom/scripts/generator.py » ('j') | tools/dom/scripts/generator.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698