OLD | NEW |
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/objects.h" | 5 #include "src/objects.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/interpreter/bytecodes.h" | 9 #include "src/interpreter/bytecodes.h" |
10 #include "src/objects-inl.h" | 10 #include "src/objects-inl.h" |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 #define SIMD128_INT_PRINT_FUNCTION(type, lane_count) \ | 214 #define SIMD128_INT_PRINT_FUNCTION(type, lane_count) \ |
215 void type::type##Print(std::ostream& os) { \ | 215 void type::type##Print(std::ostream& os) { \ |
216 char arr[100]; \ | 216 char arr[100]; \ |
217 Vector<char> buffer(arr, arraysize(arr)); \ | 217 Vector<char> buffer(arr, arraysize(arr)); \ |
218 os << std::string(IntToCString(get_lane(0), buffer)); \ | 218 os << std::string(IntToCString(get_lane(0), buffer)); \ |
219 for (int i = 1; i < lane_count; i++) { \ | 219 for (int i = 1; i < lane_count; i++) { \ |
220 os << ", " << std::string(IntToCString(get_lane(i), buffer)); \ | 220 os << ", " << std::string(IntToCString(get_lane(i), buffer)); \ |
221 } \ | 221 } \ |
222 } | 222 } |
223 SIMD128_INT_PRINT_FUNCTION(Int32x4, 4) | 223 SIMD128_INT_PRINT_FUNCTION(Int32x4, 4) |
| 224 SIMD128_INT_PRINT_FUNCTION(Uint32x4, 4) |
224 SIMD128_INT_PRINT_FUNCTION(Int16x8, 8) | 225 SIMD128_INT_PRINT_FUNCTION(Int16x8, 8) |
| 226 SIMD128_INT_PRINT_FUNCTION(Uint16x8, 8) |
225 SIMD128_INT_PRINT_FUNCTION(Int8x16, 16) | 227 SIMD128_INT_PRINT_FUNCTION(Int8x16, 16) |
| 228 SIMD128_INT_PRINT_FUNCTION(Uint8x16, 16) |
226 #undef SIMD128_INT_PRINT_FUNCTION | 229 #undef SIMD128_INT_PRINT_FUNCTION |
227 | 230 |
228 | 231 |
229 #define SIMD128_BOOL_PRINT_FUNCTION(type, lane_count) \ | 232 #define SIMD128_BOOL_PRINT_FUNCTION(type, lane_count) \ |
230 void type::type##Print(std::ostream& os) { \ | 233 void type::type##Print(std::ostream& os) { \ |
231 char arr[100]; \ | 234 char arr[100]; \ |
232 Vector<char> buffer(arr, arraysize(arr)); \ | 235 Vector<char> buffer(arr, arraysize(arr)); \ |
233 os << std::string(get_lane(0) ? "true" : "false"); \ | 236 os << std::string(get_lane(0) ? "true" : "false"); \ |
234 for (int i = 1; i < lane_count; i++) { \ | 237 for (int i = 1; i < lane_count; i++) { \ |
235 os << ", " << std::string(get_lane(i) ? "true" : "false"); \ | 238 os << ", " << std::string(get_lane(i) ? "true" : "false"); \ |
(...skipping 1029 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1265 } | 1268 } |
1266 } | 1269 } |
1267 | 1270 |
1268 | 1271 |
1269 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT | 1272 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT |
1270 TransitionArray::PrintTransitions(os, map()->raw_transitions()); | 1273 TransitionArray::PrintTransitions(os, map()->raw_transitions()); |
1271 } | 1274 } |
1272 #endif // defined(DEBUG) || defined(OBJECT_PRINT) | 1275 #endif // defined(DEBUG) || defined(OBJECT_PRINT) |
1273 } // namespace internal | 1276 } // namespace internal |
1274 } // namespace v8 | 1277 } // namespace v8 |
OLD | NEW |