| 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 2591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2602 | 2602 |
| 2603 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, hash_table) | 2603 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, hash_table) |
| 2604 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, ordered_hash_table) | 2604 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, ordered_hash_table) |
| 2605 | 2605 |
| 2606 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, function_context) | 2606 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, function_context) |
| 2607 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, catch_context) | 2607 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, catch_context) |
| 2608 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, with_context) | 2608 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, with_context) |
| 2609 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, block_context) | 2609 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, block_context) |
| 2610 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, module_context) | 2610 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, module_context) |
| 2611 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, global_context) | 2611 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, global_context) |
| 2612 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, global_context_table) |
| 2612 | 2613 |
| 2613 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, native_context) | 2614 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, native_context) |
| 2614 native_context_map()->set_dictionary_map(true); | 2615 native_context_map()->set_dictionary_map(true); |
| 2615 native_context_map()->set_visitor_id( | 2616 native_context_map()->set_visitor_id( |
| 2616 StaticVisitorBase::kVisitNativeContext); | 2617 StaticVisitorBase::kVisitNativeContext); |
| 2617 | 2618 |
| 2618 ALLOCATE_MAP(SHARED_FUNCTION_INFO_TYPE, SharedFunctionInfo::kAlignedSize, | 2619 ALLOCATE_MAP(SHARED_FUNCTION_INFO_TYPE, SharedFunctionInfo::kAlignedSize, |
| 2619 shared_function_info) | 2620 shared_function_info) |
| 2620 | 2621 |
| 2621 ALLOCATE_MAP(JS_MESSAGE_OBJECT_TYPE, JSMessageObject::kSize, message_object) | 2622 ALLOCATE_MAP(JS_MESSAGE_OBJECT_TYPE, JSMessageObject::kSize, message_object) |
| (...skipping 3643 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6265 static_cast<int>(object_sizes_last_time_[index])); | 6266 static_cast<int>(object_sizes_last_time_[index])); |
| 6266 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) | 6267 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) |
| 6267 #undef ADJUST_LAST_TIME_OBJECT_COUNT | 6268 #undef ADJUST_LAST_TIME_OBJECT_COUNT |
| 6268 | 6269 |
| 6269 MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); | 6270 MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); |
| 6270 MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); | 6271 MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); |
| 6271 ClearObjectStats(); | 6272 ClearObjectStats(); |
| 6272 } | 6273 } |
| 6273 } | 6274 } |
| 6274 } // namespace v8::internal | 6275 } // namespace v8::internal |
| OLD | NEW |