@@ -1281,7 +1281,7 @@ intptr_t BytecodeMetadataHelper::ReadPoolEntries(const Function& function,
1281
1281
1282
1282
closure.SetParameterTypeAt(pos, type);
1283
1283
closure.SetParameterNameAt(pos,
1284
- H.DartSymbolObfuscate( helper.name_index_));
1284
+ H.DartIdentifier(lib, helper.name_index_));
1285
1285
}
1286
1286
1287
1287
intptr_t named_parameter_count_check = builder_->ReadListLength();
@@ -1298,7 +1298,7 @@ intptr_t BytecodeMetadataHelper::ReadPoolEntries(const Function& function,
1298
1298
1299
1299
closure.SetParameterTypeAt(pos, type);
1300
1300
closure.SetParameterNameAt(pos,
1301
- H.DartSymbolObfuscate( helper.name_index_));
1301
+ H.DartIdentifier(lib, helper.name_index_));
1302
1302
}
1303
1303
1304
1304
function_node_helper.SetJustRead(FunctionNodeHelper::kNamedParameters);
@@ -3973,10 +3973,10 @@ void StreamingConstantEvaluator::EvaluateStringConcatenation() {
3973
3973
}
3974
3974
3975
3975
void StreamingConstantEvaluator::EvaluateSymbolLiteral() {
3976
- // The symbol value is read plain and obfuscated later.
3977
- const String& symbol_value = H.DartSymbolPlain(
3978
- builder_->ReadStringReference( )); // read index into string table.
3979
-
3976
+ const Class& owner =
3977
+ Class::Handle(Z, builder_->parsed_function()->function().Owner());
3978
+ const Library& lib = Library::Handle(Z, owner.library( ));
3979
+ String& symbol_value = H.DartIdentifier(lib, builder_->ReadStringReference());
3980
3980
const Class& symbol_class =
3981
3981
Class::ZoneHandle(Z, I->object_store()->symbol_class());
3982
3982
ASSERT(!symbol_class.IsNull());
@@ -10871,6 +10871,7 @@ void StreamingFlowGraphBuilder::LoadAndSetupTypeParameters(
10871
10871
10872
10872
// Step a) Create array of [TypeParameter] objects (without bound).
10873
10873
type_parameters = TypeArguments::New(type_parameter_count);
10874
+ const Library& lib = Library::Handle(Z, active_class->klass->library());
10874
10875
{
10875
10876
AlternativeReadingScope alt(&reader_);
10876
10877
for (intptr_t i = 0; i < type_parameter_count; i++) {
@@ -10879,7 +10880,7 @@ void StreamingFlowGraphBuilder::LoadAndSetupTypeParameters(
10879
10880
parameter = TypeParameter::New(
10880
10881
set_on_class ? *active_class->klass : Class::Handle(Z),
10881
10882
parameterized_function, i,
10882
- H.DartSymbolObfuscate( helper.name_index_), // read ith name index.
10883
+ H.DartIdentifier(lib, helper.name_index_), // read ith name index.
10883
10884
null_bound, TokenPosition::kNoSource);
10884
10885
type_parameters.SetTypeAt(i, parameter);
10885
10886
}
@@ -10984,6 +10985,7 @@ void StreamingFlowGraphBuilder::SetupFunctionParameters(
10984
10985
pos++;
10985
10986
}
10986
10987
10988
+ const Library& lib = Library::Handle(Z, active_class->klass->library());
10987
10989
for (intptr_t i = 0; i < positional_parameter_count; ++i, ++pos) {
10988
10990
// Read ith variable declaration.
10989
10991
VariableDeclarationHelper helper(this);
@@ -10996,7 +10998,7 @@ void StreamingFlowGraphBuilder::SetupFunctionParameters(
10996
10998
10997
10999
function.SetParameterTypeAt(
10998
11000
pos, type.IsMalformed() ? Type::dynamic_type() : type);
10999
- function.SetParameterNameAt(pos, H.DartSymbolObfuscate( helper.name_index_));
11001
+ function.SetParameterNameAt(pos, H.DartIdentifier(lib, helper.name_index_));
11000
11002
}
11001
11003
11002
11004
intptr_t named_parameter_count_check = ReadListLength(); // read list length.
@@ -11013,7 +11015,7 @@ void StreamingFlowGraphBuilder::SetupFunctionParameters(
11013
11015
11014
11016
function.SetParameterTypeAt(
11015
11017
pos, type.IsMalformed() ? Type::dynamic_type() : type);
11016
- function.SetParameterNameAt(pos, H.DartSymbolObfuscate( helper.name_index_));
11018
+ function.SetParameterNameAt(pos, H.DartIdentifier(lib, helper.name_index_));
11017
11019
}
11018
11020
11019
11021
function_node_helper->SetJustRead(FunctionNodeHelper::kNamedParameters);
0 commit comments