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

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

Issue 2367493002: Merged: Squashed multiple commits. (Closed)
Patch Set: Created 4 years, 3 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/objects.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/ast/scopeinfo.h" 9 #include "src/ast/scopeinfo.h"
10 #include "src/base/bits.h" 10 #include "src/base/bits.h"
(...skipping 2360 matching lines...) Expand 10 before | Expand all | Expand 10 after
2371 2371
2372 for (unsigned i = 0; i < arraysize(struct_table); i++) { 2372 for (unsigned i = 0; i < arraysize(struct_table); i++) {
2373 const StructTable& entry = struct_table[i]; 2373 const StructTable& entry = struct_table[i];
2374 Map* map; 2374 Map* map;
2375 if (!AllocateMap(entry.type, entry.size).To(&map)) return false; 2375 if (!AllocateMap(entry.type, entry.size).To(&map)) return false;
2376 roots_[entry.index] = map; 2376 roots_[entry.index] = map;
2377 } 2377 }
2378 2378
2379 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, hash_table) 2379 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, hash_table)
2380 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, ordered_hash_table) 2380 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, ordered_hash_table)
2381 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, unseeded_number_dictionary)
2381 2382
2382 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, function_context) 2383 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, function_context)
2383 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, catch_context) 2384 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, catch_context)
2384 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, with_context) 2385 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, with_context)
2385 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, debug_evaluate_context) 2386 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, debug_evaluate_context)
2386 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, block_context) 2387 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, block_context)
2387 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, module_context) 2388 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, module_context)
2388 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, script_context) 2389 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, script_context)
2389 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, script_context_table) 2390 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, script_context_table)
2390 2391
(...skipping 3984 matching lines...) Expand 10 before | Expand all | Expand 10 after
6375 } 6376 }
6376 6377
6377 6378
6378 // static 6379 // static
6379 int Heap::GetStaticVisitorIdForMap(Map* map) { 6380 int Heap::GetStaticVisitorIdForMap(Map* map) {
6380 return StaticVisitorBase::GetVisitorId(map); 6381 return StaticVisitorBase::GetVisitorId(map);
6381 } 6382 }
6382 6383
6383 } // namespace internal 6384 } // namespace internal
6384 } // namespace v8 6385 } // namespace v8
OLDNEW
« no previous file with comments | « src/heap/heap.h ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698