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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 return; | 162 return; |
163 } else if (RelocInfo::IsCodeTarget(rmode())) { | 163 } else if (RelocInfo::IsCodeTarget(rmode())) { |
164 // Check for breakable code target. Look in the original code as setting | 164 // Check for breakable code target. Look in the original code as setting |
165 // break points can cause the code targets in the running (debugged) code | 165 // break points can cause the code targets in the running (debugged) code |
166 // to be of a different kind than in the original code. | 166 // to be of a different kind than in the original code. |
167 Address target = original_rinfo()->target_address(); | 167 Address target = original_rinfo()->target_address(); |
168 Code* code = Code::GetCodeFromTargetAddress(target); | 168 Code* code = Code::GetCodeFromTargetAddress(target); |
169 if ((code->is_inline_cache_stub() && | 169 if ((code->is_inline_cache_stub() && |
170 !code->is_binary_op_stub() && | 170 !code->is_binary_op_stub() && |
171 !code->is_unary_op_stub() && | 171 !code->is_unary_op_stub() && |
172 !code->is_compare_ic_stub()) || | 172 !code->is_compare_ic_stub() && |
| 173 !code->is_to_boolean_ic_stub()) || |
173 RelocInfo::IsConstructCall(rmode())) { | 174 RelocInfo::IsConstructCall(rmode())) { |
174 break_point_++; | 175 break_point_++; |
175 return; | 176 return; |
176 } | 177 } |
177 if (code->kind() == Code::STUB) { | 178 if (code->kind() == Code::STUB) { |
178 if (IsDebuggerStatement()) { | 179 if (IsDebuggerStatement()) { |
179 break_point_++; | 180 break_point_++; |
180 return; | 181 return; |
181 } | 182 } |
182 if (type_ == ALL_BREAK_LOCATIONS) { | 183 if (type_ == ALL_BREAK_LOCATIONS) { |
(...skipping 2944 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3127 { | 3128 { |
3128 Locker locker; | 3129 Locker locker; |
3129 Isolate::Current()->debugger()->CallMessageDispatchHandler(); | 3130 Isolate::Current()->debugger()->CallMessageDispatchHandler(); |
3130 } | 3131 } |
3131 } | 3132 } |
3132 } | 3133 } |
3133 | 3134 |
3134 #endif // ENABLE_DEBUGGER_SUPPORT | 3135 #endif // ENABLE_DEBUGGER_SUPPORT |
3135 | 3136 |
3136 } } // namespace v8::internal | 3137 } } // namespace v8::internal |
OLD | NEW |