Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(285)

Side by Side Diff: src/heap/heap.cc

Issue 2277253003: [modules] Partial scope info support of modules (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@modules-refactor
Patch Set: This is so much fun. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/heap/heap.h ('k') | src/objects.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 4211 matching lines...) Expand 10 before | Expand all | Expand 10 after
6507 } 6508 }
6508 6509
6509 6510
6510 // static 6511 // static
6511 int Heap::GetStaticVisitorIdForMap(Map* map) { 6512 int Heap::GetStaticVisitorIdForMap(Map* map) {
6512 return StaticVisitorBase::GetVisitorId(map); 6513 return StaticVisitorBase::GetVisitorId(map);
6513 } 6514 }
6514 6515
6515 } // namespace internal 6516 } // namespace internal
6516 } // namespace v8 6517 } // namespace v8
OLDNEW
« no previous file with comments | « src/heap/heap.h ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698