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

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

Issue 1250733005: SIMD.js Add the other SIMD Phase 1 types. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Don't run downloaded SIMD value type tests. Created 5 years, 4 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/harmony-simd.js ('k') | src/heap/heap.h » ('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/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 843 matching lines...) Expand 10 before | Expand all | Expand 10 after
854 : ""); 854 : "");
855 } else if (object->IsNativeContext()) { 855 } else if (object->IsNativeContext()) {
856 return AddEntry(object, HeapEntry::kHidden, "system / NativeContext"); 856 return AddEntry(object, HeapEntry::kHidden, "system / NativeContext");
857 } else if (object->IsContext()) { 857 } else if (object->IsContext()) {
858 return AddEntry(object, HeapEntry::kObject, "system / Context"); 858 return AddEntry(object, HeapEntry::kObject, "system / Context");
859 } else if (object->IsFixedArray() || object->IsFixedDoubleArray() || 859 } else if (object->IsFixedArray() || object->IsFixedDoubleArray() ||
860 object->IsByteArray()) { 860 object->IsByteArray()) {
861 return AddEntry(object, HeapEntry::kArray, ""); 861 return AddEntry(object, HeapEntry::kArray, "");
862 } else if (object->IsHeapNumber()) { 862 } else if (object->IsHeapNumber()) {
863 return AddEntry(object, HeapEntry::kHeapNumber, "number"); 863 return AddEntry(object, HeapEntry::kHeapNumber, "number");
864 } else if (object->IsFloat32x4()) { 864 } else if (object->IsSimd128Value()) {
865 return AddEntry(object, HeapEntry::kSimdValue, "simd"); 865 return AddEntry(object, HeapEntry::kSimdValue, "simd");
866 } 866 }
867 return AddEntry(object, HeapEntry::kHidden, GetSystemEntryName(object)); 867 return AddEntry(object, HeapEntry::kHidden, GetSystemEntryName(object));
868 } 868 }
869 869
870 870
871 HeapEntry* V8HeapExplorer::AddEntry(HeapObject* object, 871 HeapEntry* V8HeapExplorer::AddEntry(HeapObject* object,
872 HeapEntry::Type type, 872 HeapEntry::Type type,
873 const char* name) { 873 const char* name) {
874 return AddEntry(object->address(), type, name, object->Size()); 874 return AddEntry(object->address(), type, name, object->Size());
(...skipping 2300 matching lines...) Expand 10 before | Expand all | Expand 10 after
3175 for (int i = 1; i < sorted_strings.length(); ++i) { 3175 for (int i = 1; i < sorted_strings.length(); ++i) {
3176 writer_->AddCharacter(','); 3176 writer_->AddCharacter(',');
3177 SerializeString(sorted_strings[i]); 3177 SerializeString(sorted_strings[i]);
3178 if (writer_->aborted()) return; 3178 if (writer_->aborted()) return;
3179 } 3179 }
3180 } 3180 }
3181 3181
3182 3182
3183 } // namespace internal 3183 } // namespace internal
3184 } // namespace v8 3184 } // namespace v8
OLDNEW
« no previous file with comments | « src/harmony-simd.js ('k') | src/heap/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698