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

Unified Diff: runtime/vm/object.h

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/intermediate_language_x64.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.h
diff --git a/runtime/vm/object.h b/runtime/vm/object.h
index a46c121a7cf3bb579d20d4398589daf6731c8887..915b853962f6c2e61cb6113ef2845f1d18031f62 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -6089,6 +6089,10 @@ class ExternalOneByteString : public AllStatic {
return raw_ptr(str)->external_data_->peer();
}
+ static intptr_t external_data_offset() {
+ return OFFSET_OF(RawExternalOneByteString, external_data_);
+ }
+
// We use the same maximum elements for all strings.
static const intptr_t kBytesPerElement = 1;
static const intptr_t kMaxElements = String::kMaxElements;
@@ -6165,6 +6169,10 @@ class ExternalTwoByteString : public AllStatic {
return raw_ptr(str)->external_data_->peer();
}
+ static intptr_t external_data_offset() {
+ return OFFSET_OF(RawExternalTwoByteString, external_data_);
+ }
+
// We use the same maximum elements for all strings.
static const intptr_t kBytesPerElement = 2;
static const intptr_t kMaxElements = String::kMaxElements;
« no previous file with comments | « runtime/vm/intermediate_language_x64.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698