| OLD | NEW |
| 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 2324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2335 | 2335 |
| 2336 for (unsigned i = 0; i < arraysize(struct_table); i++) { | 2336 for (unsigned i = 0; i < arraysize(struct_table); i++) { |
| 2337 const StructTable& entry = struct_table[i]; | 2337 const StructTable& entry = struct_table[i]; |
| 2338 Map* map; | 2338 Map* map; |
| 2339 if (!AllocateMap(entry.type, entry.size).To(&map)) return false; | 2339 if (!AllocateMap(entry.type, entry.size).To(&map)) return false; |
| 2340 roots_[entry.index] = map; | 2340 roots_[entry.index] = map; |
| 2341 } | 2341 } |
| 2342 | 2342 |
| 2343 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, hash_table) | 2343 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, hash_table) |
| 2344 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, ordered_hash_table) | 2344 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, ordered_hash_table) |
| 2345 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, unseeded_number_dictionary) |
| 2345 | 2346 |
| 2346 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, function_context) | 2347 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, function_context) |
| 2347 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, catch_context) | 2348 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, catch_context) |
| 2348 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, with_context) | 2349 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, with_context) |
| 2349 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, debug_evaluate_context) | 2350 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, debug_evaluate_context) |
| 2350 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, block_context) | 2351 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, block_context) |
| 2351 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, module_context) | 2352 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, module_context) |
| 2352 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, script_context) | 2353 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, script_context) |
| 2353 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, script_context_table) | 2354 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, script_context_table) |
| 2354 | 2355 |
| (...skipping 4026 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6381 } | 6382 } |
| 6382 | 6383 |
| 6383 | 6384 |
| 6384 // static | 6385 // static |
| 6385 int Heap::GetStaticVisitorIdForMap(Map* map) { | 6386 int Heap::GetStaticVisitorIdForMap(Map* map) { |
| 6386 return StaticVisitorBase::GetVisitorId(map); | 6387 return StaticVisitorBase::GetVisitorId(map); |
| 6387 } | 6388 } |
| 6388 | 6389 |
| 6389 } // namespace internal | 6390 } // namespace internal |
| 6390 } // namespace v8 | 6391 } // namespace v8 |
| OLD | NEW |