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

Side by Side Diff: vm/object_store.h

Issue 8537023: Implement automatic loading of dart:core_native_fields library (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: '' Created 9 years, 1 month 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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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_STORE_H_ 5 #ifndef VM_OBJECT_STORE_H_
6 #define VM_OBJECT_STORE_H_ 6 #define VM_OBJECT_STORE_H_
7 7
8 #include "vm/object.h" 8 #include "vm/object.h"
9 9
10 namespace dart { 10 namespace dart {
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 RawLibrary* core_library() const { return core_library_; } 184 RawLibrary* core_library() const { return core_library_; }
185 void set_core_library(const Library& value) { 185 void set_core_library(const Library& value) {
186 core_library_ = value.raw(); 186 core_library_ = value.raw();
187 } 187 }
188 188
189 RawLibrary* core_impl_library() const { return core_impl_library_; } 189 RawLibrary* core_impl_library() const { return core_impl_library_; }
190 void set_core_impl_library(const Library& value) { 190 void set_core_impl_library(const Library& value) {
191 core_impl_library_ = value.raw(); 191 core_impl_library_ = value.raw();
192 } 192 }
193 193
194 RawLibrary* native_wrappers_library() const {
195 return native_wrappers_library_;
196 }
197 void set_native_wrappers_library(const Library& value) {
198 native_wrappers_library_ = value.raw();
199 }
200
194 RawLibrary* root_library() const { return root_library_; } 201 RawLibrary* root_library() const { return root_library_; }
195 void set_root_library(const Library& value) { 202 void set_root_library(const Library& value) {
196 root_library_ = value.raw(); 203 root_library_ = value.raw();
197 } 204 }
198 205
199 // Returns head of list of registered libraries. 206 // Returns head of list of registered libraries.
200 RawLibrary* registered_libraries() const { return registered_libraries_; } 207 RawLibrary* registered_libraries() const { return registered_libraries_; }
201 void set_registered_libraries(const Library& value) { 208 void set_registered_libraries(const Library& value) {
202 registered_libraries_ = value.raw(); 209 registered_libraries_ = value.raw();
203 } 210 }
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 RawClass* immutable_array_class_; 273 RawClass* immutable_array_class_;
267 RawClass* unhandled_exception_class_; 274 RawClass* unhandled_exception_class_;
268 RawClass* stacktrace_class_; 275 RawClass* stacktrace_class_;
269 RawClass* jsregexp_class_; 276 RawClass* jsregexp_class_;
270 RawBool* true_value_; 277 RawBool* true_value_;
271 RawBool* false_value_; 278 RawBool* false_value_;
272 RawArray* empty_array_; 279 RawArray* empty_array_;
273 RawArray* symbol_table_; 280 RawArray* symbol_table_;
274 RawLibrary* core_library_; 281 RawLibrary* core_library_;
275 RawLibrary* core_impl_library_; 282 RawLibrary* core_impl_library_;
283 RawLibrary* native_wrappers_library_;
276 RawLibrary* root_library_; 284 RawLibrary* root_library_;
277 RawLibrary* registered_libraries_; 285 RawLibrary* registered_libraries_;
278 RawArray* pending_classes_; 286 RawArray* pending_classes_;
279 RawString* sticky_error_; 287 RawString* sticky_error_;
280 RawContext* empty_context_; 288 RawContext* empty_context_;
281 RawObject** to() { return reinterpret_cast<RawObject**>(&empty_context_); } 289 RawObject** to() { return reinterpret_cast<RawObject**>(&empty_context_); }
282 290
283 friend class SnapshotReader; 291 friend class SnapshotReader;
284 292
285 DISALLOW_COPY_AND_ASSIGN(ObjectStore); 293 DISALLOW_COPY_AND_ASSIGN(ObjectStore);
286 }; 294 };
287 295
288 } // namespace dart 296 } // namespace dart
289 297
290 #endif // VM_OBJECT_STORE_H_ 298 #endif // VM_OBJECT_STORE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698