History

Address various performance issues discovered while profiling debugger Fix logical errors in bit shifting bytecodes Add assert for bit shifting issues that may arise on other compilers Fix bug in vm_array assert

arr committed 10 years ago

Commit d8c9a331 parent 42194725 files · +39 −25Browse files

Showing the changes to src/include (1 of 5 files). Show all

Unified · Split

src/include/runtime.h+4−4
@@ -107,7 +107,7 @@ namespace disvm · 106 unmodified lines
107107 {
108108 auto alloc_inst = vm_alloc_t::from_allocation(allocation);
109109 assert(alloc_inst == nullptr || alloc_inst->alloc_type == intrinsic_type_desc::type<T>());
110− return dynamic_cast<T *>(alloc_inst);
110+ return static_cast<T *>(alloc_inst);
111111 }
112112
113113 protected:
@@ -199,9 +199,9 @@ namespace disvm · 85 unmodified lines
199199 static std::shared_ptr<const type_descriptor_t> type_desc();
200200
201201 public:
202− vm_array_t(std::shared_ptr<const type_descriptor_t> td, word_t count);
203− vm_array_t(std::shared_ptr<const type_descriptor_t> td, word_t count, const zero_memory_t&);
204− vm_array_t(vm_array_t *original, word_t begin_index, word_t count);
202+ vm_array_t(std::shared_ptr<const type_descriptor_t> td, word_t length);
203+ vm_array_t(std::shared_ptr<const type_descriptor_t> td, word_t length, const zero_memory_t&);
204+ vm_array_t(vm_array_t *original, word_t begin_index, word_t length);
205205 vm_array_t(const vm_string_t *s);
206206 ~vm_array_t();
207207

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t