| 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 3273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |
| 3293 static RawTokenStream* New(intptr_t length); | 3293 static RawTokenStream* New(intptr_t length); |
| 3294 static RawTokenStream* New(const Scanner::GrowableTokenStream& tokens, | 3294 static RawTokenStream* New(const String& source, |
| 3295 const String& private_key, | 3295 const String& private_key, |
| 3296 bool use_shared_tokens); | 3296 bool use_shared_tokens); |
| 3297 | 3297 |
| 3298 static void OpenSharedTokenList(Isolate* isolate); | 3298 static void OpenSharedTokenList(Isolate* isolate); |
| 3299 static void CloseSharedTokenList(Isolate* isolate); | 3299 static void CloseSharedTokenList(Isolate* isolate); |
| 3300 | 3300 |
| 3301 // The class Iterator encapsulates iteration over the tokens | 3301 // The class Iterator encapsulates iteration over the tokens |
| 3302 // in a TokenStream object. | 3302 // in a TokenStream object. |
| 3303 class Iterator : ValueObject { | 3303 class Iterator : ValueObject { |
| 3304 public: | 3304 public: |
| (...skipping 5219 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 |