OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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/profiler/heap-snapshot-generator.h" | 5 #include "src/profiler/heap-snapshot-generator.h" |
6 | 6 |
7 #include "src/code-stubs.h" | 7 #include "src/code-stubs.h" |
8 #include "src/conversions.h" | 8 #include "src/conversions.h" |
9 #include "src/debug/debug.h" | 9 #include "src/debug/debug.h" |
10 #include "src/objects-body-descriptors.h" | 10 #include "src/objects-body-descriptors.h" |
(...skipping 1246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1257 Context::index == Context::MAP_CACHE_INDEX) { \ | 1257 Context::index == Context::MAP_CACHE_INDEX) { \ |
1258 SetInternalReference(context, entry, #name, context->get(Context::index), \ | 1258 SetInternalReference(context, entry, #name, context->get(Context::index), \ |
1259 FixedArray::OffsetOfElementAt(Context::index)); \ | 1259 FixedArray::OffsetOfElementAt(Context::index)); \ |
1260 } else { \ | 1260 } else { \ |
1261 SetWeakReference(context, entry, #name, context->get(Context::index), \ | 1261 SetWeakReference(context, entry, #name, context->get(Context::index), \ |
1262 FixedArray::OffsetOfElementAt(Context::index)); \ | 1262 FixedArray::OffsetOfElementAt(Context::index)); \ |
1263 } | 1263 } |
1264 EXTRACT_CONTEXT_FIELD(CLOSURE_INDEX, JSFunction, closure); | 1264 EXTRACT_CONTEXT_FIELD(CLOSURE_INDEX, JSFunction, closure); |
1265 EXTRACT_CONTEXT_FIELD(PREVIOUS_INDEX, Context, previous); | 1265 EXTRACT_CONTEXT_FIELD(PREVIOUS_INDEX, Context, previous); |
1266 EXTRACT_CONTEXT_FIELD(EXTENSION_INDEX, Object, extension); | 1266 EXTRACT_CONTEXT_FIELD(EXTENSION_INDEX, Object, extension); |
1267 EXTRACT_CONTEXT_FIELD(GLOBAL_OBJECT_INDEX, JSGlobalObject, global); | 1267 EXTRACT_CONTEXT_FIELD(NATIVE_CONTEXT_INDEX, Context, native_context); |
1268 if (context->IsNativeContext()) { | 1268 if (context->IsNativeContext()) { |
1269 TagObject(context->normalized_map_cache(), "(context norm. map cache)"); | 1269 TagObject(context->normalized_map_cache(), "(context norm. map cache)"); |
1270 TagObject(context->runtime_context(), "(runtime context)"); | |
1271 TagObject(context->embedder_data(), "(context data)"); | 1270 TagObject(context->embedder_data(), "(context data)"); |
1272 NATIVE_CONTEXT_FIELDS(EXTRACT_CONTEXT_FIELD) | 1271 NATIVE_CONTEXT_FIELDS(EXTRACT_CONTEXT_FIELD) |
1273 EXTRACT_CONTEXT_FIELD(OPTIMIZED_FUNCTIONS_LIST, unused, | 1272 EXTRACT_CONTEXT_FIELD(OPTIMIZED_FUNCTIONS_LIST, unused, |
1274 optimized_functions_list); | 1273 optimized_functions_list); |
1275 EXTRACT_CONTEXT_FIELD(OPTIMIZED_CODE_LIST, unused, optimized_code_list); | 1274 EXTRACT_CONTEXT_FIELD(OPTIMIZED_CODE_LIST, unused, optimized_code_list); |
1276 EXTRACT_CONTEXT_FIELD(DEOPTIMIZED_CODE_LIST, unused, deoptimized_code_list); | 1275 EXTRACT_CONTEXT_FIELD(DEOPTIMIZED_CODE_LIST, unused, deoptimized_code_list); |
1277 EXTRACT_CONTEXT_FIELD(NEXT_CONTEXT_LINK, unused, next_context_link); | 1276 EXTRACT_CONTEXT_FIELD(NEXT_CONTEXT_LINK, unused, next_context_link); |
1278 #undef EXTRACT_CONTEXT_FIELD | 1277 #undef EXTRACT_CONTEXT_FIELD |
1279 STATIC_ASSERT(Context::OPTIMIZED_FUNCTIONS_LIST == | 1278 STATIC_ASSERT(Context::OPTIMIZED_FUNCTIONS_LIST == |
1280 Context::FIRST_WEAK_SLOT); | 1279 Context::FIRST_WEAK_SLOT); |
(...skipping 1890 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3171 for (int i = 1; i < sorted_strings.length(); ++i) { | 3170 for (int i = 1; i < sorted_strings.length(); ++i) { |
3172 writer_->AddCharacter(','); | 3171 writer_->AddCharacter(','); |
3173 SerializeString(sorted_strings[i]); | 3172 SerializeString(sorted_strings[i]); |
3174 if (writer_->aborted()) return; | 3173 if (writer_->aborted()) return; |
3175 } | 3174 } |
3176 } | 3175 } |
3177 | 3176 |
3178 | 3177 |
3179 } // namespace internal | 3178 } // namespace internal |
3180 } // namespace v8 | 3179 } // namespace v8 |
OLD | NEW |