| 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 1891 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1902 | 1902 |
| 1903 bool IsCoreLibrary() const { | 1903 bool IsCoreLibrary() const { |
| 1904 return raw() == CoreLibrary(); | 1904 return raw() == CoreLibrary(); |
| 1905 } | 1905 } |
| 1906 | 1906 |
| 1907 static RawLibrary* LookupLibrary(const String& url); | 1907 static RawLibrary* LookupLibrary(const String& url); |
| 1908 static RawLibrary* GetLibrary(intptr_t index); | 1908 static RawLibrary* GetLibrary(intptr_t index); |
| 1909 static bool IsKeyUsed(intptr_t key); | 1909 static bool IsKeyUsed(intptr_t key); |
| 1910 | 1910 |
| 1911 static void InitCoreLibrary(Isolate* isolate); | 1911 static void InitCoreLibrary(Isolate* isolate); |
| 1912 static void InitCollectionLibrary(Isolate* isolate); |
| 1912 static void InitMathLibrary(Isolate* isolate); | 1913 static void InitMathLibrary(Isolate* isolate); |
| 1913 static void InitIsolateLibrary(Isolate* isolate); | 1914 static void InitIsolateLibrary(Isolate* isolate); |
| 1914 static void InitMirrorsLibrary(Isolate* isolate); | 1915 static void InitMirrorsLibrary(Isolate* isolate); |
| 1915 static void InitScalarlistLibrary(Isolate* isolate); | 1916 static void InitScalarlistLibrary(Isolate* isolate); |
| 1916 static void InitNativeWrappersLibrary(Isolate* isolate); | 1917 static void InitNativeWrappersLibrary(Isolate* isolate); |
| 1917 | 1918 |
| 1918 static RawLibrary* CoreLibrary(); | 1919 static RawLibrary* CoreLibrary(); |
| 1919 static RawLibrary* CoreImplLibrary(); | 1920 static RawLibrary* CoreImplLibrary(); |
| 1921 static RawLibrary* CollectionLibrary(); |
| 1920 static RawLibrary* MathLibrary(); | 1922 static RawLibrary* MathLibrary(); |
| 1921 static RawLibrary* IsolateLibrary(); | 1923 static RawLibrary* IsolateLibrary(); |
| 1922 static RawLibrary* MirrorsLibrary(); | 1924 static RawLibrary* MirrorsLibrary(); |
| 1923 static RawLibrary* ScalarlistLibrary(); | 1925 static RawLibrary* ScalarlistLibrary(); |
| 1924 static RawLibrary* NativeWrappersLibrary(); | 1926 static RawLibrary* NativeWrappersLibrary(); |
| 1925 | 1927 |
| 1926 // Eagerly compile all classes and functions in the library. | 1928 // Eagerly compile all classes and functions in the library. |
| 1927 static RawError* CompileAll(); | 1929 static RawError* CompileAll(); |
| 1928 | 1930 |
| 1929 private: | 1931 private: |
| (...skipping 3845 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5775 if (this->CharAt(i) != str.CharAt(begin_index + i)) { | 5777 if (this->CharAt(i) != str.CharAt(begin_index + i)) { |
| 5776 return false; | 5778 return false; |
| 5777 } | 5779 } |
| 5778 } | 5780 } |
| 5779 return true; | 5781 return true; |
| 5780 } | 5782 } |
| 5781 | 5783 |
| 5782 } // namespace dart | 5784 } // namespace dart |
| 5783 | 5785 |
| 5784 #endif // VM_OBJECT_H_ | 5786 #endif // VM_OBJECT_H_ |
| OLD | NEW |