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

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

Issue 2625073002: Revert of Internalize strings in-place (Closed)
Patch Set: Created 3 years, 11 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/ppc/codegen-ppc.cc ('k') | src/regexp/regexp-macro-assembler.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 1147 matching lines...) Expand 10 before | Expand all | Expand 10 after
1158 if (string->IsConsString()) { 1158 if (string->IsConsString()) {
1159 ConsString* cs = ConsString::cast(string); 1159 ConsString* cs = ConsString::cast(string);
1160 SetInternalReference(cs, entry, "first", cs->first(), 1160 SetInternalReference(cs, entry, "first", cs->first(),
1161 ConsString::kFirstOffset); 1161 ConsString::kFirstOffset);
1162 SetInternalReference(cs, entry, "second", cs->second(), 1162 SetInternalReference(cs, entry, "second", cs->second(),
1163 ConsString::kSecondOffset); 1163 ConsString::kSecondOffset);
1164 } else if (string->IsSlicedString()) { 1164 } else if (string->IsSlicedString()) {
1165 SlicedString* ss = SlicedString::cast(string); 1165 SlicedString* ss = SlicedString::cast(string);
1166 SetInternalReference(ss, entry, "parent", ss->parent(), 1166 SetInternalReference(ss, entry, "parent", ss->parent(),
1167 SlicedString::kParentOffset); 1167 SlicedString::kParentOffset);
1168 } else if (string->IsThinString()) {
1169 ThinString* ts = ThinString::cast(string);
1170 SetInternalReference(ts, entry, "actual", ts->actual(),
1171 ThinString::kActualOffset);
1172 } 1168 }
1173 } 1169 }
1174 1170
1175 1171
1176 void V8HeapExplorer::ExtractSymbolReferences(int entry, Symbol* symbol) { 1172 void V8HeapExplorer::ExtractSymbolReferences(int entry, Symbol* symbol) {
1177 SetInternalReference(symbol, entry, 1173 SetInternalReference(symbol, entry,
1178 "name", symbol->name(), 1174 "name", symbol->name(),
1179 Symbol::kNameOffset); 1175 Symbol::kNameOffset);
1180 } 1176 }
1181 1177
(...skipping 1933 matching lines...) Expand 10 before | Expand all | Expand 10 after
3115 for (int i = 1; i < sorted_strings.length(); ++i) { 3111 for (int i = 1; i < sorted_strings.length(); ++i) {
3116 writer_->AddCharacter(','); 3112 writer_->AddCharacter(',');
3117 SerializeString(sorted_strings[i]); 3113 SerializeString(sorted_strings[i]);
3118 if (writer_->aborted()) return; 3114 if (writer_->aborted()) return;
3119 } 3115 }
3120 } 3116 }
3121 3117
3122 3118
3123 } // namespace internal 3119 } // namespace internal
3124 } // namespace v8 3120 } // namespace v8
OLDNEW
« no previous file with comments | « src/ppc/codegen-ppc.cc ('k') | src/regexp/regexp-macro-assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698