History

DisVM will now only use 0 initialized memory. - The alloc_memory function will only return 0 initialize memory - calloc_memory was removed

Floating point division is now relying on underlying FPU and IEEE for behavior with respect to divide by 0

arr committed 9 years ago

Commit b92328e1 parent bd1f49311 files · +48 −112Browse files

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

Unified · Split

src/vm/array.cpp+0−13
@@ -43,19 +43,6 @@ vm_array_t::vm_array_t(std::shared_ptr<const type_descriptor_t> td, word_t lengt · 42 unmodified lines
4343 debug::log_msg(debug::component_trace_t::memory, debug::log_level_t::debug, "end: init: elements: %d", array_len);
4444 }
4545
46−vm_array_t::vm_array_t(std::shared_ptr<const type_descriptor_t> td, word_t length, const zero_memory_t&)
47− : vm_alloc_t(vm_array_t::type_desc())
48− , _arr{ nullptr }
49− , _element_type{ td }
50− , _length{ length }
51− , _original{ nullptr }
52−{
53− assert(_element_type != nullptr);
54− assert(_length >= 0);
55− _arr = calloc_memory<byte_t>(_length * _element_type->size_in_bytes);
56− debug::log_msg(debug::component_trace_t::memory, debug::log_level_t::debug, "initz: vm array: %d", _length);
57−}
58−
5946 vm_array_t::vm_array_t(vm_array_t *original, word_t begin_index, word_t length)
6047 : vm_alloc_t(vm_array_t::type_desc())
6148 , _arr{ nullptr }