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

Unified Diff: vm/raw_object_snapshot.cc

Issue 11293031: Remove some unnecessary class handle creations. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 2 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/object.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/raw_object_snapshot.cc
===================================================================
--- vm/raw_object_snapshot.cc (revision 14311)
+++ vm/raw_object_snapshot.cc (working copy)
@@ -2102,10 +2102,7 @@
void* peer = reinterpret_cast<void*>(reader->ReadIntptrValue()); \
Dart_PeerFinalizer callback = \
reinterpret_cast<Dart_PeerFinalizer>(reader->ReadIntptrValue()); \
- const Class& cls = Class::Handle( \
- reader->isolate()->object_store()->external_##lname##_array_class()); \
- return NewExternalImpl<External##name##Array, RawExternal##name##Array>( \
- cls, data, length, peer, callback, HEAP_SPACE(kind)); \
+ return New(data, length, peer, callback, HEAP_SPACE(kind)); \
} \
« no previous file with comments | « vm/object.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698