| Index: runtime/vm/flow_graph_builder.cc
|
| ===================================================================
|
| --- runtime/vm/flow_graph_builder.cc (revision 28616)
|
| +++ runtime/vm/flow_graph_builder.cc (working copy)
|
| @@ -35,13 +35,6 @@
|
| DECLARE_FLAG(bool, enable_type_checks);
|
|
|
|
|
| -static const String& PrivateCoreLibName(const String& str) {
|
| - const Library& core_lib = Library::Handle(Library::CoreLibrary());
|
| - const String& private_name = String::ZoneHandle(core_lib.PrivateName(str));
|
| - return private_name;
|
| -}
|
| -
|
| -
|
| FlowGraphBuilder::FlowGraphBuilder(ParsedFunction* parsed_function,
|
| const Array& ic_data_array,
|
| InlineExitCollector* exit_collector,
|
| @@ -1073,7 +1066,7 @@
|
|
|
| static const String& BinaryOpAndMaskName(BinaryOpNode* node) {
|
| if (node->kind() == Token::kSHL) {
|
| - return PrivateCoreLibName(Symbols::_leftShiftWithMask32());
|
| + return Library::PrivateCoreLibName(Symbols::_leftShiftWithMask32());
|
| }
|
| UNIMPLEMENTED();
|
| return String::ZoneHandle();
|
| @@ -1292,7 +1285,7 @@
|
| const intptr_t kNumArgsChecked = 1;
|
| InstanceCallInstr* call = new InstanceCallInstr(
|
| node->token_pos(),
|
| - PrivateCoreLibName(Symbols::_instanceOf()),
|
| + Library::PrivateCoreLibName(Symbols::_instanceOf()),
|
| node->kind(),
|
| arguments,
|
| Object::null_array(), // No argument names.
|
| @@ -1362,7 +1355,7 @@
|
| const intptr_t kNumArgsChecked = 1;
|
| InstanceCallInstr* call = new InstanceCallInstr(
|
| node->token_pos(),
|
| - PrivateCoreLibName(Symbols::_as()),
|
| + Library::PrivateCoreLibName(Symbols::_as()),
|
| node->kind(),
|
| arguments,
|
| Object::null_array(), // No argument names.
|
| @@ -3710,7 +3703,7 @@
|
| ASSERT(!cls.IsNull());
|
| const Function& func = Function::ZoneHandle(
|
| Resolver::ResolveStatic(cls,
|
| - PrivateCoreLibName(Symbols::ThrowNew()),
|
| + Library::PrivateCoreLibName(Symbols::ThrowNew()),
|
| arguments->length(),
|
| Object::null_array(),
|
| Resolver::kIsQualified));
|
|
|