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

Unified Diff: runtime/vm/flow_graph_builder.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/flow_graph_builder.cc
diff --git a/runtime/vm/flow_graph_builder.cc b/runtime/vm/flow_graph_builder.cc
index 959b4101de2cb160970d48c8170208d5004be4c9..d4f1c09fbb96f4d89069f12a679f19a00267985a 100644
--- a/runtime/vm/flow_graph_builder.cc
+++ b/runtime/vm/flow_graph_builder.cc
@@ -46,7 +46,6 @@ DEFINE_FLAG(bool,
"Trace type check elimination at compile time.");
DECLARE_FLAG(bool, profile_vm);
-DECLARE_FLAG(bool, support_externalizable_strings);
// Quick access to the locally defined zone() method.
#define Z (zone())
@@ -3178,14 +3177,10 @@ void EffectGraphVisitor::VisitNativeBodyNode(NativeBodyNode* node) {
}
case MethodRecognizer::kStringBaseLength:
case MethodRecognizer::kStringBaseIsEmpty: {
- // Treat length loads as mutable (i.e. affected by side effects) to
- // avoid hoisting them since we can't hoist the preceding class-check.
- // This is because of externalization of strings that affects their
- // class-id.
LoadFieldInstr* load = BuildNativeGetter(
node, MethodRecognizer::kStringBaseLength, String::length_offset(),
Type::ZoneHandle(Z, Type::SmiType()), kSmiCid);
- load->set_is_immutable(!FLAG_support_externalizable_strings);
+ load->set_is_immutable(true);
if (kind == MethodRecognizer::kStringBaseLength) {
return ReturnDefinition(load);
}

Powered by Google App Engine
This is Rietveld 408576698