Chromium Code Reviews| Index: runtime/vm/intermediate_language.cc |
| =================================================================== |
| --- runtime/vm/intermediate_language.cc (revision 11181) |
| +++ runtime/vm/intermediate_language.cc (working copy) |
| @@ -154,9 +154,11 @@ |
| // Only core library methods can be recognized. |
|
siva
2012/08/23 01:08:37
update comment for math library as well.
srdjan
2012/08/23 01:10:46
Done.
|
| 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()); |