| OLD | NEW |
| 1 // Copyright (c) 2014, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dartino 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.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
| 4 | 4 |
| 5 #include "src/vm/object_map.h" | 5 #include "src/vm/object_map.h" |
| 6 | 6 |
| 7 namespace fletch { | 7 namespace fletch { |
| 8 | 8 |
| 9 ObjectMap::ObjectMap(int capacity) { | 9 ObjectMap::ObjectMap(int capacity) { |
| 10 table_by_id_ = NewTable(Utils::Maximum(capacity, 8)); | 10 table_by_id_ = NewTable(Utils::Maximum(capacity, 8)); |
| 11 size_ = 0; | 11 size_ = 0; |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 while (current != NULL) { | 222 while (current != NULL) { |
| 223 Bucket* next = current->next; | 223 Bucket* next = current->next; |
| 224 delete current; | 224 delete current; |
| 225 current = next; | 225 current = next; |
| 226 } | 226 } |
| 227 } | 227 } |
| 228 table.Delete(); | 228 table.Delete(); |
| 229 } | 229 } |
| 230 | 230 |
| 231 } // namespace fletch | 231 } // namespace fletch |
| OLD | NEW |