%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream
// Copyright 2017 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef V8_HEAP_FACTORY_INL_H_ #define V8_HEAP_FACTORY_INL_H_ #include "src/heap/factory.h" // Clients of this interface shouldn't depend on lots of heap internals. // Do not include anything from src/heap here! #include "src/execution/isolate-inl.h" #include "src/handles/handles-inl.h" #include "src/heap/factory-base-inl.h" #include "src/objects/feedback-cell.h" #include "src/objects/heap-number-inl.h" #include "src/objects/objects-inl.h" #include "src/objects/oddball.h" #include "src/objects/string-inl.h" #include "src/objects/string-table-inl.h" #include "src/strings/string-hasher.h" namespace v8 { namespace internal { #define ROOT_ACCESSOR(Type, name, CamelName) \ Handle<Type> Factory::name() { \ return Handle<Type>(&isolate()->roots_table()[RootIndex::k##CamelName]); \ } ROOT_LIST(ROOT_ACCESSOR) #undef ROOT_ACCESSOR Handle<String> Factory::InternalizeString(Handle<String> string) { if (string->IsInternalizedString()) return string; return isolate()->string_table()->LookupString(isolate(), string); } Handle<Name> Factory::InternalizeName(Handle<Name> name) { if (name->IsUniqueName()) return name; return isolate()->string_table()->LookupString(isolate(), Handle<String>::cast(name)); } Handle<String> Factory::NewSubString(Handle<String> str, int begin, int end) { if (begin == 0 && end == str->length()) return str; return NewProperSubString(str, begin, end); } Handle<JSArray> Factory::NewJSArrayWithElements(Handle<FixedArrayBase> elements, ElementsKind elements_kind, AllocationType allocation) { return NewJSArrayWithElements(elements, elements_kind, elements->length(), 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); } ReadOnlyRoots Factory::read_only_roots() const { return ReadOnlyRoots(isolate()); } } // namespace internal } // namespace v8 #endif // V8_HEAP_FACTORY_INL_H_