Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Side by Side Diff: src/profiler/heap-snapshot-generator.cc

Issue 1478303002: Revert of [runtime] Replace global object link with native context link in all contexts. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/mips64/macro-assembler-mips64.cc ('k') | src/runtime/runtime-scopes.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1230 matching lines...) Expand 10 before | Expand all | Expand 10 after
1241 Context::index == Context::MAP_CACHE_INDEX) { \ 1241 Context::index == Context::MAP_CACHE_INDEX) { \
1242 SetInternalReference(context, entry, #name, context->get(Context::index), \ 1242 SetInternalReference(context, entry, #name, context->get(Context::index), \
1243 FixedArray::OffsetOfElementAt(Context::index)); \ 1243 FixedArray::OffsetOfElementAt(Context::index)); \
1244 } else { \ 1244 } else { \
1245 SetWeakReference(context, entry, #name, context->get(Context::index), \ 1245 SetWeakReference(context, entry, #name, context->get(Context::index), \
1246 FixedArray::OffsetOfElementAt(Context::index)); \ 1246 FixedArray::OffsetOfElementAt(Context::index)); \
1247 } 1247 }
1248 EXTRACT_CONTEXT_FIELD(CLOSURE_INDEX, JSFunction, closure); 1248 EXTRACT_CONTEXT_FIELD(CLOSURE_INDEX, JSFunction, closure);
1249 EXTRACT_CONTEXT_FIELD(PREVIOUS_INDEX, Context, previous); 1249 EXTRACT_CONTEXT_FIELD(PREVIOUS_INDEX, Context, previous);
1250 EXTRACT_CONTEXT_FIELD(EXTENSION_INDEX, Object, extension); 1250 EXTRACT_CONTEXT_FIELD(EXTENSION_INDEX, Object, extension);
1251 EXTRACT_CONTEXT_FIELD(NATIVE_CONTEXT_INDEX, Context, native_context); 1251 EXTRACT_CONTEXT_FIELD(GLOBAL_OBJECT_INDEX, JSGlobalObject, global);
1252 if (context->IsNativeContext()) { 1252 if (context->IsNativeContext()) {
1253 TagObject(context->normalized_map_cache(), "(context norm. map cache)"); 1253 TagObject(context->normalized_map_cache(), "(context norm. map cache)");
1254 TagObject(context->runtime_context(), "(runtime context)");
1254 TagObject(context->embedder_data(), "(context data)"); 1255 TagObject(context->embedder_data(), "(context data)");
1255 NATIVE_CONTEXT_FIELDS(EXTRACT_CONTEXT_FIELD) 1256 NATIVE_CONTEXT_FIELDS(EXTRACT_CONTEXT_FIELD)
1256 EXTRACT_CONTEXT_FIELD(OPTIMIZED_FUNCTIONS_LIST, unused, 1257 EXTRACT_CONTEXT_FIELD(OPTIMIZED_FUNCTIONS_LIST, unused,
1257 optimized_functions_list); 1258 optimized_functions_list);
1258 EXTRACT_CONTEXT_FIELD(OPTIMIZED_CODE_LIST, unused, optimized_code_list); 1259 EXTRACT_CONTEXT_FIELD(OPTIMIZED_CODE_LIST, unused, optimized_code_list);
1259 EXTRACT_CONTEXT_FIELD(DEOPTIMIZED_CODE_LIST, unused, deoptimized_code_list); 1260 EXTRACT_CONTEXT_FIELD(DEOPTIMIZED_CODE_LIST, unused, deoptimized_code_list);
1260 EXTRACT_CONTEXT_FIELD(NEXT_CONTEXT_LINK, unused, next_context_link); 1261 EXTRACT_CONTEXT_FIELD(NEXT_CONTEXT_LINK, unused, next_context_link);
1261 #undef EXTRACT_CONTEXT_FIELD 1262 #undef EXTRACT_CONTEXT_FIELD
1262 STATIC_ASSERT(Context::OPTIMIZED_FUNCTIONS_LIST == 1263 STATIC_ASSERT(Context::OPTIMIZED_FUNCTIONS_LIST ==
1263 Context::FIRST_WEAK_SLOT); 1264 Context::FIRST_WEAK_SLOT);
(...skipping 1906 matching lines...) Expand 10 before | Expand all | Expand 10 after
3170 for (int i = 1; i < sorted_strings.length(); ++i) { 3171 for (int i = 1; i < sorted_strings.length(); ++i) {
3171 writer_->AddCharacter(','); 3172 writer_->AddCharacter(',');
3172 SerializeString(sorted_strings[i]); 3173 SerializeString(sorted_strings[i]);
3173 if (writer_->aborted()) return; 3174 if (writer_->aborted()) return;
3174 } 3175 }
3175 } 3176 }
3176 3177
3177 3178
3178 } // namespace internal 3179 } // namespace internal
3179 } // namespace v8 3180 } // namespace v8
OLDNEW
« no previous file with comments | « src/mips64/macro-assembler-mips64.cc ('k') | src/runtime/runtime-scopes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698