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

Unified Diff: runtime/vm/kernel_to_il.h

Issue 3003023002: Avoid triggering an ASSERT in TypedData (Closed)
Patch Set: Created 3 years, 4 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/tests/vm/vm.status ('k') | runtime/vm/kernel_to_il.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/kernel_to_il.h
diff --git a/runtime/vm/kernel_to_il.h b/runtime/vm/kernel_to_il.h
index e3920f1fc9d59698e7d44292b97e8a6648b0782d..88f231835269ca4f8a3601ca4fb4814c0e0d16e8 100644
--- a/runtime/vm/kernel_to_il.h
+++ b/runtime/vm/kernel_to_il.h
@@ -284,6 +284,12 @@ class TranslationHelper {
intptr_t StringOffset(StringIndex index) const;
intptr_t StringSize(StringIndex index) const;
+
+ // The address of the backing store of the string with a given index. If the
+ // backing store is in the VM's heap this address is not safe for GC (call the
+ // function and use the result within a NoSafepointScope).
+ uint8_t* StringBuffer(StringIndex index) const;
+
uint8_t CharacterAt(StringIndex string_index, intptr_t index);
bool StringEquals(StringIndex string_index, const char* other);
« no previous file with comments | « runtime/tests/vm/vm.status ('k') | runtime/vm/kernel_to_il.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698