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 1906 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1917 } | 1917 } |
1918 | 1918 |
1919 | 1919 |
1920 RawString* Class::PrettyName() const { | 1920 RawString* Class::PrettyName() const { |
1921 return GeneratePrettyName(); | 1921 return GeneratePrettyName(); |
1922 } | 1922 } |
1923 | 1923 |
1924 | 1924 |
1925 RawString* Class::UserVisibleName() const { | 1925 RawString* Class::UserVisibleName() const { |
1926 #if defined(PRODUCT) | 1926 #if defined(PRODUCT) |
1927 return raw_ptr()->name_; | 1927 return GenerateUserVisibleName(); |
Ivan Posva
2016/02/23 18:34:59
Any particular reason why you disable shaking of t
siva
2016/02/23 19:06:42
The following construct obj.runtimeType.toString()
| |
1928 #else // defined(PRODUCT) | 1928 #else // defined(PRODUCT) |
1929 ASSERT(raw_ptr()->user_name_ != String::null()); | 1929 ASSERT(raw_ptr()->user_name_ != String::null()); |
1930 return raw_ptr()->user_name_; | 1930 return raw_ptr()->user_name_; |
1931 #endif // defined(PRODUCT) | 1931 #endif // defined(PRODUCT) |
1932 } | 1932 } |
1933 | 1933 |
1934 | 1934 |
1935 bool Class::IsInFullSnapshot() const { | 1935 bool Class::IsInFullSnapshot() const { |
1936 NoSafepointScope no_safepoint; | 1936 NoSafepointScope no_safepoint; |
1937 return raw_ptr()->library_->ptr()->is_in_fullsnapshot_; | 1937 return raw_ptr()->library_->ptr()->is_in_fullsnapshot_; |
(...skipping 19533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
21471 return UserTag::null(); | 21471 return UserTag::null(); |
21472 } | 21472 } |
21473 | 21473 |
21474 | 21474 |
21475 const char* UserTag::ToCString() const { | 21475 const char* UserTag::ToCString() const { |
21476 const String& tag_label = String::Handle(label()); | 21476 const String& tag_label = String::Handle(label()); |
21477 return tag_label.ToCString(); | 21477 return tag_label.ToCString(); |
21478 } | 21478 } |
21479 | 21479 |
21480 } // namespace dart | 21480 } // namespace dart |
OLD | NEW |