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/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "src/heap-snapshot-generator-inl.h" | 7 #include "src/heap-snapshot-generator-inl.h" |
8 | 8 |
9 #include "src/allocation-tracker.h" | 9 #include "src/allocation-tracker.h" |
10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
(...skipping 1245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1256 FixedArray::OffsetOfElementAt(Context::index)); \ | 1256 FixedArray::OffsetOfElementAt(Context::index)); \ |
1257 } else { \ | 1257 } else { \ |
1258 SetWeakReference(context, entry, #name, context->get(Context::index), \ | 1258 SetWeakReference(context, entry, #name, context->get(Context::index), \ |
1259 FixedArray::OffsetOfElementAt(Context::index)); \ | 1259 FixedArray::OffsetOfElementAt(Context::index)); \ |
1260 } | 1260 } |
1261 EXTRACT_CONTEXT_FIELD(CLOSURE_INDEX, JSFunction, closure); | 1261 EXTRACT_CONTEXT_FIELD(CLOSURE_INDEX, JSFunction, closure); |
1262 EXTRACT_CONTEXT_FIELD(PREVIOUS_INDEX, Context, previous); | 1262 EXTRACT_CONTEXT_FIELD(PREVIOUS_INDEX, Context, previous); |
1263 EXTRACT_CONTEXT_FIELD(EXTENSION_INDEX, Object, extension); | 1263 EXTRACT_CONTEXT_FIELD(EXTENSION_INDEX, Object, extension); |
1264 EXTRACT_CONTEXT_FIELD(GLOBAL_OBJECT_INDEX, GlobalObject, global); | 1264 EXTRACT_CONTEXT_FIELD(GLOBAL_OBJECT_INDEX, GlobalObject, global); |
1265 if (context->IsNativeContext()) { | 1265 if (context->IsNativeContext()) { |
1266 TagObject(context->jsfunction_result_caches(), | |
1267 "(context func. result caches)"); | |
1268 TagObject(context->normalized_map_cache(), "(context norm. map cache)"); | 1266 TagObject(context->normalized_map_cache(), "(context norm. map cache)"); |
1269 TagObject(context->runtime_context(), "(runtime context)"); | 1267 TagObject(context->runtime_context(), "(runtime context)"); |
1270 TagObject(context->embedder_data(), "(context data)"); | 1268 TagObject(context->embedder_data(), "(context data)"); |
1271 NATIVE_CONTEXT_FIELDS(EXTRACT_CONTEXT_FIELD); | 1269 NATIVE_CONTEXT_FIELDS(EXTRACT_CONTEXT_FIELD); |
1272 EXTRACT_CONTEXT_FIELD(OPTIMIZED_FUNCTIONS_LIST, unused, | 1270 EXTRACT_CONTEXT_FIELD(OPTIMIZED_FUNCTIONS_LIST, unused, |
1273 optimized_functions_list); | 1271 optimized_functions_list); |
1274 EXTRACT_CONTEXT_FIELD(OPTIMIZED_CODE_LIST, unused, optimized_code_list); | 1272 EXTRACT_CONTEXT_FIELD(OPTIMIZED_CODE_LIST, unused, optimized_code_list); |
1275 EXTRACT_CONTEXT_FIELD(DEOPTIMIZED_CODE_LIST, unused, deoptimized_code_list); | 1273 EXTRACT_CONTEXT_FIELD(DEOPTIMIZED_CODE_LIST, unused, deoptimized_code_list); |
1276 EXTRACT_CONTEXT_FIELD(NEXT_CONTEXT_LINK, unused, next_context_link); | 1274 EXTRACT_CONTEXT_FIELD(NEXT_CONTEXT_LINK, unused, next_context_link); |
1277 #undef EXTRACT_CONTEXT_FIELD | 1275 #undef EXTRACT_CONTEXT_FIELD |
(...skipping 1897 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3175 for (int i = 1; i < sorted_strings.length(); ++i) { | 3173 for (int i = 1; i < sorted_strings.length(); ++i) { |
3176 writer_->AddCharacter(','); | 3174 writer_->AddCharacter(','); |
3177 SerializeString(sorted_strings[i]); | 3175 SerializeString(sorted_strings[i]); |
3178 if (writer_->aborted()) return; | 3176 if (writer_->aborted()) return; |
3179 } | 3177 } |
3180 } | 3178 } |
3181 | 3179 |
3182 | 3180 |
3183 } // namespace internal | 3181 } // namespace internal |
3184 } // namespace v8 | 3182 } // namespace v8 |
OLD | NEW |