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

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

Issue 12313088: First step towards implementing dart:typeddata library. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 9 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 #include "vm/object.h" 5 #include "vm/object.h"
6 6
7 #include "include/dart_api.h" 7 #include "include/dart_api.h"
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/assembler.h" 9 #include "vm/assembler.h"
10 #include "vm/bigint_operations.h" 10 #include "vm/bigint_operations.h"
(...skipping 1036 matching lines...) Expand 10 before | Expand all | Expand 10 after
1047 1047
1048 INIT_LIBRARY(Async, async, true); 1048 INIT_LIBRARY(Async, async, true);
1049 INIT_LIBRARY(Collection, collection, false); 1049 INIT_LIBRARY(Collection, collection, false);
1050 INIT_LIBRARY(CollectionDev, collection_dev, false); 1050 INIT_LIBRARY(CollectionDev, collection_dev, false);
1051 INIT_LIBRARY(Crypto, crypto, false); 1051 INIT_LIBRARY(Crypto, crypto, false);
1052 INIT_LIBRARY(Isolate, isolate, true); 1052 INIT_LIBRARY(Isolate, isolate, true);
1053 INIT_LIBRARY(Json, json, true); 1053 INIT_LIBRARY(Json, json, true);
1054 INIT_LIBRARY(Math, math, true); 1054 INIT_LIBRARY(Math, math, true);
1055 INIT_LIBRARY(Mirrors, mirrors, true); 1055 INIT_LIBRARY(Mirrors, mirrors, true);
1056 INIT_LIBRARY(Scalarlist, scalarlist, true); 1056 INIT_LIBRARY(Scalarlist, scalarlist, true);
1057 INIT_LIBRARY(TypedData, typeddata, true);
1057 INIT_LIBRARY(Utf, utf, false); 1058 INIT_LIBRARY(Utf, utf, false);
1058 INIT_LIBRARY(Uri, uri, false); 1059 INIT_LIBRARY(Uri, uri, false);
1059 1060
1060 Bootstrap::SetupNativeResolver(); 1061 Bootstrap::SetupNativeResolver();
1061 1062
1062 // Remove the Object superclass cycle by setting the super type to null (not 1063 // Remove the Object superclass cycle by setting the super type to null (not
1063 // to the type of null). 1064 // to the type of null).
1064 cls = object_store->object_class(); 1065 cls = object_store->object_class();
1065 cls.set_super_type(Type::Handle()); 1066 cls.set_super_type(Type::Handle());
1066 1067
(...skipping 5424 matching lines...) Expand 10 before | Expand all | Expand 10 after
6491 RawLibrary* Library::NativeWrappersLibrary() { 6492 RawLibrary* Library::NativeWrappersLibrary() {
6492 return Isolate::Current()->object_store()->native_wrappers_library(); 6493 return Isolate::Current()->object_store()->native_wrappers_library();
6493 } 6494 }
6494 6495
6495 6496
6496 RawLibrary* Library::ScalarlistLibrary() { 6497 RawLibrary* Library::ScalarlistLibrary() {
6497 return Isolate::Current()->object_store()->scalarlist_library(); 6498 return Isolate::Current()->object_store()->scalarlist_library();
6498 } 6499 }
6499 6500
6500 6501
6502 RawLibrary* Library::TypedDataLibrary() {
6503 return Isolate::Current()->object_store()->typeddata_library();
6504 }
6505
6506
6501 RawLibrary* Library::UriLibrary() { 6507 RawLibrary* Library::UriLibrary() {
6502 return Isolate::Current()->object_store()->uri_library(); 6508 return Isolate::Current()->object_store()->uri_library();
6503 } 6509 }
6504 6510
6505 6511
6506 RawLibrary* Library::UtfLibrary() { 6512 RawLibrary* Library::UtfLibrary() {
6507 return Isolate::Current()->object_store()->utf_library(); 6513 return Isolate::Current()->object_store()->utf_library();
6508 } 6514 }
6509 6515
6510 6516
(...skipping 6680 matching lines...) Expand 10 before | Expand all | Expand 10 after
13191 } 13197 }
13192 return result.raw(); 13198 return result.raw();
13193 } 13199 }
13194 13200
13195 13201
13196 const char* WeakProperty::ToCString() const { 13202 const char* WeakProperty::ToCString() const {
13197 return "_WeakProperty"; 13203 return "_WeakProperty";
13198 } 13204 }
13199 13205
13200 } // namespace dart 13206 } // namespace dart
OLDNEW
« runtime/lib/typeddata.dart ('K') | « runtime/vm/object.h ('k') | runtime/vm/object_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698