| Index: vm/object.h
|
| ===================================================================
|
| --- vm/object.h (revision 10528)
|
| +++ vm/object.h (working copy)
|
| @@ -235,6 +235,7 @@
|
| }
|
|
|
| static RawObject* null() { return null_; }
|
| + static RawArray* empty_array() { return empty_array_; }
|
|
|
| // The sentinel is a value that cannot be produced by Dart code.
|
| // It can be used to mark special values, for example to distinguish
|
| @@ -284,8 +285,6 @@
|
| static RawClass* icdata_class() { return icdata_class_; }
|
| static RawClass* subtypetestcache_class() { return subtypetestcache_class_; }
|
|
|
| - static const char* GetSingletonClassName(intptr_t class_id);
|
| -
|
| static RawClass* CreateAndRegisterInterface(const char* cname,
|
| const Script& script,
|
| const Library& lib);
|
| @@ -302,6 +301,7 @@
|
| static RawError* Init(Isolate* isolate);
|
| static void InitFromSnapshot(Isolate* isolate);
|
| static void InitOnce();
|
| + static void RegisterSingletonClassNames();
|
|
|
| static intptr_t InstanceSize() {
|
| return RoundedAllocationSize(sizeof(RawObject));
|
| @@ -376,6 +376,7 @@
|
| // The static values below are singletons shared between the different
|
| // isolates. They are all allocated in the non-GC'd Dart::vm_isolate_.
|
| static RawObject* null_;
|
| + static RawArray* empty_array_;
|
| static RawInstance* sentinel_;
|
| static RawInstance* transition_sentinel_;
|
|
|
| @@ -687,6 +688,9 @@
|
|
|
| void Finalize() const;
|
|
|
| + // Initialize the functions cache array.
|
| + void InitFunctionsCache() const;
|
| +
|
| // Allocate a class used for VM internal objects.
|
| template <class FakeObject> static RawClass* New();
|
|
|
| @@ -3928,9 +3932,6 @@
|
| int new_length,
|
| Heap::Space space = Heap::kNew);
|
|
|
| - // Returns the preallocated empty array, used to initialize array fields.
|
| - static RawArray* Empty();
|
| -
|
| // Return an Array object that contains all the elements currently present
|
| // in the specified Growable Object Array. This is done by first truncating
|
| // the Growable Object Array's backing array to the currently used size and
|
|
|