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

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

Issue 12318031: Move json, uri, utf and crypto libraries into the VM. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 10 months 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
« no previous file with comments | « runtime/vm/bootstrap_nocorelib.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2099 matching lines...) Expand 10 before | Expand all | Expand 10 after
2110 } 2110 }
2111 2111
2112 static RawLibrary* LookupLibrary(const String& url); 2112 static RawLibrary* LookupLibrary(const String& url);
2113 static RawLibrary* GetLibrary(intptr_t index); 2113 static RawLibrary* GetLibrary(intptr_t index);
2114 static bool IsKeyUsed(intptr_t key); 2114 static bool IsKeyUsed(intptr_t key);
2115 2115
2116 static void InitASyncLibrary(Isolate* isolate); 2116 static void InitASyncLibrary(Isolate* isolate);
2117 static void InitCoreLibrary(Isolate* isolate); 2117 static void InitCoreLibrary(Isolate* isolate);
2118 static void InitCollectionLibrary(Isolate* isolate); 2118 static void InitCollectionLibrary(Isolate* isolate);
2119 static void InitCollectionDevLibrary(Isolate* isolate); 2119 static void InitCollectionDevLibrary(Isolate* isolate);
2120 static void InitCryptoLibrary(Isolate* isolate);
2121 static void InitIsolateLibrary(Isolate* isolate);
2122 static void InitJsonLibrary(Isolate* isolate);
2120 static void InitMathLibrary(Isolate* isolate); 2123 static void InitMathLibrary(Isolate* isolate);
2121 static void InitIsolateLibrary(Isolate* isolate);
2122 static void InitMirrorsLibrary(Isolate* isolate); 2124 static void InitMirrorsLibrary(Isolate* isolate);
2125 static void InitNativeWrappersLibrary(Isolate* isolate);
2123 static void InitScalarlistLibrary(Isolate* isolate); 2126 static void InitScalarlistLibrary(Isolate* isolate);
2124 static void InitNativeWrappersLibrary(Isolate* isolate); 2127 static void InitUriLibrary(Isolate* isolate);
2128 static void InitUtfLibrary(Isolate* isolate);
2125 2129
2126 static RawLibrary* ASyncLibrary(); 2130 static RawLibrary* ASyncLibrary();
2127 static RawLibrary* CoreLibrary(); 2131 static RawLibrary* CoreLibrary();
2128 static RawLibrary* CollectionLibrary(); 2132 static RawLibrary* CollectionLibrary();
2129 static RawLibrary* CollectionDevLibrary(); 2133 static RawLibrary* CollectionDevLibrary();
2134 static RawLibrary* CryptoLibrary();
2135 static RawLibrary* IsolateLibrary();
2136 static RawLibrary* JsonLibrary();
2130 static RawLibrary* MathLibrary(); 2137 static RawLibrary* MathLibrary();
2131 static RawLibrary* IsolateLibrary();
2132 static RawLibrary* MirrorsLibrary(); 2138 static RawLibrary* MirrorsLibrary();
2139 static RawLibrary* NativeWrappersLibrary();
2133 static RawLibrary* ScalarlistLibrary(); 2140 static RawLibrary* ScalarlistLibrary();
2134 static RawLibrary* NativeWrappersLibrary(); 2141 static RawLibrary* UriLibrary();
2142 static RawLibrary* UtfLibrary();
2135 2143
2136 // Eagerly compile all classes and functions in the library. 2144 // Eagerly compile all classes and functions in the library.
2137 static RawError* CompileAll(); 2145 static RawError* CompileAll();
2138 2146
2139 private: 2147 private:
2140 static const int kInitialImportsCapacity = 4; 2148 static const int kInitialImportsCapacity = 4;
2141 static const int kImportsCapacityIncrement = 8; 2149 static const int kImportsCapacityIncrement = 8;
2142 static RawLibrary* New(); 2150 static RawLibrary* New();
2143 2151
2144 void set_num_imports(intptr_t value) const { 2152 void set_num_imports(intptr_t value) const {
(...skipping 4219 matching lines...) Expand 10 before | Expand all | Expand 10 after
6364 6372
6365 6373
6366 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 6374 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
6367 intptr_t index) { 6375 intptr_t index) {
6368 return array.At((index * kEntryLength) + kTargetFunctionIndex); 6376 return array.At((index * kEntryLength) + kTargetFunctionIndex);
6369 } 6377 }
6370 6378
6371 } // namespace dart 6379 } // namespace dart
6372 6380
6373 #endif // VM_OBJECT_H_ 6381 #endif // VM_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/bootstrap_nocorelib.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698