| 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 #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 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 484 | 484 |
| 485 // Called to initialize objects required by the vm but which invoke | 485 // Called to initialize objects required by the vm but which invoke |
| 486 // dart code. If an error occurs the error object is returned otherwise | 486 // dart code. If an error occurs the error object is returned otherwise |
| 487 // a null object is returned. | 487 // a null object is returned. |
| 488 RawError* PreallocateObjects(); | 488 RawError* PreallocateObjects(); |
| 489 | 489 |
| 490 void InitKnownObjects(); | 490 void InitKnownObjects(); |
| 491 | 491 |
| 492 static void Init(Isolate* isolate); | 492 static void Init(Isolate* isolate); |
| 493 | 493 |
| 494 #ifndef PRODUCT |
| 494 void PrintToJSONObject(JSONObject* jsobj); | 495 void PrintToJSONObject(JSONObject* jsobj); |
| 496 #endif |
| 495 | 497 |
| 496 private: | 498 private: |
| 497 ObjectStore(); | 499 ObjectStore(); |
| 498 | 500 |
| 499 #define OBJECT_STORE_FIELD_LIST(V) \ | 501 #define OBJECT_STORE_FIELD_LIST(V) \ |
| 500 V(RawClass*, object_class_) \ | 502 V(RawClass*, object_class_) \ |
| 501 V(RawType*, object_type_) \ | 503 V(RawType*, object_type_) \ |
| 502 V(RawClass*, null_class_) \ | 504 V(RawClass*, null_class_) \ |
| 503 V(RawType*, null_type_) \ | 505 V(RawType*, null_type_) \ |
| 504 V(RawType*, function_type_) \ | 506 V(RawType*, function_type_) \ |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 606 | 608 |
| 607 friend class Serializer; | 609 friend class Serializer; |
| 608 friend class Deserializer; | 610 friend class Deserializer; |
| 609 | 611 |
| 610 DISALLOW_COPY_AND_ASSIGN(ObjectStore); | 612 DISALLOW_COPY_AND_ASSIGN(ObjectStore); |
| 611 }; | 613 }; |
| 612 | 614 |
| 613 } // namespace dart | 615 } // namespace dart |
| 614 | 616 |
| 615 #endif // VM_OBJECT_STORE_H_ | 617 #endif // VM_OBJECT_STORE_H_ |
| OLD | NEW |