| 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 2580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2591 | 2591 |
| 2592 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, hash_table) | 2592 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, hash_table) |
| 2593 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, ordered_hash_table) | 2593 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, ordered_hash_table) |
| 2594 | 2594 |
| 2595 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, function_context) | 2595 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, function_context) |
| 2596 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, catch_context) | 2596 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, catch_context) |
| 2597 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, with_context) | 2597 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, with_context) |
| 2598 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, block_context) | 2598 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, block_context) |
| 2599 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, module_context) | 2599 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, module_context) |
| 2600 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, global_context) | 2600 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, global_context) |
| 2601 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, global_context_table) |
| 2601 | 2602 |
| 2602 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, native_context) | 2603 ALLOCATE_VARSIZE_MAP(FIXED_ARRAY_TYPE, native_context) |
| 2603 native_context_map()->set_dictionary_map(true); | 2604 native_context_map()->set_dictionary_map(true); |
| 2604 native_context_map()->set_visitor_id( | 2605 native_context_map()->set_visitor_id( |
| 2605 StaticVisitorBase::kVisitNativeContext); | 2606 StaticVisitorBase::kVisitNativeContext); |
| 2606 | 2607 |
| 2607 ALLOCATE_MAP(SHARED_FUNCTION_INFO_TYPE, SharedFunctionInfo::kAlignedSize, | 2608 ALLOCATE_MAP(SHARED_FUNCTION_INFO_TYPE, SharedFunctionInfo::kAlignedSize, |
| 2608 shared_function_info) | 2609 shared_function_info) |
| 2609 | 2610 |
| 2610 ALLOCATE_MAP(JS_MESSAGE_OBJECT_TYPE, JSMessageObject::kSize, message_object) | 2611 ALLOCATE_MAP(JS_MESSAGE_OBJECT_TYPE, JSMessageObject::kSize, message_object) |
| (...skipping 3641 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6252 static_cast<int>(object_sizes_last_time_[index])); | 6253 static_cast<int>(object_sizes_last_time_[index])); |
| 6253 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) | 6254 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) |
| 6254 #undef ADJUST_LAST_TIME_OBJECT_COUNT | 6255 #undef ADJUST_LAST_TIME_OBJECT_COUNT |
| 6255 | 6256 |
| 6256 MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); | 6257 MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); |
| 6257 MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); | 6258 MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); |
| 6258 ClearObjectStats(); | 6259 ClearObjectStats(); |
| 6259 } | 6260 } |
| 6260 } | 6261 } |
| 6261 } // namespace v8::internal | 6262 } // namespace v8::internal |
| OLD | NEW |