| Index: runtime/vm/class_table.cc
|
| ===================================================================
|
| --- runtime/vm/class_table.cc (revision 8348)
|
| +++ runtime/vm/class_table.cc (working copy)
|
| @@ -47,6 +47,14 @@
|
| ASSERT(table_[index] == 0);
|
| ASSERT(index < capacity_);
|
| table_[index] = cls.raw();
|
| + // Add the vtable for this predefined class into the static vtable registry
|
| + // if it has not been setup yet.
|
| + cpp_vtable cls_vtable = cls.handle_vtable();
|
| + cpp_vtable table_entry = Object::builtin_vtables_[index];
|
| + ASSERT((table_entry == 0) || (table_entry == cls_vtable));
|
| + if (table_entry == 0) {
|
| + Object::builtin_vtables_[index] = cls_vtable;
|
| + }
|
| } else {
|
| if (top_ == capacity_) {
|
| // Grow the capacity of the class table.
|
|
|