OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #include "vm/object.h" | 5 #include "vm/object.h" |
6 | 6 |
7 #include "include/dart_api.h" | 7 #include "include/dart_api.h" |
8 #include "platform/assert.h" | 8 #include "platform/assert.h" |
9 #include "vm/assembler.h" | 9 #include "vm/assembler.h" |
10 #include "vm/cpu.h" | 10 #include "vm/cpu.h" |
(...skipping 6586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6597 raw_ptr()->instructions_).code()).is_optimized(); | 6597 raw_ptr()->instructions_).code()).is_optimized(); |
6598 } | 6598 } |
6599 | 6599 |
6600 | 6600 |
6601 RawString* Function::PrettyName() const { | 6601 RawString* Function::PrettyName() const { |
6602 const String& str = String::Handle(name()); | 6602 const String& str = String::Handle(name()); |
6603 return String::IdentifierPrettyName(str); | 6603 return String::IdentifierPrettyName(str); |
6604 } | 6604 } |
6605 | 6605 |
6606 | 6606 |
| 6607 const char* Function::QualifiedUserVisibleNameCString() const { |
| 6608 const String& str = String::Handle(QualifiedUserVisibleName()); |
| 6609 return str.ToCString(); |
| 6610 } |
| 6611 |
| 6612 |
6607 RawString* Function::UserVisibleName() const { | 6613 RawString* Function::UserVisibleName() const { |
6608 return PrettyName(); | 6614 return PrettyName(); |
6609 } | 6615 } |
6610 | 6616 |
6611 | 6617 |
6612 RawString* Function::QualifiedPrettyName() const { | 6618 RawString* Function::QualifiedPrettyName() const { |
6613 String& tmp = String::Handle(); | 6619 String& tmp = String::Handle(); |
6614 const Class& cls = Class::Handle(Owner()); | 6620 const Class& cls = Class::Handle(Owner()); |
6615 | 6621 |
6616 if (IsClosureFunction()) { | 6622 if (IsClosureFunction()) { |
(...skipping 14351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
20968 return tag_label.ToCString(); | 20974 return tag_label.ToCString(); |
20969 } | 20975 } |
20970 | 20976 |
20971 | 20977 |
20972 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { | 20978 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { |
20973 Instance::PrintJSONImpl(stream, ref); | 20979 Instance::PrintJSONImpl(stream, ref); |
20974 } | 20980 } |
20975 | 20981 |
20976 | 20982 |
20977 } // namespace dart | 20983 } // namespace dart |
OLD | NEW |