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

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

Issue 2302783002: [modules] Basic support of exports (Closed)
Patch Set: . 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
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_entry)
2286 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, module_info) 2287 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, module_info)
2287 ALLOCATE_PRIMITIVE_MAP(HEAP_NUMBER_TYPE, HeapNumber::kSize, heap_number, 2288 ALLOCATE_PRIMITIVE_MAP(HEAP_NUMBER_TYPE, HeapNumber::kSize, heap_number,
2288 Context::NUMBER_FUNCTION_INDEX) 2289 Context::NUMBER_FUNCTION_INDEX)
2289 ALLOCATE_MAP(MUTABLE_HEAP_NUMBER_TYPE, HeapNumber::kSize, 2290 ALLOCATE_MAP(MUTABLE_HEAP_NUMBER_TYPE, HeapNumber::kSize,
2290 mutable_heap_number) 2291 mutable_heap_number)
2291 ALLOCATE_PRIMITIVE_MAP(SYMBOL_TYPE, Symbol::kSize, symbol, 2292 ALLOCATE_PRIMITIVE_MAP(SYMBOL_TYPE, Symbol::kSize, symbol,
2292 Context::SYMBOL_FUNCTION_INDEX) 2293 Context::SYMBOL_FUNCTION_INDEX)
2293 #define ALLOCATE_SIMD128_MAP(TYPE, Type, type, lane_count, lane_type) \ 2294 #define ALLOCATE_SIMD128_MAP(TYPE, Type, type, lane_count, lane_type) \
2294 ALLOCATE_PRIMITIVE_MAP(SIMD128_VALUE_TYPE, Type::kSize, type, \ 2295 ALLOCATE_PRIMITIVE_MAP(SIMD128_VALUE_TYPE, Type::kSize, type, \
2295 Context::TYPE##_FUNCTION_INDEX) 2296 Context::TYPE##_FUNCTION_INDEX)
(...skipping 4212 matching lines...) Expand 10 before | Expand all | Expand 10 after
6508 } 6509 }
6509 6510
6510 6511
6511 // static 6512 // static
6512 int Heap::GetStaticVisitorIdForMap(Map* map) { 6513 int Heap::GetStaticVisitorIdForMap(Map* map) {
6513 return StaticVisitorBase::GetVisitorId(map); 6514 return StaticVisitorBase::GetVisitorId(map);
6514 } 6515 }
6515 6516
6516 } // namespace internal 6517 } // namespace internal
6517 } // namespace v8 6518 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698