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

Side by Side Diff: src/heap/spaces.cc

Issue 648243002: Always compile functions in the snapshot with deoptimization support. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: bump up size of first old_pointer_space page Created 6 years, 2 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/compiler.cc ('k') | src/ic/ic.cc » ('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 "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/base/bits.h" 7 #include "src/base/bits.h"
8 #include "src/base/platform/platform.h" 8 #include "src/base/platform/platform.h"
9 #include "src/full-codegen.h" 9 #include "src/full-codegen.h"
10 #include "src/heap/mark-compact.h" 10 #include "src/heap/mark-compact.h"
(...skipping 987 matching lines...) Expand 10 before | Expand all | Expand 10 after
998 } 998 }
999 999
1000 1000
1001 intptr_t PagedSpace::SizeOfFirstPage() { 1001 intptr_t PagedSpace::SizeOfFirstPage() {
1002 // If using an ool constant pool then transfer the constant pool allowance 1002 // If using an ool constant pool then transfer the constant pool allowance
1003 // from the code space to the old pointer space. 1003 // from the code space to the old pointer space.
1004 static const int constant_pool_delta = FLAG_enable_ool_constant_pool ? 48 : 0; 1004 static const int constant_pool_delta = FLAG_enable_ool_constant_pool ? 48 : 0;
1005 int size = 0; 1005 int size = 0;
1006 switch (identity()) { 1006 switch (identity()) {
1007 case OLD_POINTER_SPACE: 1007 case OLD_POINTER_SPACE:
1008 size = (112 + constant_pool_delta) * kPointerSize * KB; 1008 size = (128 + constant_pool_delta) * kPointerSize * KB;
1009 break; 1009 break;
1010 case OLD_DATA_SPACE: 1010 case OLD_DATA_SPACE:
1011 size = 192 * KB; 1011 size = 192 * KB;
1012 break; 1012 break;
1013 case MAP_SPACE: 1013 case MAP_SPACE:
1014 size = 16 * kPointerSize * KB; 1014 size = 16 * kPointerSize * KB;
1015 break; 1015 break;
1016 case CELL_SPACE: 1016 case CELL_SPACE:
1017 size = 16 * kPointerSize * KB; 1017 size = 16 * kPointerSize * KB;
1018 break; 1018 break;
(...skipping 2092 matching lines...) Expand 10 before | Expand all | Expand 10 after
3111 object->ShortPrint(); 3111 object->ShortPrint();
3112 PrintF("\n"); 3112 PrintF("\n");
3113 } 3113 }
3114 printf(" --------------------------------------\n"); 3114 printf(" --------------------------------------\n");
3115 printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes()); 3115 printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes());
3116 } 3116 }
3117 3117
3118 #endif // DEBUG 3118 #endif // DEBUG
3119 } 3119 }
3120 } // namespace v8::internal 3120 } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/compiler.cc ('k') | src/ic/ic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698