| 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 3261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3272 public: | 3272 public: |
| 3273 RawGrowableObjectArray* TokenObjects() const; | 3273 RawGrowableObjectArray* TokenObjects() const; |
| 3274 void SetTokenObjects(const GrowableObjectArray& value) const; | 3274 void SetTokenObjects(const GrowableObjectArray& value) const; |
| 3275 | 3275 |
| 3276 RawExternalTypedData* GetStream() const; | 3276 RawExternalTypedData* GetStream() const; |
| 3277 void SetStream(const ExternalTypedData& stream) const; | 3277 void SetStream(const ExternalTypedData& stream) const; |
| 3278 | 3278 |
| 3279 RawString* GenerateSource() const; | 3279 RawString* GenerateSource() const; |
| 3280 RawString* GenerateSource(TokenPosition start, | 3280 RawString* GenerateSource(TokenPosition start, |
| 3281 TokenPosition end) const; | 3281 TokenPosition end) const; |
| 3282 TokenPosition ComputeSourcePosition(TokenPosition tok_pos) const; | 3282 intptr_t ComputeSourcePosition(TokenPosition tok_pos) const; |
| 3283 | 3283 |
| 3284 RawString* PrivateKey() const; | 3284 RawString* PrivateKey() const; |
| 3285 | 3285 |
| 3286 static const intptr_t kBytesPerElement = 1; | 3286 static const intptr_t kBytesPerElement = 1; |
| 3287 static const intptr_t kMaxElements = kSmiMax / kBytesPerElement; | 3287 static const intptr_t kMaxElements = kSmiMax / kBytesPerElement; |
| 3288 | 3288 |
| 3289 static intptr_t InstanceSize() { | 3289 static intptr_t InstanceSize() { |
| 3290 return RoundedAllocationSize(sizeof(RawTokenStream)); | 3290 return RoundedAllocationSize(sizeof(RawTokenStream)); |
| 3291 } | 3291 } |
| 3292 | 3292 |
| (...skipping 5231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8524 | 8524 |
| 8525 | 8525 |
| 8526 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 8526 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 8527 intptr_t index) { | 8527 intptr_t index) { |
| 8528 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 8528 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 8529 } | 8529 } |
| 8530 | 8530 |
| 8531 } // namespace dart | 8531 } // namespace dart |
| 8532 | 8532 |
| 8533 #endif // VM_OBJECT_H_ | 8533 #endif // VM_OBJECT_H_ |
| OLD | NEW |