| Index: runtime/vm/intermediate_language.cc
|
| ===================================================================
|
| --- runtime/vm/intermediate_language.cc (revision 11200)
|
| +++ runtime/vm/intermediate_language.cc (working copy)
|
| @@ -151,12 +151,14 @@
|
|
|
| MethodRecognizer::Kind MethodRecognizer::RecognizeKind(
|
| const Function& function) {
|
| - // Only core library methods can be recognized.
|
| + // Only core and math library methods can be recognized.
|
| const Library& core_lib = Library::Handle(Library::CoreLibrary());
|
| const Library& core_impl_lib = Library::Handle(Library::CoreImplLibrary());
|
| + const Library& math_lib = Library::Handle(Library::MathLibrary());
|
| const Class& function_class = Class::Handle(function.Owner());
|
| if ((function_class.library() != core_lib.raw()) &&
|
| - (function_class.library() != core_impl_lib.raw())) {
|
| + (function_class.library() != core_impl_lib.raw()) &&
|
| + (function_class.library() != math_lib.raw())) {
|
| return kUnknown;
|
| }
|
| const String& recognize_name = String::Handle(function.name());
|
|
|