Use code_range()->exists() to determine the size of the first code page when code range is used.
Review URL: https://codereview.chromium.org/12452012 Patch from Haitao Feng <haitao.feng@intel.com>. git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@14071 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
cb03ff32fd
commit
02d75d734f
@ -1030,10 +1030,10 @@ intptr_t PagedSpace::SizeOfFirstPage() {
|
||||
size = 16 * kPointerSize * KB;
|
||||
break;
|
||||
case CODE_SPACE:
|
||||
if (kPointerSize == 8) {
|
||||
// On x64 we allocate code pages in a special way (from the reserved
|
||||
// 2Byte area). That part of the code is not yet upgraded to handle
|
||||
// small pages.
|
||||
if (heap()->isolate()->code_range()->exists()) {
|
||||
// When code range exists, code pages are allocated in a special way
|
||||
// (from the reserved code range). That part of the code is not yet
|
||||
// upgraded to handle small pages.
|
||||
size = AreaSize();
|
||||
} else {
|
||||
size = 384 * KB;
|
||||
|
Loading…
Reference in New Issue
Block a user