| Index: runtime/vm/intermediate_language.cc
|
| ===================================================================
|
| --- runtime/vm/intermediate_language.cc (revision 28731)
|
| +++ runtime/vm/intermediate_language.cc (working copy)
|
| @@ -15,6 +15,7 @@
|
| #include "vm/object.h"
|
| #include "vm/object_store.h"
|
| #include "vm/os.h"
|
| +#include "vm/resolver.h"
|
| #include "vm/scopes.h"
|
| #include "vm/stub_code.h"
|
| #include "vm/symbols.h"
|
| @@ -2614,6 +2615,26 @@
|
| }
|
|
|
|
|
| +const Function& StringInterpolateInstr::CallFunction() const {
|
| + if (function_.IsNull()) {
|
| + const int kNumberOfArguments = 1;
|
| + const Array& kNoArgumentNames = Object::null_array();
|
| + const Class& cls =
|
| + Class::Handle(Library::LookupCoreClass(Symbols::StringBase()));
|
| + ASSERT(!cls.IsNull());
|
| + function_ =
|
| + Resolver::ResolveStatic(
|
| + cls,
|
| + Library::PrivateCoreLibName(Symbols::Interpolate()),
|
| + kNumberOfArguments,
|
| + kNoArgumentNames,
|
| + Resolver::kIsQualified);
|
| + }
|
| + ASSERT(!function_.IsNull());
|
| + return function_;
|
| +}
|
| +
|
| +
|
| InvokeMathCFunctionInstr::InvokeMathCFunctionInstr(
|
| ZoneGrowableArray<Value*>* inputs,
|
| intptr_t original_deopt_id,
|
|
|