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

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 1035 matching lines...) Expand 10 before | Expand all | Expand 10 after
1046 1046
1047 INIT_LIBRARY(Async, async, true); 1047 INIT_LIBRARY(Async, async, true);
1048 INIT_LIBRARY(Collection, collection, false); 1048 INIT_LIBRARY(Collection, collection, false);
1049 INIT_LIBRARY(CollectionDev, collection_dev, false); 1049 INIT_LIBRARY(CollectionDev, collection_dev, false);
1050 INIT_LIBRARY(Crypto, crypto, false); 1050 INIT_LIBRARY(Crypto, crypto, false);
1051 INIT_LIBRARY(Isolate, isolate, true); 1051 INIT_LIBRARY(Isolate, isolate, true);
1052 INIT_LIBRARY(Json, json, true); 1052 INIT_LIBRARY(Json, json, true);
1053 INIT_LIBRARY(Math, math, true); 1053 INIT_LIBRARY(Math, math, true);
1054 INIT_LIBRARY(Mirrors, mirrors, true); 1054 INIT_LIBRARY(Mirrors, mirrors, true);
1055 INIT_LIBRARY(Scalarlist, scalarlist, true); 1055 INIT_LIBRARY(Scalarlist, scalarlist, true);
1056 INIT_LIBRARY(TypedData, typeddata, true);
1056 INIT_LIBRARY(Utf, utf, false); 1057 INIT_LIBRARY(Utf, utf, false);
1057 INIT_LIBRARY(Uri, uri, false); 1058 INIT_LIBRARY(Uri, uri, false);
1058 1059
1059 Bootstrap::SetupNativeResolver(); 1060 Bootstrap::SetupNativeResolver();
1060 1061
1061 // Remove the Object superclass cycle by setting the super type to null (not 1062 // Remove the Object superclass cycle by setting the super type to null (not
1062 // to the type of null). 1063 // to the type of null).
1063 cls = object_store->object_class(); 1064 cls = object_store->object_class();
1064 cls.set_super_type(Type::Handle()); 1065 cls.set_super_type(Type::Handle());
1065 1066
(...skipping 5424 matching lines...) Expand 10 before | Expand all | Expand 10 after
6490 RawLibrary* Library::NativeWrappersLibrary() { 6491 RawLibrary* Library::NativeWrappersLibrary() {
6491 return Isolate::Current()->object_store()->native_wrappers_library(); 6492 return Isolate::Current()->object_store()->native_wrappers_library();
6492 } 6493 }
6493 6494
6494 6495
6495 RawLibrary* Library::ScalarlistLibrary() { 6496 RawLibrary* Library::ScalarlistLibrary() {
6496 return Isolate::Current()->object_store()->scalarlist_library(); 6497 return Isolate::Current()->object_store()->scalarlist_library();
6497 } 6498 }
6498 6499
6499 6500
6501 RawLibrary* Library::TypedDataLibrary() {
6502 return Isolate::Current()->object_store()->typeddata_library();
6503 }
6504
6505
6500 RawLibrary* Library::UriLibrary() { 6506 RawLibrary* Library::UriLibrary() {
6501 return Isolate::Current()->object_store()->uri_library(); 6507 return Isolate::Current()->object_store()->uri_library();
6502 } 6508 }
6503 6509
6504 6510
6505 RawLibrary* Library::UtfLibrary() { 6511 RawLibrary* Library::UtfLibrary() {
6506 return Isolate::Current()->object_store()->utf_library(); 6512 return Isolate::Current()->object_store()->utf_library();
6507 } 6513 }
6508 6514
6509 6515
(...skipping 6596 matching lines...) Expand 10 before | Expand all | Expand 10 after
13106 } 13112 }
13107 return result.raw(); 13113 return result.raw();
13108 } 13114 }
13109 13115
13110 13116
13111 const char* WeakProperty::ToCString() const { 13117 const char* WeakProperty::ToCString() const {
13112 return "_WeakProperty"; 13118 return "_WeakProperty";
13113 } 13119 }
13114 13120
13115 } // namespace dart 13121 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698