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

Side by Side Diff: src/heap-snapshot-generator.cc

Issue 712943002: MapCache simplification. It is now a FixedArray that maps number of properties to a WeakCell with... (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 1 month 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/factory.cc ('k') | src/heap/mark-compact.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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/heap-snapshot-generator-inl.h" 7 #include "src/heap-snapshot-generator-inl.h"
8 8
9 #include "src/allocation-tracker.h" 9 #include "src/allocation-tracker.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 1264 matching lines...) Expand 10 before | Expand all | Expand 10 after
1275 EXTRACT_CONTEXT_FIELD(OPTIMIZED_FUNCTIONS_LIST, unused, 1275 EXTRACT_CONTEXT_FIELD(OPTIMIZED_FUNCTIONS_LIST, unused,
1276 optimized_functions_list); 1276 optimized_functions_list);
1277 EXTRACT_CONTEXT_FIELD(OPTIMIZED_CODE_LIST, unused, optimized_code_list); 1277 EXTRACT_CONTEXT_FIELD(OPTIMIZED_CODE_LIST, unused, optimized_code_list);
1278 EXTRACT_CONTEXT_FIELD(DEOPTIMIZED_CODE_LIST, unused, deoptimized_code_list); 1278 EXTRACT_CONTEXT_FIELD(DEOPTIMIZED_CODE_LIST, unused, deoptimized_code_list);
1279 EXTRACT_CONTEXT_FIELD(NEXT_CONTEXT_LINK, unused, next_context_link); 1279 EXTRACT_CONTEXT_FIELD(NEXT_CONTEXT_LINK, unused, next_context_link);
1280 #undef EXTRACT_CONTEXT_FIELD 1280 #undef EXTRACT_CONTEXT_FIELD
1281 STATIC_ASSERT(Context::OPTIMIZED_FUNCTIONS_LIST == 1281 STATIC_ASSERT(Context::OPTIMIZED_FUNCTIONS_LIST ==
1282 Context::FIRST_WEAK_SLOT); 1282 Context::FIRST_WEAK_SLOT);
1283 STATIC_ASSERT(Context::NEXT_CONTEXT_LINK + 1 == 1283 STATIC_ASSERT(Context::NEXT_CONTEXT_LINK + 1 ==
1284 Context::NATIVE_CONTEXT_SLOTS); 1284 Context::NATIVE_CONTEXT_SLOTS);
1285 STATIC_ASSERT(Context::FIRST_WEAK_SLOT + 5 == 1285 STATIC_ASSERT(Context::FIRST_WEAK_SLOT + 4 ==
1286 Context::NATIVE_CONTEXT_SLOTS); 1286 Context::NATIVE_CONTEXT_SLOTS);
1287 } 1287 }
1288 } 1288 }
1289 1289
1290 1290
1291 void V8HeapExplorer::ExtractMapReferences(int entry, Map* map) { 1291 void V8HeapExplorer::ExtractMapReferences(int entry, Map* map) {
1292 if (map->HasTransitionArray()) { 1292 if (map->HasTransitionArray()) {
1293 TransitionArray* transitions = map->transitions(); 1293 TransitionArray* transitions = map->transitions();
1294 int transitions_entry = GetEntry(transitions)->index(); 1294 int transitions_entry = GetEntry(transitions)->index();
1295 Object* back_pointer = transitions->back_pointer_storage(); 1295 Object* back_pointer = transitions->back_pointer_storage();
(...skipping 1841 matching lines...) Expand 10 before | Expand all | Expand 10 after
3137 writer_->AddString("\"<dummy>\""); 3137 writer_->AddString("\"<dummy>\"");
3138 for (int i = 1; i < sorted_strings.length(); ++i) { 3138 for (int i = 1; i < sorted_strings.length(); ++i) {
3139 writer_->AddCharacter(','); 3139 writer_->AddCharacter(',');
3140 SerializeString(sorted_strings[i]); 3140 SerializeString(sorted_strings[i]);
3141 if (writer_->aborted()) return; 3141 if (writer_->aborted()) return;
3142 } 3142 }
3143 } 3143 }
3144 3144
3145 3145
3146 } } // namespace v8::internal 3146 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/factory.cc ('k') | src/heap/mark-compact.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698