| 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/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/interpreter/bytecodes.h" | 9 #include "src/interpreter/bytecodes.h" |
| 10 #include "src/ostreams.h" | 10 #include "src/ostreams.h" |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 #define SIMD128_INT_PRINT_FUNCTION(type, lane_count) \ | 213 #define SIMD128_INT_PRINT_FUNCTION(type, lane_count) \ |
| 214 void type::type##Print(std::ostream& os) { \ | 214 void type::type##Print(std::ostream& os) { \ |
| 215 char arr[100]; \ | 215 char arr[100]; \ |
| 216 Vector<char> buffer(arr, arraysize(arr)); \ | 216 Vector<char> buffer(arr, arraysize(arr)); \ |
| 217 os << std::string(IntToCString(get_lane(0), buffer)); \ | 217 os << std::string(IntToCString(get_lane(0), buffer)); \ |
| 218 for (int i = 1; i < lane_count; i++) { \ | 218 for (int i = 1; i < lane_count; i++) { \ |
| 219 os << ", " << std::string(IntToCString(get_lane(i), buffer)); \ | 219 os << ", " << std::string(IntToCString(get_lane(i), buffer)); \ |
| 220 } \ | 220 } \ |
| 221 } | 221 } |
| 222 SIMD128_INT_PRINT_FUNCTION(Int32x4, 4) | 222 SIMD128_INT_PRINT_FUNCTION(Int32x4, 4) |
| 223 SIMD128_INT_PRINT_FUNCTION(Uint32x4, 4) |
| 223 SIMD128_INT_PRINT_FUNCTION(Int16x8, 8) | 224 SIMD128_INT_PRINT_FUNCTION(Int16x8, 8) |
| 225 SIMD128_INT_PRINT_FUNCTION(Uint16x8, 8) |
| 224 SIMD128_INT_PRINT_FUNCTION(Int8x16, 16) | 226 SIMD128_INT_PRINT_FUNCTION(Int8x16, 16) |
| 227 SIMD128_INT_PRINT_FUNCTION(Uint8x16, 16) |
| 225 #undef SIMD128_INT_PRINT_FUNCTION | 228 #undef SIMD128_INT_PRINT_FUNCTION |
| 226 | 229 |
| 227 | 230 |
| 228 #define SIMD128_BOOL_PRINT_FUNCTION(type, lane_count) \ | 231 #define SIMD128_BOOL_PRINT_FUNCTION(type, lane_count) \ |
| 229 void type::type##Print(std::ostream& os) { \ | 232 void type::type##Print(std::ostream& os) { \ |
| 230 char arr[100]; \ | 233 char arr[100]; \ |
| 231 Vector<char> buffer(arr, arraysize(arr)); \ | 234 Vector<char> buffer(arr, arraysize(arr)); \ |
| 232 os << std::string(get_lane(0) ? "true" : "false"); \ | 235 os << std::string(get_lane(0) ? "true" : "false"); \ |
| 233 for (int i = 1; i < lane_count; i++) { \ | 236 for (int i = 1; i < lane_count; i++) { \ |
| 234 os << ", " << std::string(get_lane(i) ? "true" : "false"); \ | 237 os << ", " << std::string(get_lane(i) ? "true" : "false"); \ |
| (...skipping 1020 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1255 } | 1258 } |
| 1256 } | 1259 } |
| 1257 | 1260 |
| 1258 | 1261 |
| 1259 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT | 1262 void JSObject::PrintTransitions(std::ostream& os) { // NOLINT |
| 1260 TransitionArray::PrintTransitions(os, map()->raw_transitions()); | 1263 TransitionArray::PrintTransitions(os, map()->raw_transitions()); |
| 1261 } | 1264 } |
| 1262 #endif // defined(DEBUG) || defined(OBJECT_PRINT) | 1265 #endif // defined(DEBUG) || defined(OBJECT_PRINT) |
| 1263 } // namespace internal | 1266 } // namespace internal |
| 1264 } // namespace v8 | 1267 } // namespace v8 |
| OLD | NEW |