| 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/context-slot-cache.h" | 9 #include "src/ast/context-slot-cache.h" |
| 10 #include "src/base/bits.h" | 10 #include "src/base/bits.h" |
| (...skipping 2338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2349 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, hash_table) | 2349 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, hash_table) |
| 2350 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, ordered_hash_table) | 2350 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, ordered_hash_table) |
| 2351 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, unseeded_number_dictionary) | 2351 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, unseeded_number_dictionary) |
| 2352 | 2352 |
| 2353 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, function_context) | 2353 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, function_context) |
| 2354 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, catch_context) | 2354 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, catch_context) |
| 2355 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, with_context) | 2355 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, with_context) |
| 2356 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, debug_evaluate_context) | 2356 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, debug_evaluate_context) |
| 2357 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, block_context) | 2357 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, block_context) |
| 2358 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, module_context) | 2358 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, module_context) |
| 2359 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, eval_context) |
| 2359 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, script_context) | 2360 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, script_context) |
| 2360 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, script_context_table) | 2361 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, script_context_table) |
| 2361 | 2362 |
| 2362 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, native_context) | 2363 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, native_context) |
| 2363 native_context_map()->set_dictionary_map(true); | 2364 native_context_map()->set_dictionary_map(true); |
| 2364 native_context_map()->set_visitor_id( | 2365 native_context_map()->set_visitor_id( |
| 2365 StaticVisitorBase::kVisitNativeContext); | 2366 StaticVisitorBase::kVisitNativeContext); |
| 2366 | 2367 |
| 2367 ALLOCATE_MAP(SHARED_FUNCTION_INFO_TYPE, SharedFunctionInfo::kAlignedSize, | 2368 ALLOCATE_MAP(SHARED_FUNCTION_INFO_TYPE, SharedFunctionInfo::kAlignedSize, |
| 2368 shared_function_info) | 2369 shared_function_info) |
| (...skipping 4128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6497 } | 6498 } |
| 6498 | 6499 |
| 6499 | 6500 |
| 6500 // static | 6501 // static |
| 6501 int Heap::GetStaticVisitorIdForMap(Map* map) { | 6502 int Heap::GetStaticVisitorIdForMap(Map* map) { |
| 6502 return StaticVisitorBase::GetVisitorId(map); | 6503 return StaticVisitorBase::GetVisitorId(map); |
| 6503 } | 6504 } |
| 6504 | 6505 |
| 6505 } // namespace internal | 6506 } // namespace internal |
| 6506 } // namespace v8 | 6507 } // namespace v8 |
| OLD | NEW |