| 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 2128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2139 } | 2139 } |
| 2140 | 2140 |
| 2141 static RawLibrary* LookupLibrary(const String& url); | 2141 static RawLibrary* LookupLibrary(const String& url); |
| 2142 static RawLibrary* GetLibrary(intptr_t index); | 2142 static RawLibrary* GetLibrary(intptr_t index); |
| 2143 static bool IsKeyUsed(intptr_t key); | 2143 static bool IsKeyUsed(intptr_t key); |
| 2144 | 2144 |
| 2145 static void InitCoreLibrary(Isolate* isolate); | 2145 static void InitCoreLibrary(Isolate* isolate); |
| 2146 static void InitMathLibrary(Isolate* isolate); | 2146 static void InitMathLibrary(Isolate* isolate); |
| 2147 static void InitIsolateLibrary(Isolate* isolate); | 2147 static void InitIsolateLibrary(Isolate* isolate); |
| 2148 static void InitMirrorsLibrary(Isolate* isolate); | 2148 static void InitMirrorsLibrary(Isolate* isolate); |
| 2149 static void InitScalarlistLibrary(Isolate* isolate); |
| 2150 static void InitNativeWrappersLibrary(Isolate* isolate); |
| 2151 |
| 2149 static RawLibrary* CoreLibrary(); | 2152 static RawLibrary* CoreLibrary(); |
| 2150 static RawLibrary* CoreImplLibrary(); | 2153 static RawLibrary* CoreImplLibrary(); |
| 2151 static RawLibrary* MathLibrary(); | 2154 static RawLibrary* MathLibrary(); |
| 2152 static RawLibrary* IsolateLibrary(); | 2155 static RawLibrary* IsolateLibrary(); |
| 2153 static RawLibrary* MirrorsLibrary(); | 2156 static RawLibrary* MirrorsLibrary(); |
| 2154 static void InitNativeWrappersLibrary(Isolate* isolate); | 2157 static RawLibrary* ScalarlistLibrary(); |
| 2155 static RawLibrary* NativeWrappersLibrary(); | 2158 static RawLibrary* NativeWrappersLibrary(); |
| 2156 | 2159 |
| 2157 // Eagerly compile all classes and functions in the library. | 2160 // Eagerly compile all classes and functions in the library. |
| 2158 static RawError* CompileAll(); | 2161 static RawError* CompileAll(); |
| 2159 | 2162 |
| 2160 private: | 2163 private: |
| 2161 static const int kInitialImportsCapacity = 4; | 2164 static const int kInitialImportsCapacity = 4; |
| 2162 static const int kImportsCapacityIncrement = 8; | 2165 static const int kImportsCapacityIncrement = 8; |
| 2163 static RawLibrary* New(); | 2166 static RawLibrary* New(); |
| 2164 | 2167 |
| (...skipping 3478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5643 if (this->CharAt(i) != str.CharAt(begin_index + i)) { | 5646 if (this->CharAt(i) != str.CharAt(begin_index + i)) { |
| 5644 return false; | 5647 return false; |
| 5645 } | 5648 } |
| 5646 } | 5649 } |
| 5647 return true; | 5650 return true; |
| 5648 } | 5651 } |
| 5649 | 5652 |
| 5650 } // namespace dart | 5653 } // namespace dart |
| 5651 | 5654 |
| 5652 #endif // VM_OBJECT_H_ | 5655 #endif // VM_OBJECT_H_ |
| OLD | NEW |