diff options
Diffstat (limited to 'deps/v8/src/heap/factory-inl.h')
-rw-r--r-- | deps/v8/src/heap/factory-inl.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/deps/v8/src/heap/factory-inl.h b/deps/v8/src/heap/factory-inl.h index 32237da877..9aa705047c 100644 --- a/deps/v8/src/heap/factory-inl.h +++ b/deps/v8/src/heap/factory-inl.h @@ -104,6 +104,15 @@ Handle<JSArray> Factory::NewJSArrayWithElements(Handle<FixedArrayBase> elements, allocation); } +Handle<JSObject> Factory::NewFastOrSlowJSObjectFromMap( + Handle<Map> map, int number_of_slow_properties, AllocationType allocation, + Handle<AllocationSite> allocation_site) { + return map->is_dictionary_map() + ? NewSlowJSObjectFromMap(map, number_of_slow_properties, + allocation, allocation_site) + : NewJSObjectFromMap(map, allocation, allocation_site); +} + Handle<Object> Factory::NewURIError() { return NewError(isolate()->uri_error_function(), MessageTemplate::kURIMalformed); |