| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 3823 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3834 // Size of the instructions. | 3834 // Size of the instructions. |
| 3835 size_t code_len; | 3835 size_t code_len; |
| 3836 // Script info for CODE_ADDED event. | 3836 // Script info for CODE_ADDED event. |
| 3837 Handle<Script> script; | 3837 Handle<Script> script; |
| 3838 // User-defined data for *_LINE_INFO_* event. It's used to hold the source | 3838 // User-defined data for *_LINE_INFO_* event. It's used to hold the source |
| 3839 // code line information which is returned from the | 3839 // code line information which is returned from the |
| 3840 // CODE_START_LINE_INFO_RECORDING event. And it's passed to subsequent | 3840 // CODE_START_LINE_INFO_RECORDING event. And it's passed to subsequent |
| 3841 // CODE_ADD_LINE_POS_INFO and CODE_END_LINE_INFO_RECORDING events. | 3841 // CODE_ADD_LINE_POS_INFO and CODE_END_LINE_INFO_RECORDING events. |
| 3842 void* user_data; | 3842 void* user_data; |
| 3843 | 3843 |
| 3844 struct name_t { |
| 3845 // Name of the object associated with the code, note that the string is not |
| 3846 // zero-terminated. |
| 3847 const char* str; |
| 3848 // Number of chars in str. |
| 3849 size_t len; |
| 3850 }; |
| 3851 |
| 3852 struct line_info_t { |
| 3853 // PC offset |
| 3854 size_t offset; |
| 3855 // Code postion |
| 3856 size_t pos; |
| 3857 // The position type. |
| 3858 PositionType position_type; |
| 3859 }; |
| 3860 |
| 3844 union { | 3861 union { |
| 3845 // Only valid for CODE_ADDED. | 3862 // Only valid for CODE_ADDED. |
| 3846 struct { | 3863 struct name_t name; |
| 3847 // Name of the object associated with the code, note that the string is | |
| 3848 // not zero-terminated. | |
| 3849 const char* str; | |
| 3850 // Number of chars in str. | |
| 3851 size_t len; | |
| 3852 } name; | |
| 3853 | 3864 |
| 3854 // Only valid for CODE_ADD_LINE_POS_INFO | 3865 // Only valid for CODE_ADD_LINE_POS_INFO |
| 3855 struct { | 3866 struct line_info_t line_info; |
| 3856 // PC offset | |
| 3857 size_t offset; | |
| 3858 // Code postion | |
| 3859 size_t pos; | |
| 3860 // The position type. | |
| 3861 PositionType position_type; | |
| 3862 } line_info; | |
| 3863 | 3867 |
| 3864 // New location of instructions. Only valid for CODE_MOVED. | 3868 // New location of instructions. Only valid for CODE_MOVED. |
| 3865 void* new_code_start; | 3869 void* new_code_start; |
| 3866 }; | 3870 }; |
| 3867 }; | 3871 }; |
| 3868 | 3872 |
| 3869 /** | 3873 /** |
| 3870 * Option flags passed to the SetJitCodeEventHandler function. | 3874 * Option flags passed to the SetJitCodeEventHandler function. |
| 3871 */ | 3875 */ |
| 3872 enum JitCodeEventOptions { | 3876 enum JitCodeEventOptions { |
| (...skipping 2117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5990 | 5994 |
| 5991 | 5995 |
| 5992 } // namespace v8 | 5996 } // namespace v8 |
| 5993 | 5997 |
| 5994 | 5998 |
| 5995 #undef V8EXPORT | 5999 #undef V8EXPORT |
| 5996 #undef TYPE_CHECK | 6000 #undef TYPE_CHECK |
| 5997 | 6001 |
| 5998 | 6002 |
| 5999 #endif // V8_H_ | 6003 #endif // V8_H_ |
| OLD | NEW |