OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 1008 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1019 case Debug::k_debug_break_slot_address: | 1019 case Debug::k_debug_break_slot_address: |
1020 return reinterpret_cast<Address>(debug->debug_break_slot_address()); | 1020 return reinterpret_cast<Address>(debug->debug_break_slot_address()); |
1021 case Debug::k_restarter_frame_function_pointer: | 1021 case Debug::k_restarter_frame_function_pointer: |
1022 return reinterpret_cast<Address>( | 1022 return reinterpret_cast<Address>( |
1023 debug->restarter_frame_function_pointer_address()); | 1023 debug->restarter_frame_function_pointer_address()); |
1024 default: | 1024 default: |
1025 UNREACHABLE(); | 1025 UNREACHABLE(); |
1026 return NULL; | 1026 return NULL; |
1027 } | 1027 } |
1028 } | 1028 } |
| 1029 |
1029 private: | 1030 private: |
1030 Debug::AddressId id_; | 1031 Debug::AddressId id_; |
1031 }; | 1032 }; |
1032 | 1033 |
1033 // The optional thread that Debug Agent may use to temporary call V8 to process | 1034 // The optional thread that Debug Agent may use to temporary call V8 to process |
1034 // pending debug requests if debuggee is not running V8 at the moment. | 1035 // pending debug requests if debuggee is not running V8 at the moment. |
1035 // Techincally it does not call V8 itself, rather it asks embedding program | 1036 // Techincally it does not call V8 itself, rather it asks embedding program |
1036 // to do this via v8::Debug::HostDispatchHandler | 1037 // to do this via v8::Debug::HostDispatchHandler |
1037 class MessageDispatchHelperThread: public Thread { | 1038 class MessageDispatchHelperThread: public Thread { |
1038 public: | 1039 public: |
(...skipping 11 matching lines...) Expand all Loading... |
1050 | 1051 |
1051 DISALLOW_COPY_AND_ASSIGN(MessageDispatchHelperThread); | 1052 DISALLOW_COPY_AND_ASSIGN(MessageDispatchHelperThread); |
1052 }; | 1053 }; |
1053 | 1054 |
1054 | 1055 |
1055 } } // namespace v8::internal | 1056 } } // namespace v8::internal |
1056 | 1057 |
1057 #endif // ENABLE_DEBUGGER_SUPPORT | 1058 #endif // ENABLE_DEBUGGER_SUPPORT |
1058 | 1059 |
1059 #endif // V8_DEBUG_H_ | 1060 #endif // V8_DEBUG_H_ |
OLD | NEW |