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

Unified Diff: runtime/vm/object.cc

Issue 765743003: Support use of external strings as inputs to LoadCodeUnitsInstr. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: safety Created 6 years 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/object.h ('k') | runtime/vm/raw_object.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.cc
diff --git a/runtime/vm/object.cc b/runtime/vm/object.cc
index 557e24d1cb25531d2803c31f2bac394f9f7eef91..fd9c267dd0d84576a4ffa3ad97682d5ca8dee0c8 100644
--- a/runtime/vm/object.cc
+++ b/runtime/vm/object.cc
@@ -13637,6 +13637,10 @@ intptr_t Instance::ElementSizeFor(intptr_t cid) {
return OneByteString::kBytesPerElement;
case kTwoByteStringCid:
return TwoByteString::kBytesPerElement;
+ case kExternalOneByteStringCid:
+ return ExternalOneByteString::kBytesPerElement;
+ case kExternalTwoByteStringCid:
+ return ExternalTwoByteString::kBytesPerElement;
default:
UNIMPLEMENTED();
return 0;
« no previous file with comments | « runtime/vm/object.h ('k') | runtime/vm/raw_object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698