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

Side by Side Diff: src/objects-debug.cc

Issue 1273353003: [simd.js] Single SIMD128_VALUE_TYPE for all Simd128Values. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix slow check failures. REBASE. 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/objects.cc ('k') | src/objects-inl.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 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/jsregexp.h" 9 #include "src/jsregexp.h"
10 #include "src/macro-assembler.h" 10 #include "src/macro-assembler.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 case SYMBOL_TYPE: 50 case SYMBOL_TYPE:
51 Symbol::cast(this)->SymbolVerify(); 51 Symbol::cast(this)->SymbolVerify();
52 break; 52 break;
53 case MAP_TYPE: 53 case MAP_TYPE:
54 Map::cast(this)->MapVerify(); 54 Map::cast(this)->MapVerify();
55 break; 55 break;
56 case HEAP_NUMBER_TYPE: 56 case HEAP_NUMBER_TYPE:
57 case MUTABLE_HEAP_NUMBER_TYPE: 57 case MUTABLE_HEAP_NUMBER_TYPE:
58 HeapNumber::cast(this)->HeapNumberVerify(); 58 HeapNumber::cast(this)->HeapNumberVerify();
59 break; 59 break;
60 case FLOAT32X4_TYPE: 60 case SIMD128_VALUE_TYPE:
61 Float32x4::cast(this)->Float32x4Verify(); 61 Simd128Value::cast(this)->Simd128ValueVerify();
62 break;
63 case INT32X4_TYPE:
64 Int32x4::cast(this)->Int32x4Verify();
65 break;
66 case BOOL32X4_TYPE:
67 Bool32x4::cast(this)->Bool32x4Verify();
68 break;
69 case INT16X8_TYPE:
70 Int16x8::cast(this)->Int16x8Verify();
71 break;
72 case BOOL16X8_TYPE:
73 Bool16x8::cast(this)->Bool16x8Verify();
74 break;
75 case INT8X16_TYPE:
76 Int8x16::cast(this)->Int8x16Verify();
77 break;
78 case BOOL8X16_TYPE:
79 Bool8x16::cast(this)->Bool8x16Verify();
80 break; 62 break;
81 case FIXED_ARRAY_TYPE: 63 case FIXED_ARRAY_TYPE:
82 FixedArray::cast(this)->FixedArrayVerify(); 64 FixedArray::cast(this)->FixedArrayVerify();
83 break; 65 break;
84 case FIXED_DOUBLE_ARRAY_TYPE: 66 case FIXED_DOUBLE_ARRAY_TYPE:
85 FixedDoubleArray::cast(this)->FixedDoubleArrayVerify(); 67 FixedDoubleArray::cast(this)->FixedDoubleArrayVerify();
86 break; 68 break;
87 case BYTE_ARRAY_TYPE: 69 case BYTE_ARRAY_TYPE:
88 ByteArray::cast(this)->ByteArrayVerify(); 70 ByteArray::cast(this)->ByteArrayVerify();
89 break; 71 break;
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 CHECK(name()->IsUndefined() || name()->IsString()); 206 CHECK(name()->IsUndefined() || name()->IsString());
225 CHECK(flags()->IsSmi()); 207 CHECK(flags()->IsSmi());
226 } 208 }
227 209
228 210
229 void HeapNumber::HeapNumberVerify() { 211 void HeapNumber::HeapNumberVerify() {
230 CHECK(IsHeapNumber() || IsMutableHeapNumber()); 212 CHECK(IsHeapNumber() || IsMutableHeapNumber());
231 } 213 }
232 214
233 215
234 void Float32x4::Float32x4Verify() { CHECK(IsFloat32x4()); } 216 void Simd128Value::Simd128ValueVerify() { CHECK(IsSimd128Value()); }
235
236
237 void Int32x4::Int32x4Verify() { CHECK(IsInt32x4()); }
238
239
240 void Bool32x4::Bool32x4Verify() { CHECK(IsBool32x4()); }
241
242
243 void Int16x8::Int16x8Verify() { CHECK(IsInt16x8()); }
244
245
246 void Bool16x8::Bool16x8Verify() { CHECK(IsBool16x8()); }
247
248
249 void Int8x16::Int8x16Verify() { CHECK(IsInt8x16()); }
250
251
252 void Bool8x16::Bool8x16Verify() { CHECK(IsBool8x16()); }
253 217
254 218
255 void ByteArray::ByteArrayVerify() { 219 void ByteArray::ByteArrayVerify() {
256 CHECK(IsByteArray()); 220 CHECK(IsByteArray());
257 } 221 }
258 222
259 223
260 void BytecodeArray::BytecodeArrayVerify() { 224 void BytecodeArray::BytecodeArrayVerify() {
261 // TODO(oth): Walk bytecodes and immediate values to validate sanity. 225 // TODO(oth): Walk bytecodes and immediate values to validate sanity.
262 CHECK(IsBytecodeArray()); 226 CHECK(IsBytecodeArray());
(...skipping 1071 matching lines...) Expand 10 before | Expand all | Expand 10 after
1334 1298
1335 // Both are done at the same time. 1299 // Both are done at the same time.
1336 CHECK_EQ(new_it.done(), old_it.done()); 1300 CHECK_EQ(new_it.done(), old_it.done());
1337 } 1301 }
1338 1302
1339 1303
1340 #endif // DEBUG 1304 #endif // DEBUG
1341 1305
1342 } // namespace internal 1306 } // namespace internal
1343 } // namespace v8 1307 } // namespace v8
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698