| 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 2385 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2396       if (!AllocateMap(entry.type, entry.size).To(&map)) return false; | 2396       if (!AllocateMap(entry.type, entry.size).To(&map)) return false; | 
| 2397       roots_[entry.index] = map; | 2397       roots_[entry.index] = map; | 
| 2398     } | 2398     } | 
| 2399 | 2399 | 
| 2400     ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, hash_table) | 2400     ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, hash_table) | 
| 2401     ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, ordered_hash_table) | 2401     ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, ordered_hash_table) | 
| 2402 | 2402 | 
| 2403     ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, function_context) | 2403     ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, function_context) | 
| 2404     ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, catch_context) | 2404     ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, catch_context) | 
| 2405     ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, with_context) | 2405     ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, with_context) | 
|  | 2406     ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, debug_evaluate_context) | 
| 2406     ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, block_context) | 2407     ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, block_context) | 
| 2407     ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, module_context) | 2408     ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, module_context) | 
| 2408     ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, script_context) | 2409     ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, script_context) | 
| 2409     ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, script_context_table) | 2410     ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, script_context_table) | 
| 2410 | 2411 | 
| 2411     ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, native_context) | 2412     ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, native_context) | 
| 2412     native_context_map()->set_dictionary_map(true); | 2413     native_context_map()->set_dictionary_map(true); | 
| 2413     native_context_map()->set_visitor_id( | 2414     native_context_map()->set_visitor_id( | 
| 2414         StaticVisitorBase::kVisitNativeContext); | 2415         StaticVisitorBase::kVisitNativeContext); | 
| 2415 | 2416 | 
| (...skipping 4055 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 6471 } | 6472 } | 
| 6472 | 6473 | 
| 6473 | 6474 | 
| 6474 // static | 6475 // static | 
| 6475 int Heap::GetStaticVisitorIdForMap(Map* map) { | 6476 int Heap::GetStaticVisitorIdForMap(Map* map) { | 
| 6476   return StaticVisitorBase::GetVisitorId(map); | 6477   return StaticVisitorBase::GetVisitorId(map); | 
| 6477 } | 6478 } | 
| 6478 | 6479 | 
| 6479 }  // namespace internal | 6480 }  // namespace internal | 
| 6480 }  // namespace v8 | 6481 }  // namespace v8 | 
| OLD | NEW | 
|---|