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 4774 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4785 | 4785 |
4786 static RawString* Transform(int32_t (*mapping)(int32_t ch), | 4786 static RawString* Transform(int32_t (*mapping)(int32_t ch), |
4787 const String& str, | 4787 const String& str, |
4788 Heap::Space space = Heap::kNew); | 4788 Heap::Space space = Heap::kNew); |
4789 | 4789 |
4790 static RawString* ToUpperCase(const String& str, | 4790 static RawString* ToUpperCase(const String& str, |
4791 Heap::Space space = Heap::kNew); | 4791 Heap::Space space = Heap::kNew); |
4792 static RawString* ToLowerCase(const String& str, | 4792 static RawString* ToLowerCase(const String& str, |
4793 Heap::Space space = Heap::kNew); | 4793 Heap::Space space = Heap::kNew); |
4794 | 4794 |
| 4795 static RawString* IdentifierPrettyName(const String& name); |
| 4796 static RawString* IdentifierPrettyNameRetainPrivate(const String& name); |
| 4797 |
4795 static bool EqualsIgnoringPrivateKey(const String& str1, | 4798 static bool EqualsIgnoringPrivateKey(const String& str1, |
4796 const String& str2); | 4799 const String& str2); |
4797 | 4800 |
4798 static RawString* NewFormatted(const char* format, ...) | 4801 static RawString* NewFormatted(const char* format, ...) |
4799 PRINTF_ATTRIBUTE(1, 2); | 4802 PRINTF_ATTRIBUTE(1, 2); |
4800 static RawString* NewFormattedV(const char* format, va_list args); | 4803 static RawString* NewFormattedV(const char* format, va_list args); |
4801 | 4804 |
4802 protected: | 4805 protected: |
4803 bool HasHash() const { | 4806 bool HasHash() const { |
4804 ASSERT(Smi::New(0) == NULL); | 4807 ASSERT(Smi::New(0) == NULL); |
(...skipping 1407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6212 | 6215 |
6213 | 6216 |
6214 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 6217 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
6215 intptr_t index) { | 6218 intptr_t index) { |
6216 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 6219 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
6217 } | 6220 } |
6218 | 6221 |
6219 } // namespace dart | 6222 } // namespace dart |
6220 | 6223 |
6221 #endif // VM_OBJECT_H_ | 6224 #endif // VM_OBJECT_H_ |
OLD | NEW |