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 #ifndef VM_OBJECT_H_ | 5 #ifndef VM_OBJECT_H_ |
6 #define VM_OBJECT_H_ | 6 #define VM_OBJECT_H_ |
7 | 7 |
8 #include "include/dart_api.h" | 8 #include "include/dart_api.h" |
9 #include "platform/assert.h" | 9 #include "platform/assert.h" |
10 #include "platform/utils.h" | 10 #include "platform/utils.h" |
(...skipping 4757 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4768 | 4768 |
4769 static RawString* Transform(int32_t (*mapping)(int32_t ch), | 4769 static RawString* Transform(int32_t (*mapping)(int32_t ch), |
4770 const String& str, | 4770 const String& str, |
4771 Heap::Space space = Heap::kNew); | 4771 Heap::Space space = Heap::kNew); |
4772 | 4772 |
4773 static RawString* ToUpperCase(const String& str, | 4773 static RawString* ToUpperCase(const String& str, |
4774 Heap::Space space = Heap::kNew); | 4774 Heap::Space space = Heap::kNew); |
4775 static RawString* ToLowerCase(const String& str, | 4775 static RawString* ToLowerCase(const String& str, |
4776 Heap::Space space = Heap::kNew); | 4776 Heap::Space space = Heap::kNew); |
4777 | 4777 |
| 4778 static RawString* StripAccessorPrefix(const String& name); |
| 4779 static RawString* StripPrivateMangling(const String& name); |
| 4780 static RawString* IdentifierPrettyName(const String& name); |
| 4781 |
4778 static bool EqualsIgnoringPrivateKey(const String& str1, | 4782 static bool EqualsIgnoringPrivateKey(const String& str1, |
4779 const String& str2); | 4783 const String& str2); |
4780 | 4784 |
4781 static RawString* NewFormatted(const char* format, ...) | 4785 static RawString* NewFormatted(const char* format, ...) |
4782 PRINTF_ATTRIBUTE(1, 2); | 4786 PRINTF_ATTRIBUTE(1, 2); |
4783 static RawString* NewFormattedV(const char* format, va_list args); | 4787 static RawString* NewFormattedV(const char* format, va_list args); |
4784 | 4788 |
4785 protected: | 4789 protected: |
4786 bool HasHash() const { | 4790 bool HasHash() const { |
4787 ASSERT(Smi::New(0) == NULL); | 4791 ASSERT(Smi::New(0) == NULL); |
(...skipping 1407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6195 | 6199 |
6196 | 6200 |
6197 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 6201 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
6198 intptr_t index) { | 6202 intptr_t index) { |
6199 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 6203 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
6200 } | 6204 } |
6201 | 6205 |
6202 } // namespace dart | 6206 } // namespace dart |
6203 | 6207 |
6204 #endif // VM_OBJECT_H_ | 6208 #endif // VM_OBJECT_H_ |
OLD | NEW |