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

Side by Side Diff: src/objects-debug.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: 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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/disasm.h" 7 #include "src/disasm.h"
8 #include "src/disassembler.h" 8 #include "src/disassembler.h"
9 #include "src/heap/objects-visiting.h" 9 #include "src/heap/objects-visiting.h"
10 #include "src/jsregexp.h" 10 #include "src/jsregexp.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 case MAP_TYPE: 54 case MAP_TYPE:
55 Map::cast(this)->MapVerify(); 55 Map::cast(this)->MapVerify();
56 break; 56 break;
57 case HEAP_NUMBER_TYPE: 57 case HEAP_NUMBER_TYPE:
58 case MUTABLE_HEAP_NUMBER_TYPE: 58 case MUTABLE_HEAP_NUMBER_TYPE:
59 HeapNumber::cast(this)->HeapNumberVerify(); 59 HeapNumber::cast(this)->HeapNumberVerify();
60 break; 60 break;
61 case FLOAT32X4_TYPE: 61 case FLOAT32X4_TYPE:
62 Float32x4::cast(this)->Float32x4Verify(); 62 Float32x4::cast(this)->Float32x4Verify();
63 break; 63 break;
64 case INT32X4_TYPE:
65 Int32x4::cast(this)->Int32x4Verify();
66 break;
67 case BOOL32X4_TYPE:
68 Bool32x4::cast(this)->Bool32x4Verify();
69 break;
70 case INT16X8_TYPE:
71 Int16x8::cast(this)->Int16x8Verify();
72 break;
73 case BOOL16X8_TYPE:
74 Bool16x8::cast(this)->Bool16x8Verify();
75 break;
76 case INT8X16_TYPE:
77 Int8x16::cast(this)->Int8x16Verify();
78 break;
79 case BOOL8X16_TYPE:
80 Bool8x16::cast(this)->Bool8x16Verify();
81 break;
64 case FIXED_ARRAY_TYPE: 82 case FIXED_ARRAY_TYPE:
65 FixedArray::cast(this)->FixedArrayVerify(); 83 FixedArray::cast(this)->FixedArrayVerify();
66 break; 84 break;
67 case FIXED_DOUBLE_ARRAY_TYPE: 85 case FIXED_DOUBLE_ARRAY_TYPE:
68 FixedDoubleArray::cast(this)->FixedDoubleArrayVerify(); 86 FixedDoubleArray::cast(this)->FixedDoubleArrayVerify();
69 break; 87 break;
70 case BYTE_ARRAY_TYPE: 88 case BYTE_ARRAY_TYPE:
71 ByteArray::cast(this)->ByteArrayVerify(); 89 ByteArray::cast(this)->ByteArrayVerify();
72 break; 90 break;
73 case BYTECODE_ARRAY_TYPE: 91 case BYTECODE_ARRAY_TYPE:
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 228
211 229
212 void HeapNumber::HeapNumberVerify() { 230 void HeapNumber::HeapNumberVerify() {
213 CHECK(IsHeapNumber() || IsMutableHeapNumber()); 231 CHECK(IsHeapNumber() || IsMutableHeapNumber());
214 } 232 }
215 233
216 234
217 void Float32x4::Float32x4Verify() { CHECK(IsFloat32x4()); } 235 void Float32x4::Float32x4Verify() { CHECK(IsFloat32x4()); }
218 236
219 237
238 void Int32x4::Int32x4Verify() { CHECK(IsInt32x4()); }
239
240
241 void Bool32x4::Bool32x4Verify() { CHECK(IsBool32x4()); }
242
243
244 void Int16x8::Int16x8Verify() { CHECK(IsInt16x8()); }
245
246
247 void Bool16x8::Bool16x8Verify() { CHECK(IsBool16x8()); }
248
249
250 void Int8x16::Int8x16Verify() { CHECK(IsInt8x16()); }
251
252
253 void Bool8x16::Bool8x16Verify() { CHECK(IsBool8x16()); }
254
255
220 void ByteArray::ByteArrayVerify() { 256 void ByteArray::ByteArrayVerify() {
221 CHECK(IsByteArray()); 257 CHECK(IsByteArray());
222 } 258 }
223 259
224 260
225 void BytecodeArray::BytecodeArrayVerify() { 261 void BytecodeArray::BytecodeArrayVerify() {
226 // TODO(oth): Walk bytecodes and immediate values to validate sanity. 262 // TODO(oth): Walk bytecodes and immediate values to validate sanity.
227 CHECK(IsBytecodeArray()); 263 CHECK(IsBytecodeArray());
228 } 264 }
229 265
(...skipping 1044 matching lines...) Expand 10 before | Expand all | Expand 10 after
1274 : it.rinfo()->target_object(); 1310 : it.rinfo()->target_object();
1275 CHECK(!CanLeak(target, heap, skip_weak_cell)); 1311 CHECK(!CanLeak(target, heap, skip_weak_cell));
1276 } 1312 }
1277 } 1313 }
1278 1314
1279 1315
1280 #endif // DEBUG 1316 #endif // DEBUG
1281 1317
1282 } // namespace internal 1318 } // namespace internal
1283 } // namespace v8 1319 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698