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

Side by Side Diff: src/spaces.cc

Issue 104013008: Reland v8:18458 "Load the global proxy from the context of the target function." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 11 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/runtime.js ('k') | src/stub-cache.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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1061 matching lines...) Expand 10 before | Expand all | Expand 10 after
1072 case PROPERTY_CELL_SPACE: 1072 case PROPERTY_CELL_SPACE:
1073 size = 8 * kPointerSize * KB; 1073 size = 8 * kPointerSize * KB;
1074 break; 1074 break;
1075 case CODE_SPACE: 1075 case CODE_SPACE:
1076 if (heap()->isolate()->code_range()->exists()) { 1076 if (heap()->isolate()->code_range()->exists()) {
1077 // When code range exists, code pages are allocated in a special way 1077 // When code range exists, code pages are allocated in a special way
1078 // (from the reserved code range). That part of the code is not yet 1078 // (from the reserved code range). That part of the code is not yet
1079 // upgraded to handle small pages. 1079 // upgraded to handle small pages.
1080 size = AreaSize(); 1080 size = AreaSize();
1081 } else { 1081 } else {
1082 #if V8_TARGET_ARCH_MIPS
1083 // TODO(plind): Investigate larger code stubs size on MIPS.
1084 size = 480 * KB; 1082 size = 480 * KB;
1085 #else
1086 size = 416 * KB;
1087 #endif
1088 } 1083 }
1089 break; 1084 break;
1090 default: 1085 default:
1091 UNREACHABLE(); 1086 UNREACHABLE();
1092 } 1087 }
1093 return Min(size, AreaSize()); 1088 return Min(size, AreaSize());
1094 } 1089 }
1095 1090
1096 1091
1097 int PagedSpace::CountTotalPages() { 1092 int PagedSpace::CountTotalPages() {
(...skipping 2085 matching lines...) Expand 10 before | Expand all | Expand 10 after
3183 object->ShortPrint(); 3178 object->ShortPrint();
3184 PrintF("\n"); 3179 PrintF("\n");
3185 } 3180 }
3186 printf(" --------------------------------------\n"); 3181 printf(" --------------------------------------\n");
3187 printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes()); 3182 printf(" Marked: %x, LiveCount: %x\n", mark_size, LiveBytes());
3188 } 3183 }
3189 3184
3190 #endif // DEBUG 3185 #endif // DEBUG
3191 3186
3192 } } // namespace v8::internal 3187 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/runtime.js ('k') | src/stub-cache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698