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

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
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 2098 matching lines...) Expand 10 before | Expand all | Expand 10 after
2109 } 2109 }
2110 2110
2111 static RawLibrary* LookupLibrary(const String& url); 2111 static RawLibrary* LookupLibrary(const String& url);
2112 static RawLibrary* GetLibrary(intptr_t index); 2112 static RawLibrary* GetLibrary(intptr_t index);
2113 static bool IsKeyUsed(intptr_t key); 2113 static bool IsKeyUsed(intptr_t key);
2114 2114
2115 static void InitASyncLibrary(Isolate* isolate); 2115 static void InitASyncLibrary(Isolate* isolate);
2116 static void InitCoreLibrary(Isolate* isolate); 2116 static void InitCoreLibrary(Isolate* isolate);
2117 static void InitCollectionLibrary(Isolate* isolate); 2117 static void InitCollectionLibrary(Isolate* isolate);
2118 static void InitCollectionDevLibrary(Isolate* isolate); 2118 static void InitCollectionDevLibrary(Isolate* isolate);
2119 static void InitCryptoLibrary(Isolate* isolate);
2120 static void InitIsolateLibrary(Isolate* isolate);
2121 static void InitJsonLibrary(Isolate* isolate);
2119 static void InitMathLibrary(Isolate* isolate); 2122 static void InitMathLibrary(Isolate* isolate);
2120 static void InitIsolateLibrary(Isolate* isolate);
2121 static void InitMirrorsLibrary(Isolate* isolate); 2123 static void InitMirrorsLibrary(Isolate* isolate);
2124 static void InitNativeWrappersLibrary(Isolate* isolate);
2122 static void InitScalarlistLibrary(Isolate* isolate); 2125 static void InitScalarlistLibrary(Isolate* isolate);
2123 static void InitNativeWrappersLibrary(Isolate* isolate); 2126 static void InitUriLibrary(Isolate* isolate);
2127 static void InitUtfLibrary(Isolate* isolate);
2124 2128
2125 static RawLibrary* ASyncLibrary(); 2129 static RawLibrary* ASyncLibrary();
2126 static RawLibrary* CoreLibrary(); 2130 static RawLibrary* CoreLibrary();
2127 static RawLibrary* CollectionLibrary(); 2131 static RawLibrary* CollectionLibrary();
2128 static RawLibrary* CollectionDevLibrary(); 2132 static RawLibrary* CollectionDevLibrary();
2133 static RawLibrary* CryptoLibrary();
2134 static RawLibrary* IsolateLibrary();
2135 static RawLibrary* JsonLibrary();
2129 static RawLibrary* MathLibrary(); 2136 static RawLibrary* MathLibrary();
2130 static RawLibrary* IsolateLibrary();
2131 static RawLibrary* MirrorsLibrary(); 2137 static RawLibrary* MirrorsLibrary();
2138 static RawLibrary* NativeWrappersLibrary();
2132 static RawLibrary* ScalarlistLibrary(); 2139 static RawLibrary* ScalarlistLibrary();
2133 static RawLibrary* NativeWrappersLibrary(); 2140 static RawLibrary* UriLibrary();
2141 static RawLibrary* UtfLibrary();
2134 2142
2135 // Eagerly compile all classes and functions in the library. 2143 // Eagerly compile all classes and functions in the library.
2136 static RawError* CompileAll(); 2144 static RawError* CompileAll();
2137 2145
2138 private: 2146 private:
2139 static const int kInitialImportsCapacity = 4; 2147 static const int kInitialImportsCapacity = 4;
2140 static const int kImportsCapacityIncrement = 8; 2148 static const int kImportsCapacityIncrement = 8;
2141 static RawLibrary* New(); 2149 static RawLibrary* New();
2142 2150
2143 void set_num_imports(intptr_t value) const { 2151 void set_num_imports(intptr_t value) const {
(...skipping 4219 matching lines...) Expand 10 before | Expand all | Expand 10 after
6363 6371
6364 6372
6365 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 6373 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
6366 intptr_t index) { 6374 intptr_t index) {
6367 return array.At((index * kEntryLength) + kTargetFunctionIndex); 6375 return array.At((index * kEntryLength) + kTargetFunctionIndex);
6368 } 6376 }
6369 6377
6370 } // namespace dart 6378 } // namespace dart
6371 6379
6372 #endif // VM_OBJECT_H_ 6380 #endif // VM_OBJECT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698