Open pikou1995 opened 3 years ago
我经常在想,为什么 java 工程师要问 HashMap 和 ArrayList 的底层实现,而 js 工程师却不用知道 Object 和 Array 的底层?我偏不服,决定一探究竟。
先挖坑
参考资料: Fast properties in V8 Elements kinds in V8 探究JS V8引擎下的“数组”底层实现 从Chrome源码看JS Object的实现 从Chrome源码看JS Array的实现 V8 是怎么跑起来的 —— V8 中的对象表示
我经常在想,为什么 java 工程师要问 HashMap 和 ArrayList 的底层实现,而 js 工程师却不用知道 Object 和 Array 的底层?我偏不服,决定一探究竟。
参考资料: Fast properties in V8 Elements kinds in V8 探究JS V8引擎下的“数组”底层实现 从Chrome源码看JS Object的实现 从Chrome源码看JS Array的实现 V8 是怎么跑起来的 —— V8 中的对象表示