History

Move some basic offset functions to header files for inlining ease Replace enum_pointer_field functions with custom implementations - GC now has custom implementation - other implementations use template<> version Fix misuse of shared_ptr<type_descriptor_t> in various built-in types Observed 5 - 8 % improvement in GC for compiler scenario.

arr committed 9 years ago

Commit cd2748b1 parent 3dd1c8210 files · +115 −160Browse files

Showing the changes to src/vm/array.cpp (1 of 10 files). Show all

Unified · Split

src/vm/array.cpp+1−1
@@ -28,7 +28,7 @@ std::shared_ptr<const type_descriptor_t> vm_array_t::type_desc() · 27 unmodified lines
2828 vm_array_t::vm_array_t(std::shared_ptr<const type_descriptor_t> td, word_t length)
2929 : vm_alloc_t(vm_array_t::type_desc())
3030 , _arr{ nullptr }
31− , _element_type{ td }
31+ , _element_type{ std::move(td) }
3232 , _length{ length }
3333 , _original{ nullptr }
3434 {