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

Unified Diff: runtime/vm/flow_graph_builder.cc

Issue 27006003: Cleanups, refactoring in anticipation of new string interpolation nodes. Removed unnecessary code. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 2 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 | « no previous file | runtime/vm/flow_graph_optimizer.cc » ('j') | runtime/vm/object.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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));
« no previous file with comments | « no previous file | runtime/vm/flow_graph_optimizer.cc » ('j') | runtime/vm/object.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698