rust-js / rjs

Rust JavaScript interpreter
98 stars 6 forks source link

Don't check GC types that don't have pointers #47

Open pvginkel opened 9 years ago

pvginkel commented 9 years ago

GC types that don't have pointers should be skipped completely. The current walker implementation marks then as Next. However just returning Endis not enough since the garbage collector will still walk over all array entries. Instead a new return code should be added that signifies that the type will never contain pointers and that array walking should be halted. This e.g. applies to strings.