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/v8.h" | 5 #include "src/v8.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/base/bits.h" | 9 #include "src/base/bits.h" |
10 #include "src/base/once.h" | 10 #include "src/base/once.h" |
(...skipping 2617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2628 } | 2628 } |
2629 | 2629 |
2630 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, hash_table) | 2630 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, hash_table) |
2631 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, ordered_hash_table) | 2631 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, ordered_hash_table) |
2632 | 2632 |
2633 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, function_context) | 2633 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, function_context) |
2634 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, catch_context) | 2634 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, catch_context) |
2635 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, with_context) | 2635 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, with_context) |
2636 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, block_context) | 2636 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, block_context) |
2637 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, module_context) | 2637 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, module_context) |
2638 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, global_context) | 2638 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, script_context) |
2639 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, global_context_table) | 2639 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, script_context_table) |
2640 | 2640 |
2641 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, native_context) | 2641 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, native_context) |
2642 native_context_map()->set_dictionary_map(true); | 2642 native_context_map()->set_dictionary_map(true); |
2643 native_context_map()->set_visitor_id( | 2643 native_context_map()->set_visitor_id( |
2644 StaticVisitorBase::kVisitNativeContext); | 2644 StaticVisitorBase::kVisitNativeContext); |
2645 | 2645 |
2646 ALLOCATE_MAP(SHARED_FUNCTION_INFO_TYPE, SharedFunctionInfo::kAlignedSize, | 2646 ALLOCATE_MAP(SHARED_FUNCTION_INFO_TYPE, SharedFunctionInfo::kAlignedSize, |
2647 shared_function_info) | 2647 shared_function_info) |
2648 | 2648 |
2649 ALLOCATE_MAP(JS_MESSAGE_OBJECT_TYPE, JSMessageObject::kSize, message_object) | 2649 ALLOCATE_MAP(JS_MESSAGE_OBJECT_TYPE, JSMessageObject::kSize, message_object) |
(...skipping 3643 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6293 static_cast<int>(object_sizes_last_time_[index])); | 6293 static_cast<int>(object_sizes_last_time_[index])); |
6294 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) | 6294 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) |
6295 #undef ADJUST_LAST_TIME_OBJECT_COUNT | 6295 #undef ADJUST_LAST_TIME_OBJECT_COUNT |
6296 | 6296 |
6297 MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); | 6297 MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); |
6298 MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); | 6298 MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); |
6299 ClearObjectStats(); | 6299 ClearObjectStats(); |
6300 } | 6300 } |
6301 } | 6301 } |
6302 } // namespace v8::internal | 6302 } // namespace v8::internal |
OLD | NEW |