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

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

Issue 12321082: - Properly load the core libraries as libraries and not as scripts. (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 2095 matching lines...) Expand 10 before | Expand all | Expand 10 after
2106 } 2106 }
2107 2107
2108 bool IsCoreLibrary() const { 2108 bool IsCoreLibrary() const {
2109 return raw() == CoreLibrary(); 2109 return raw() == CoreLibrary();
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); 2120 static void InitCryptoLibrary(Isolate* isolate);
2121 static void InitIsolateLibrary(Isolate* isolate); 2121 static void InitIsolateLibrary(Isolate* isolate);
2122 static void InitJsonLibrary(Isolate* isolate); 2122 static void InitJsonLibrary(Isolate* isolate);
2123 static void InitMathLibrary(Isolate* isolate); 2123 static void InitMathLibrary(Isolate* isolate);
2124 static void InitMirrorsLibrary(Isolate* isolate); 2124 static void InitMirrorsLibrary(Isolate* isolate);
2125 static void InitNativeWrappersLibrary(Isolate* isolate); 2125 static void InitNativeWrappersLibrary(Isolate* isolate);
2126 static void InitScalarlistLibrary(Isolate* isolate); 2126 static void InitScalarlistLibrary(Isolate* isolate);
2127 static void InitUriLibrary(Isolate* isolate); 2127 static void InitUriLibrary(Isolate* isolate);
2128 static void InitUtfLibrary(Isolate* isolate); 2128 static void InitUtfLibrary(Isolate* isolate);
2129 2129
2130 static RawLibrary* ASyncLibrary(); 2130 static RawLibrary* AsyncLibrary();
2131 static RawLibrary* CoreLibrary(); 2131 static RawLibrary* CoreLibrary();
2132 static RawLibrary* CollectionLibrary(); 2132 static RawLibrary* CollectionLibrary();
2133 static RawLibrary* CollectionDevLibrary(); 2133 static RawLibrary* CollectionDevLibrary();
2134 static RawLibrary* CryptoLibrary(); 2134 static RawLibrary* CryptoLibrary();
2135 static RawLibrary* IsolateLibrary(); 2135 static RawLibrary* IsolateLibrary();
2136 static RawLibrary* JsonLibrary(); 2136 static RawLibrary* JsonLibrary();
2137 static RawLibrary* MathLibrary(); 2137 static RawLibrary* MathLibrary();
2138 static RawLibrary* MirrorsLibrary(); 2138 static RawLibrary* MirrorsLibrary();
2139 static RawLibrary* NativeWrappersLibrary(); 2139 static RawLibrary* NativeWrappersLibrary();
2140 static RawLibrary* ScalarlistLibrary(); 2140 static RawLibrary* ScalarlistLibrary();
(...skipping 4231 matching lines...) Expand 10 before | Expand all | Expand 10 after
6372 6372
6373 6373
6374 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 6374 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
6375 intptr_t index) { 6375 intptr_t index) {
6376 return array.At((index * kEntryLength) + kTargetFunctionIndex); 6376 return array.At((index * kEntryLength) + kTargetFunctionIndex);
6377 } 6377 }
6378 6378
6379 } // namespace dart 6379 } // namespace dart
6380 6380
6381 #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') | runtime/vm/object.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698