| 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 2248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2259 | 2259 |
| 2260 class TokenStream : public Object { | 2260 class TokenStream : public Object { |
| 2261 public: | 2261 public: |
| 2262 RawArray* TokenObjects() const; | 2262 RawArray* TokenObjects() const; |
| 2263 void SetTokenObjects(const Array& value) const; | 2263 void SetTokenObjects(const Array& value) const; |
| 2264 | 2264 |
| 2265 RawExternalTypedData* GetStream() const; | 2265 RawExternalTypedData* GetStream() const; |
| 2266 void SetStream(const ExternalTypedData& stream) const; | 2266 void SetStream(const ExternalTypedData& stream) const; |
| 2267 | 2267 |
| 2268 RawString* GenerateSource() const; | 2268 RawString* GenerateSource() const; |
| 2269 RawString* GenerateSource(intptr_t start, intptr_t end) const; |
| 2269 intptr_t ComputeSourcePosition(intptr_t tok_pos) const; | 2270 intptr_t ComputeSourcePosition(intptr_t tok_pos) const; |
| 2270 | 2271 |
| 2271 RawString* PrivateKey() const; | 2272 RawString* PrivateKey() const; |
| 2272 | 2273 |
| 2273 static const intptr_t kBytesPerElement = 1; | 2274 static const intptr_t kBytesPerElement = 1; |
| 2274 static const intptr_t kMaxElements = kSmiMax / kBytesPerElement; | 2275 static const intptr_t kMaxElements = kSmiMax / kBytesPerElement; |
| 2275 | 2276 |
| 2276 static intptr_t InstanceSize() { | 2277 static intptr_t InstanceSize() { |
| 2277 return RoundedAllocationSize(sizeof(RawTokenStream)); | 2278 return RoundedAllocationSize(sizeof(RawTokenStream)); |
| 2278 } | 2279 } |
| (...skipping 4313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6592 | 6593 |
| 6593 | 6594 |
| 6594 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 6595 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 6595 intptr_t index) { | 6596 intptr_t index) { |
| 6596 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 6597 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 6597 } | 6598 } |
| 6598 | 6599 |
| 6599 } // namespace dart | 6600 } // namespace dart |
| 6600 | 6601 |
| 6601 #endif // VM_OBJECT_H_ | 6602 #endif // VM_OBJECT_H_ |
| OLD | NEW |