OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
758 #define INTERNAL_DECLARE_SET_TRACE_VALUE_INT(actual_type, \ | 758 #define INTERNAL_DECLARE_SET_TRACE_VALUE_INT(actual_type, \ |
759 value_type_id) \ | 759 value_type_id) \ |
760 static inline void setTraceValue(actual_type arg, \ | 760 static inline void setTraceValue(actual_type arg, \ |
761 unsigned char* type, \ | 761 unsigned char* type, \ |
762 unsigned long long* value) { \ | 762 unsigned long long* value) { \ |
763 *type = value_type_id; \ | 763 *type = value_type_id; \ |
764 *value = static_cast<unsigned long long>(arg); \ | 764 *value = static_cast<unsigned long long>(arg); \ |
765 } | 765 } |
766 | 766 |
767 INTERNAL_DECLARE_SET_TRACE_VALUE_INT(unsigned long long, TRACE_VALUE_TYPE_UINT) | 767 INTERNAL_DECLARE_SET_TRACE_VALUE_INT(unsigned long long, TRACE_VALUE_TYPE_UINT) |
768 INTERNAL_DECLARE_SET_TRACE_VALUE_INT(unsigned int, TRACE_VALUE_TYPE_UINT) | 768 INTERNAL_DECLARE_SET_TRACE_VALUE_INT(unsigned, TRACE_VALUE_TYPE_UINT) |
769 INTERNAL_DECLARE_SET_TRACE_VALUE_INT(unsigned short, TRACE_VALUE_TYPE_UINT) | 769 INTERNAL_DECLARE_SET_TRACE_VALUE_INT(unsigned short, TRACE_VALUE_TYPE_UINT) |
770 INTERNAL_DECLARE_SET_TRACE_VALUE_INT(unsigned char, TRACE_VALUE_TYPE_UINT) | 770 INTERNAL_DECLARE_SET_TRACE_VALUE_INT(unsigned char, TRACE_VALUE_TYPE_UINT) |
771 INTERNAL_DECLARE_SET_TRACE_VALUE_INT(long long, TRACE_VALUE_TYPE_INT) | 771 INTERNAL_DECLARE_SET_TRACE_VALUE_INT(long long, TRACE_VALUE_TYPE_INT) |
772 INTERNAL_DECLARE_SET_TRACE_VALUE_INT(int, TRACE_VALUE_TYPE_INT) | 772 INTERNAL_DECLARE_SET_TRACE_VALUE_INT(int, TRACE_VALUE_TYPE_INT) |
773 INTERNAL_DECLARE_SET_TRACE_VALUE_INT(short, TRACE_VALUE_TYPE_INT) | 773 INTERNAL_DECLARE_SET_TRACE_VALUE_INT(short, TRACE_VALUE_TYPE_INT) |
774 INTERNAL_DECLARE_SET_TRACE_VALUE_INT(signed char, TRACE_VALUE_TYPE_INT) | 774 INTERNAL_DECLARE_SET_TRACE_VALUE_INT(signed char, TRACE_VALUE_TYPE_INT) |
775 INTERNAL_DECLARE_SET_TRACE_VALUE(bool, m_bool, TRACE_VALUE_TYPE_BOOL) | 775 INTERNAL_DECLARE_SET_TRACE_VALUE(bool, m_bool, TRACE_VALUE_TYPE_BOOL) |
776 INTERNAL_DECLARE_SET_TRACE_VALUE(double, m_double, TRACE_VALUE_TYPE_DOUBLE) | 776 INTERNAL_DECLARE_SET_TRACE_VALUE(double, m_double, TRACE_VALUE_TYPE_DOUBLE) |
777 INTERNAL_DECLARE_SET_TRACE_VALUE(const void*, m_pointer, | 777 INTERNAL_DECLARE_SET_TRACE_VALUE(const void*, m_pointer, |
778 TRACE_VALUE_TYPE_POINTER) | 778 TRACE_VALUE_TYPE_POINTER) |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
939 const char* m_categoryGroup; | 939 const char* m_categoryGroup; |
940 const char* m_name; | 940 const char* m_name; |
941 IDType m_id; | 941 IDType m_id; |
942 }; | 942 }; |
943 | 943 |
944 } // namespace TraceEvent | 944 } // namespace TraceEvent |
945 | 945 |
946 } // namespace WebCore | 946 } // namespace WebCore |
947 | 947 |
948 #endif | 948 #endif |
OLD | NEW |