| 196 | } |
| 197 | |
| 198 | ArgConverter::TypeLongOperationsCache* ArgConverter::GetTypeLongCache(v8::Isolate* isolate) { |
| 199 | TypeLongOperationsCache* cache; |
| 200 | auto itFound = s_type_long_operations_cache.find(isolate); |
| 201 | if (itFound == s_type_long_operations_cache.end()) { |
| 202 | cache = new TypeLongOperationsCache; |
| 203 | s_type_long_operations_cache.emplace(isolate, cache); |
| 204 | } else { |
| 205 | cache = itFound->second; |
| 206 | } |
| 207 | |
| 208 | return cache; |
| 209 | } |
| 210 | |
| 211 | |
| 212 | u16string ArgConverter::ConvertToUtf16String(const v8::Local<String>& s) { |