Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(401)

Side by Side Diff: runtime/vm/object.h

Issue 11274043: Move Arrays, Collections and Maps into a new library, dart:collections. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Review update. Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 InitCollectionsLibrary(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* CollectionsLibrary();
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 3840 matching lines...) Expand 10 before | Expand all | Expand 10 after
5770 if (this->CharAt(i) != str.CharAt(begin_index + i)) { 5772 if (this->CharAt(i) != str.CharAt(begin_index + i)) {
5771 return false; 5773 return false;
5772 } 5774 }
5773 } 5775 }
5774 return true; 5776 return true;
5775 } 5777 }
5776 5778
5777 } // namespace dart 5779 } // namespace dart
5778 5780
5779 #endif // VM_OBJECT_H_ 5781 #endif // VM_OBJECT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698