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

Unified Diff: runtime/vm/kernel_to_il.cc

Issue 2997173002: [vm] Remove Dart_MakeExternalString and --support-externalizable-strings (Closed)
Patch Set: Update vm.status 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
Index: runtime/vm/kernel_to_il.cc
diff --git a/runtime/vm/kernel_to_il.cc b/runtime/vm/kernel_to_il.cc
index 71ccb80a866303ade260fe9dede2deb04b8ea63f..e81255ebc40b45e3853521db3f70367fd0e02ccf 100644
--- a/runtime/vm/kernel_to_il.cc
+++ b/runtime/vm/kernel_to_il.cc
@@ -20,8 +20,6 @@
#if !defined(DART_PRECOMPILED_RUNTIME)
namespace dart {
-DECLARE_FLAG(bool, support_externalizable_strings);
-
namespace kernel {
#define Z (zone_)
@@ -1677,15 +1675,11 @@ Fragment FlowGraphBuilder::NativeFunctionBody(intptr_t first_positional_offset,
break;
case MethodRecognizer::kStringBaseLength:
case MethodRecognizer::kStringBaseIsEmpty:
- // Depending on FLAG_support_externalizable_strings, treat string length
- // loads as mutable so that the class check that precedes them will not be
- // hoisted. This is unsafe because string externalization can change the
- // class.
body += LoadLocal(scopes_->this_variable);
body += LoadNativeField(MethodRecognizer::kStringBaseLength,
dart::String::length_offset(),
Type::ZoneHandle(Z, Type::SmiType()), kSmiCid,
- !FLAG_support_externalizable_strings);
+ /* is_immutable = */ true);
if (kind == MethodRecognizer::kStringBaseIsEmpty) {
body += IntConstant(0);
body += StrictCompare(Token::kEQ_STRICT);

Powered by Google App Engine
This is Rietveld 408576698