| 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 2205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2216 static RawLibrary* UriLibrary(); | 2216 static RawLibrary* UriLibrary(); |
| 2217 static RawLibrary* UtfLibrary(); | 2217 static RawLibrary* UtfLibrary(); |
| 2218 | 2218 |
| 2219 // Eagerly compile all classes and functions in the library. | 2219 // Eagerly compile all classes and functions in the library. |
| 2220 static RawError* CompileAll(); | 2220 static RawError* CompileAll(); |
| 2221 | 2221 |
| 2222 // Checks function fingerprints. Prints mismatches and aborts if | 2222 // Checks function fingerprints. Prints mismatches and aborts if |
| 2223 // mismatch found. | 2223 // mismatch found. |
| 2224 static void CheckFunctionFingerprints(); | 2224 static void CheckFunctionFingerprints(); |
| 2225 | 2225 |
| 2226 static bool IsPrivate(const String& name); |
| 2227 |
| 2226 private: | 2228 private: |
| 2227 static const int kInitialImportsCapacity = 4; | 2229 static const int kInitialImportsCapacity = 4; |
| 2228 static const int kImportsCapacityIncrement = 8; | 2230 static const int kImportsCapacityIncrement = 8; |
| 2229 static RawLibrary* New(); | 2231 static RawLibrary* New(); |
| 2230 | 2232 |
| 2231 void set_num_imports(intptr_t value) const { | 2233 void set_num_imports(intptr_t value) const { |
| 2232 raw_ptr()->num_imports_ = value; | 2234 raw_ptr()->num_imports_ = value; |
| 2233 } | 2235 } |
| 2234 RawArray* imports() const { return raw_ptr()->imports_; } | 2236 RawArray* imports() const { return raw_ptr()->imports_; } |
| 2235 RawArray* exports() const { return raw_ptr()->exports_; } | 2237 RawArray* exports() const { return raw_ptr()->exports_; } |
| (...skipping 3515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5751 | 5753 |
| 5752 | 5754 |
| 5753 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 5755 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 5754 intptr_t index) { | 5756 intptr_t index) { |
| 5755 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 5757 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 5756 } | 5758 } |
| 5757 | 5759 |
| 5758 } // namespace dart | 5760 } // namespace dart |
| 5759 | 5761 |
| 5760 #endif // VM_OBJECT_H_ | 5762 #endif // VM_OBJECT_H_ |
| OLD | NEW |