| Index: runtime/vm/hash_table.h
|
| diff --git a/runtime/vm/hash_table.h b/runtime/vm/hash_table.h
|
| index 592cf07c886b29c6b3475f2a8ee4c623f67342ca..2334bbc5ca1b803c07649b8e2ed4dddc867131cd 100644
|
| --- a/runtime/vm/hash_table.h
|
| +++ b/runtime/vm/hash_table.h
|
| @@ -435,6 +435,13 @@ class HashTables : public AllStatic {
|
| return table.Release().raw();
|
| }
|
|
|
| + template<typename Table>
|
| + static RawArray* New(const Array& array) {
|
| + Table table(array.raw());
|
| + table.Initialize();
|
| + return table.Release().raw();
|
| + }
|
| +
|
| // Clears 'to' and inserts all elements from 'from', in iteration order.
|
| // The tables must have the same user payload size.
|
| template<typename From, typename To>
|
|
|