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 2289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2300 ALLOCATE_MAP((instance_type), (size), field_name); \ | 2300 ALLOCATE_MAP((instance_type), (size), field_name); \ |
2301 field_name##_map()->SetConstructorFunctionIndex( \ | 2301 field_name##_map()->SetConstructorFunctionIndex( \ |
2302 (constructor_function_index)); \ | 2302 (constructor_function_index)); \ |
2303 } | 2303 } |
2304 | 2304 |
2305 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, fixed_cow_array) | 2305 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, fixed_cow_array) |
2306 fixed_cow_array_map()->set_elements_kind(FAST_HOLEY_ELEMENTS); | 2306 fixed_cow_array_map()->set_elements_kind(FAST_HOLEY_ELEMENTS); |
2307 DCHECK_NE(fixed_array_map(), fixed_cow_array_map()); | 2307 DCHECK_NE(fixed_array_map(), fixed_cow_array_map()); |
2308 | 2308 |
2309 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, scope_info) | 2309 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, scope_info) |
| 2310 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, module_info_entry) |
2310 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, module_info) | 2311 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, module_info) |
| 2312 ALLOCATE_MAP(JS_MODULE_TYPE, JSModule::kSize, js_module) |
2311 ALLOCATE_PRIMITIVE_MAP(HEAP_NUMBER_TYPE, HeapNumber::kSize, heap_number, | 2313 ALLOCATE_PRIMITIVE_MAP(HEAP_NUMBER_TYPE, HeapNumber::kSize, heap_number, |
2312 Context::NUMBER_FUNCTION_INDEX) | 2314 Context::NUMBER_FUNCTION_INDEX) |
2313 ALLOCATE_MAP(MUTABLE_HEAP_NUMBER_TYPE, HeapNumber::kSize, | 2315 ALLOCATE_MAP(MUTABLE_HEAP_NUMBER_TYPE, HeapNumber::kSize, |
2314 mutable_heap_number) | 2316 mutable_heap_number) |
2315 ALLOCATE_PRIMITIVE_MAP(SYMBOL_TYPE, Symbol::kSize, symbol, | 2317 ALLOCATE_PRIMITIVE_MAP(SYMBOL_TYPE, Symbol::kSize, symbol, |
2316 Context::SYMBOL_FUNCTION_INDEX) | 2318 Context::SYMBOL_FUNCTION_INDEX) |
2317 #define ALLOCATE_SIMD128_MAP(TYPE, Type, type, lane_count, lane_type) \ | 2319 #define ALLOCATE_SIMD128_MAP(TYPE, Type, type, lane_count, lane_type) \ |
2318 ALLOCATE_PRIMITIVE_MAP(SIMD128_VALUE_TYPE, Type::kSize, type, \ | 2320 ALLOCATE_PRIMITIVE_MAP(SIMD128_VALUE_TYPE, Type::kSize, type, \ |
2319 Context::TYPE##_FUNCTION_INDEX) | 2321 Context::TYPE##_FUNCTION_INDEX) |
2320 SIMD128_TYPES(ALLOCATE_SIMD128_MAP) | 2322 SIMD128_TYPES(ALLOCATE_SIMD128_MAP) |
(...skipping 4208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6529 } | 6531 } |
6530 | 6532 |
6531 | 6533 |
6532 // static | 6534 // static |
6533 int Heap::GetStaticVisitorIdForMap(Map* map) { | 6535 int Heap::GetStaticVisitorIdForMap(Map* map) { |
6534 return StaticVisitorBase::GetVisitorId(map); | 6536 return StaticVisitorBase::GetVisitorId(map); |
6535 } | 6537 } |
6536 | 6538 |
6537 } // namespace internal | 6539 } // namespace internal |
6538 } // namespace v8 | 6540 } // namespace v8 |
OLD | NEW |