| 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 2265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2276 ALLOCATE_MAP((instance_type), (size), field_name); \ | 2276 ALLOCATE_MAP((instance_type), (size), field_name); \ |
| 2277 field_name##_map()->SetConstructorFunctionIndex( \ | 2277 field_name##_map()->SetConstructorFunctionIndex( \ |
| 2278 (constructor_function_index)); \ | 2278 (constructor_function_index)); \ |
| 2279 } | 2279 } |
| 2280 | 2280 |
| 2281 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, fixed_cow_array) | 2281 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, fixed_cow_array) |
| 2282 fixed_cow_array_map()->set_elements_kind(FAST_HOLEY_ELEMENTS); | 2282 fixed_cow_array_map()->set_elements_kind(FAST_HOLEY_ELEMENTS); |
| 2283 DCHECK_NE(fixed_array_map(), fixed_cow_array_map()); | 2283 DCHECK_NE(fixed_array_map(), fixed_cow_array_map()); |
| 2284 | 2284 |
| 2285 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, scope_info) | 2285 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, scope_info) |
| 2286 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, module_info) |
| 2286 ALLOCATE_PRIMITIVE_MAP(HEAP_NUMBER_TYPE, HeapNumber::kSize, heap_number, | 2287 ALLOCATE_PRIMITIVE_MAP(HEAP_NUMBER_TYPE, HeapNumber::kSize, heap_number, |
| 2287 Context::NUMBER_FUNCTION_INDEX) | 2288 Context::NUMBER_FUNCTION_INDEX) |
| 2288 ALLOCATE_MAP(MUTABLE_HEAP_NUMBER_TYPE, HeapNumber::kSize, | 2289 ALLOCATE_MAP(MUTABLE_HEAP_NUMBER_TYPE, HeapNumber::kSize, |
| 2289 mutable_heap_number) | 2290 mutable_heap_number) |
| 2290 ALLOCATE_PRIMITIVE_MAP(SYMBOL_TYPE, Symbol::kSize, symbol, | 2291 ALLOCATE_PRIMITIVE_MAP(SYMBOL_TYPE, Symbol::kSize, symbol, |
| 2291 Context::SYMBOL_FUNCTION_INDEX) | 2292 Context::SYMBOL_FUNCTION_INDEX) |
| 2292 #define ALLOCATE_SIMD128_MAP(TYPE, Type, type, lane_count, lane_type) \ | 2293 #define ALLOCATE_SIMD128_MAP(TYPE, Type, type, lane_count, lane_type) \ |
| 2293 ALLOCATE_PRIMITIVE_MAP(SIMD128_VALUE_TYPE, Type::kSize, type, \ | 2294 ALLOCATE_PRIMITIVE_MAP(SIMD128_VALUE_TYPE, Type::kSize, type, \ |
| 2294 Context::TYPE##_FUNCTION_INDEX) | 2295 Context::TYPE##_FUNCTION_INDEX) |
| 2295 SIMD128_TYPES(ALLOCATE_SIMD128_MAP) | 2296 SIMD128_TYPES(ALLOCATE_SIMD128_MAP) |
| (...skipping 4204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6500 } | 6501 } |
| 6501 | 6502 |
| 6502 | 6503 |
| 6503 // static | 6504 // static |
| 6504 int Heap::GetStaticVisitorIdForMap(Map* map) { | 6505 int Heap::GetStaticVisitorIdForMap(Map* map) { |
| 6505 return StaticVisitorBase::GetVisitorId(map); | 6506 return StaticVisitorBase::GetVisitorId(map); |
| 6506 } | 6507 } |
| 6507 | 6508 |
| 6508 } // namespace internal | 6509 } // namespace internal |
| 6509 } // namespace v8 | 6510 } // namespace v8 |
| OLD | NEW |