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