Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(766)

Side by Side Diff: src/spaces.cc

Issue 247373002: CallICStub with a "never patch" approach until customization. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE + code size multiplier. Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/objects-visiting-inl.h ('k') | src/v8globals.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "v8.h" 5 #include "v8.h"
6 6
7 #include "full-codegen.h" 7 #include "full-codegen.h"
8 #include "macro-assembler.h" 8 #include "macro-assembler.h"
9 #include "mark-compact.h" 9 #include "mark-compact.h"
10 #include "msan.h" 10 #include "msan.h"
(...skipping 1039 matching lines...) Expand 10 before | Expand all | Expand 10 after
1050 case PROPERTY_CELL_SPACE: 1050 case PROPERTY_CELL_SPACE:
1051 size = 8 * kPointerSize * KB; 1051 size = 8 * kPointerSize * KB;
1052 break; 1052 break;
1053 case CODE_SPACE: 1053 case CODE_SPACE:
1054 if (heap()->isolate()->code_range()->exists()) { 1054 if (heap()->isolate()->code_range()->exists()) {
1055 // When code range exists, code pages are allocated in a special way 1055 // When code range exists, code pages are allocated in a special way
1056 // (from the reserved code range). That part of the code is not yet 1056 // (from the reserved code range). That part of the code is not yet
1057 // upgraded to handle small pages. 1057 // upgraded to handle small pages.
1058 size = AreaSize(); 1058 size = AreaSize();
1059 } else { 1059 } else {
1060 size = 480 * KB * FullCodeGenerator::kBootCodeSizeMultiplier / 100; 1060 size = RoundUp(
1061 480 * KB * FullCodeGenerator::kBootCodeSizeMultiplier / 100,
1062 kPointerSize);
1061 } 1063 }
1062 break; 1064 break;
1063 default: 1065 default:
1064 UNREACHABLE(); 1066 UNREACHABLE();
1065 } 1067 }
1066 return Min(size, AreaSize()); 1068 return Min(size, AreaSize());
1067 } 1069 }
1068 1070
1069 1071
1070 int PagedSpace::CountTotalPages() { 1072 int PagedSpace::CountTotalPages() {
(...skipping 2038 matching lines...) Expand 10 before | Expand all | Expand 10 after
3109 object->ShortPrint(); 3111 object->ShortPrint();
3110 PrintF("\n"); 3112 PrintF("\n");
3111 } 3113 }
3112 printf(" --------------------------------------\n"); 3114 printf(" --------------------------------------\n");
3113 printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes()); 3115 printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes());
3114 } 3116 }
3115 3117
3116 #endif // DEBUG 3118 #endif // DEBUG
3117 3119
3118 } } // namespace v8::internal 3120 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects-visiting-inl.h ('k') | src/v8globals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698