| 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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 break_point_++; | 152 break_point_++; |
| 153 return; | 153 return; |
| 154 } else if (RelocInfo::IsCodeTarget(rmode())) { | 154 } else if (RelocInfo::IsCodeTarget(rmode())) { |
| 155 // Check for breakable code target. Look in the original code as setting | 155 // Check for breakable code target. Look in the original code as setting |
| 156 // break points can cause the code targets in the running (debugged) code | 156 // break points can cause the code targets in the running (debugged) code |
| 157 // to be of a different kind than in the original code. | 157 // to be of a different kind than in the original code. |
| 158 Address target = original_rinfo()->target_address(); | 158 Address target = original_rinfo()->target_address(); |
| 159 Code* code = Code::GetCodeFromTargetAddress(target); | 159 Code* code = Code::GetCodeFromTargetAddress(target); |
| 160 if ((code->is_inline_cache_stub() && | 160 if ((code->is_inline_cache_stub() && |
| 161 !code->is_binary_op_stub() && | 161 !code->is_binary_op_stub() && |
| 162 !code->is_unary_op_stub() && |
| 162 !code->is_compare_ic_stub() && | 163 !code->is_compare_ic_stub() && |
| 163 !code->is_to_boolean_ic_stub()) || | 164 !code->is_to_boolean_ic_stub()) || |
| 164 RelocInfo::IsConstructCall(rmode())) { | 165 RelocInfo::IsConstructCall(rmode())) { |
| 165 break_point_++; | 166 break_point_++; |
| 166 return; | 167 return; |
| 167 } | 168 } |
| 168 if (code->kind() == Code::STUB) { | 169 if (code->kind() == Code::STUB) { |
| 169 if (IsDebuggerStatement()) { | 170 if (IsDebuggerStatement()) { |
| 170 break_point_++; | 171 break_point_++; |
| 171 return; | 172 return; |
| (...skipping 3686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3858 { | 3859 { |
| 3859 Locker locker(reinterpret_cast<v8::Isolate*>(isolate_)); | 3860 Locker locker(reinterpret_cast<v8::Isolate*>(isolate_)); |
| 3860 isolate_->debugger()->CallMessageDispatchHandler(); | 3861 isolate_->debugger()->CallMessageDispatchHandler(); |
| 3861 } | 3862 } |
| 3862 } | 3863 } |
| 3863 } | 3864 } |
| 3864 | 3865 |
| 3865 #endif // ENABLE_DEBUGGER_SUPPORT | 3866 #endif // ENABLE_DEBUGGER_SUPPORT |
| 3866 | 3867 |
| 3867 } } // namespace v8::internal | 3868 } } // namespace v8::internal |
| OLD | NEW |