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 <limits> | 8 #include <limits> |
9 #include "include/dart_api.h" | 9 #include "include/dart_api.h" |
10 #include "platform/assert.h" | 10 #include "platform/assert.h" |
(...skipping 5590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5601 CallbackType new_symbol, | 5601 CallbackType new_symbol, |
5602 Snapshot::Kind kind); | 5602 Snapshot::Kind kind); |
5603 | 5603 |
5604 intptr_t EscapedString(char* buffer, int max_len) const; | 5604 intptr_t EscapedString(char* buffer, int max_len) const; |
5605 intptr_t EscapedStringLen(intptr_t tooLong) const; | 5605 intptr_t EscapedStringLen(intptr_t tooLong) const; |
5606 | 5606 |
5607 FINAL_HEAP_OBJECT_IMPLEMENTATION(String, Instance); | 5607 FINAL_HEAP_OBJECT_IMPLEMENTATION(String, Instance); |
5608 | 5608 |
5609 friend class Class; | 5609 friend class Class; |
5610 friend class Symbols; | 5610 friend class Symbols; |
| 5611 friend class StringSlice; // SetHash |
| 5612 template<typename CharType> friend class CharArray; // SetHash |
5611 friend class OneByteString; | 5613 friend class OneByteString; |
5612 friend class TwoByteString; | 5614 friend class TwoByteString; |
5613 friend class ExternalOneByteString; | 5615 friend class ExternalOneByteString; |
5614 friend class ExternalTwoByteString; | 5616 friend class ExternalTwoByteString; |
5615 // So that the MarkingVisitor can print a debug string from a NoHandleScope. | 5617 // So that the MarkingVisitor can print a debug string from a NoHandleScope. |
5616 friend class MarkingVisitor; | 5618 friend class MarkingVisitor; |
5617 }; | 5619 }; |
5618 | 5620 |
5619 | 5621 |
5620 class OneByteString : public AllStatic { | 5622 class OneByteString : public AllStatic { |
(...skipping 1596 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7217 | 7219 |
7218 | 7220 |
7219 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 7221 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
7220 intptr_t index) { | 7222 intptr_t index) { |
7221 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 7223 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
7222 } | 7224 } |
7223 | 7225 |
7224 } // namespace dart | 7226 } // namespace dart |
7225 | 7227 |
7226 #endif // VM_OBJECT_H_ | 7228 #endif // VM_OBJECT_H_ |
OLD | NEW |