JavaScript

· Frontend
자바스크립트에서 number, string 타입을 생각 없이 사용하다 최근에 V8 엔진에서 어떻게 처리되고 있는지가 궁금해졌습니다. 이번 포스팅에서는 각각의 타입이 메모리에서 어떻게 할당되고 처리되는지 알아보겠습니다. Number number 타입은 내부적으로 SMI(Small Integer), Heap number 2가지 나뉩니다. 1. SMI: 31 bits 범위에 속하는 정수를 의미합니다. 이 범위의 데이터는 Heap이 아닌 Stack 메모리에 저장됩니다. Smi represents integer Numbers that can be stored in 31 bits. Smis are immediate which means they are NOT allocated in the heap. https://..
mechaniccoder
'JavaScript' 태그의 글 목록