Adds a pair to the bind map, expanding the capacity if necessary.
| 48 | |
| 49 | // Adds a pair to the bind map, expanding the capacity if necessary. |
| 50 | void Add(v8::Isolate* isolate, const char* name, int index) { |
| 51 | assert(name != NULL); |
| 52 | if (capacity == length) Grow(isolate); |
| 53 | new (pairs + length++) Pair(isolate, name, index); |
| 54 | } |
| 55 | |
| 56 | private: |
| 57 |