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

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

Issue 2828323004: [heap] Refactor MC and introduce MarkCompactCollectorBase (Closed)
Patch Set: More refactoring Created 3 years, 8 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
« no previous file with comments | « src/heap/heap.h ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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/heap/heap.h" 5 #include "src/heap/heap.h"
6 6
7 #include "src/accessors.h" 7 #include "src/accessors.h"
8 #include "src/api.h" 8 #include "src/api.h"
9 #include "src/assembler-inl.h" 9 #include "src/assembler-inl.h"
10 #include "src/ast/context-slot-cache.h" 10 #include "src/ast/context-slot-cache.h"
(...skipping 6386 matching lines...) Expand 10 before | Expand all | Expand 10 after
6397 } 6397 }
6398 return false; 6398 return false;
6399 } 6399 }
6400 6400
6401 6401
6402 // static 6402 // static
6403 int Heap::GetStaticVisitorIdForMap(Map* map) { 6403 int Heap::GetStaticVisitorIdForMap(Map* map) {
6404 return StaticVisitorBase::GetVisitorId(map); 6404 return StaticVisitorBase::GetVisitorId(map);
6405 } 6405 }
6406 6406
6407 const char* AllocationSpaceName(AllocationSpace space) {
6408 switch (space) {
6409 case NEW_SPACE:
6410 return "NEW_SPACE";
6411 case OLD_SPACE:
6412 return "OLD_SPACE";
6413 case CODE_SPACE:
6414 return "CODE_SPACE";
6415 case MAP_SPACE:
6416 return "MAP_SPACE";
6417 case LO_SPACE:
6418 return "LO_SPACE";
6419 default:
6420 UNREACHABLE();
6421 }
6422 return NULL;
6423 }
6424
6407 } // namespace internal 6425 } // namespace internal
6408 } // namespace v8 6426 } // namespace v8
OLDNEW
« no previous file with comments | « src/heap/heap.h ('k') | src/heap/mark-compact.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698