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

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

Issue 2233673003: Remove CONST_LEGACY VariableMode (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased Created 4 years, 3 months 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/parsing/pattern-rewriter.cc ('k') | no next file » | 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 1198 matching lines...) Expand 10 before | Expand all | Expand 10 after
1209 // Add context allocated locals. 1209 // Add context allocated locals.
1210 int context_locals = scope_info->ContextLocalCount(); 1210 int context_locals = scope_info->ContextLocalCount();
1211 for (int i = 0; i < context_locals; ++i) { 1211 for (int i = 0; i < context_locals; ++i) {
1212 String* local_name = scope_info->ContextLocalName(i); 1212 String* local_name = scope_info->ContextLocalName(i);
1213 int idx = Context::MIN_CONTEXT_SLOTS + i; 1213 int idx = Context::MIN_CONTEXT_SLOTS + i;
1214 SetContextReference(context, entry, local_name, context->get(idx), 1214 SetContextReference(context, entry, local_name, context->get(idx),
1215 Context::OffsetOfElementAt(idx)); 1215 Context::OffsetOfElementAt(idx));
1216 } 1216 }
1217 if (scope_info->HasFunctionName()) { 1217 if (scope_info->HasFunctionName()) {
1218 String* name = scope_info->FunctionName(); 1218 String* name = scope_info->FunctionName();
1219 VariableMode mode; 1219 int idx = scope_info->FunctionContextSlotIndex(name);
1220 int idx = scope_info->FunctionContextSlotIndex(name, &mode);
1221 if (idx >= 0) { 1220 if (idx >= 0) {
1222 SetContextReference(context, entry, name, context->get(idx), 1221 SetContextReference(context, entry, name, context->get(idx),
1223 Context::OffsetOfElementAt(idx)); 1222 Context::OffsetOfElementAt(idx));
1224 } 1223 }
1225 } 1224 }
1226 } 1225 }
1227 1226
1228 #define EXTRACT_CONTEXT_FIELD(index, type, name) \ 1227 #define EXTRACT_CONTEXT_FIELD(index, type, name) \
1229 if (Context::index < Context::FIRST_WEAK_SLOT || \ 1228 if (Context::index < Context::FIRST_WEAK_SLOT || \
1230 Context::index == Context::MAP_CACHE_INDEX) { \ 1229 Context::index == Context::MAP_CACHE_INDEX) { \
(...skipping 1893 matching lines...) Expand 10 before | Expand all | Expand 10 after
3124 for (int i = 1; i < sorted_strings.length(); ++i) { 3123 for (int i = 1; i < sorted_strings.length(); ++i) {
3125 writer_->AddCharacter(','); 3124 writer_->AddCharacter(',');
3126 SerializeString(sorted_strings[i]); 3125 SerializeString(sorted_strings[i]);
3127 if (writer_->aborted()) return; 3126 if (writer_->aborted()) return;
3128 } 3127 }
3129 } 3128 }
3130 3129
3131 3130
3132 } // namespace internal 3131 } // namespace internal
3133 } // namespace v8 3132 } // namespace v8
OLDNEW
« no previous file with comments | « src/parsing/pattern-rewriter.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698