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

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

Issue 1160443009: Add SIMD.Float32x4 functions. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Tests working. Created 5 years, 5 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 const char* HeapEntry::TypeAsString() { 142 const char* HeapEntry::TypeAsString() {
143 switch (type()) { 143 switch (type()) {
144 case kHidden: return "/hidden/"; 144 case kHidden: return "/hidden/";
145 case kObject: return "/object/"; 145 case kObject: return "/object/";
146 case kClosure: return "/closure/"; 146 case kClosure: return "/closure/";
147 case kString: return "/string/"; 147 case kString: return "/string/";
148 case kCode: return "/code/"; 148 case kCode: return "/code/";
149 case kArray: return "/array/"; 149 case kArray: return "/array/";
150 case kRegExp: return "/regexp/"; 150 case kRegExp: return "/regexp/";
151 case kHeapNumber: return "/number/"; 151 case kHeapNumber: return "/number/";
152 case kSimdValue:
153 return "/simd/";
152 case kNative: return "/native/"; 154 case kNative: return "/native/";
153 case kSynthetic: return "/synthetic/"; 155 case kSynthetic: return "/synthetic/";
154 case kConsString: return "/concatenated string/"; 156 case kConsString: return "/concatenated string/";
155 case kSlicedString: return "/sliced string/"; 157 case kSlicedString: return "/sliced string/";
156 case kSymbol: return "/symbol/"; 158 case kSymbol: return "/symbol/";
157 case kSimdValue: return "/simd/";
158 default: return "???"; 159 default: return "???";
159 } 160 }
160 } 161 }
161 162
162 163
163 // It is very important to keep objects that form a heap snapshot 164 // It is very important to keep objects that form a heap snapshot
164 // as small as possible. 165 // as small as possible.
165 namespace { // Avoid littering the global namespace. 166 namespace { // Avoid littering the global namespace.
166 167
167 template <size_t ptr_size> struct SnapshotSizeConstants; 168 template <size_t ptr_size> struct SnapshotSizeConstants;
(...skipping 3009 matching lines...) Expand 10 before | Expand all | Expand 10 after
3177 for (int i = 1; i < sorted_strings.length(); ++i) { 3178 for (int i = 1; i < sorted_strings.length(); ++i) {
3178 writer_->AddCharacter(','); 3179 writer_->AddCharacter(',');
3179 SerializeString(sorted_strings[i]); 3180 SerializeString(sorted_strings[i]);
3180 if (writer_->aborted()) return; 3181 if (writer_->aborted()) return;
3181 } 3182 }
3182 } 3183 }
3183 3184
3184 3185
3185 } // namespace internal 3186 } // namespace internal
3186 } // namespace v8 3187 } // 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