OLD | NEW |
---|---|
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 6232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
6243 Library::Handle(Library::CollectionDevLibrary()); | 6243 Library::Handle(Library::CollectionDevLibrary()); |
6244 const Namespace& collection_dev_ns = Namespace::Handle( | 6244 const Namespace& collection_dev_ns = Namespace::Handle( |
6245 Namespace::New(collection_dev_lib, Array::Handle(), Array::Handle())); | 6245 Namespace::New(collection_dev_lib, Array::Handle(), Array::Handle())); |
6246 lib.AddImport(math_ns); | 6246 lib.AddImport(math_ns); |
6247 lib.AddImport(collection_dev_ns); | 6247 lib.AddImport(collection_dev_ns); |
6248 isolate->object_store()->set_collection_library(lib); | 6248 isolate->object_store()->set_collection_library(lib); |
6249 } | 6249 } |
6250 | 6250 |
6251 | 6251 |
6252 void Library::InitCollectionDevLibrary(Isolate* isolate) { | 6252 void Library::InitCollectionDevLibrary(Isolate* isolate) { |
6253 const String& url = String::Handle(Symbols::New("dart:collection-dev")); | 6253 const String& url = String::Handle(Symbols::New("dart:_collection-dev")); |
Ivan Posva
2013/02/06 00:50:54
https://codereview.chromium.org/12220027 properly
| |
6254 const Library& lib = Library::Handle(Library::NewLibraryHelper(url, true)); | 6254 const Library& lib = Library::Handle(Library::NewLibraryHelper(url, true)); |
6255 lib.Register(); | |
6256 isolate->object_store()->set_collection_dev_library(lib); | 6255 isolate->object_store()->set_collection_dev_library(lib); |
6257 } | 6256 } |
6258 | 6257 |
6259 | 6258 |
6260 void Library::InitMathLibrary(Isolate* isolate) { | 6259 void Library::InitMathLibrary(Isolate* isolate) { |
6261 const String& url = String::Handle(Symbols::New("dart:math")); | 6260 const String& url = String::Handle(Symbols::New("dart:math")); |
6262 const Library& lib = Library::Handle(Library::NewLibraryHelper(url, true)); | 6261 const Library& lib = Library::Handle(Library::NewLibraryHelper(url, true)); |
6263 lib.Register(); | 6262 lib.Register(); |
6264 isolate->object_store()->set_math_library(lib); | 6263 isolate->object_store()->set_math_library(lib); |
6265 } | 6264 } |
(...skipping 6539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
12805 } | 12804 } |
12806 return result.raw(); | 12805 return result.raw(); |
12807 } | 12806 } |
12808 | 12807 |
12809 | 12808 |
12810 const char* WeakProperty::ToCString() const { | 12809 const char* WeakProperty::ToCString() const { |
12811 return "_WeakProperty"; | 12810 return "_WeakProperty"; |
12812 } | 12811 } |
12813 | 12812 |
12814 } // namespace dart | 12813 } // namespace dart |
OLD | NEW |