| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/debug/debug.h" | 5 #include "src/debug/debug.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "src/api.h" | 9 #include "src/api.h" |
| 10 #include "src/arguments.h" | 10 #include "src/arguments.h" |
| (...skipping 1542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1553 DebugInfoListNode* prev = NULL; | 1553 DebugInfoListNode* prev = NULL; |
| 1554 DebugInfoListNode* current = debug_info_list_; | 1554 DebugInfoListNode* current = debug_info_list_; |
| 1555 while (current != NULL) { | 1555 while (current != NULL) { |
| 1556 if (current->debug_info().is_identical_to(debug_info)) { | 1556 if (current->debug_info().is_identical_to(debug_info)) { |
| 1557 // Unlink from list. If prev is NULL we are looking at the first element. | 1557 // Unlink from list. If prev is NULL we are looking at the first element. |
| 1558 if (prev == NULL) { | 1558 if (prev == NULL) { |
| 1559 debug_info_list_ = current->next(); | 1559 debug_info_list_ = current->next(); |
| 1560 } else { | 1560 } else { |
| 1561 prev->set_next(current->next()); | 1561 prev->set_next(current->next()); |
| 1562 } | 1562 } |
| 1563 shared->set_debug_info(Smi::FromInt(debug_info->debugger_hints())); |
| 1563 delete current; | 1564 delete current; |
| 1564 shared->set_debug_info(DebugInfo::uninitialized()); | |
| 1565 return; | 1565 return; |
| 1566 } | 1566 } |
| 1567 // Move to next in list. | 1567 // Move to next in list. |
| 1568 prev = current; | 1568 prev = current; |
| 1569 current = current->next(); | 1569 current = current->next(); |
| 1570 } | 1570 } |
| 1571 | 1571 |
| 1572 UNREACHABLE(); | 1572 UNREACHABLE(); |
| 1573 } | 1573 } |
| 1574 | 1574 |
| (...skipping 1090 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2665 logger_->DebugEvent("Put", message.text()); | 2665 logger_->DebugEvent("Put", message.text()); |
| 2666 } | 2666 } |
| 2667 | 2667 |
| 2668 void LockingCommandMessageQueue::Clear() { | 2668 void LockingCommandMessageQueue::Clear() { |
| 2669 base::LockGuard<base::Mutex> lock_guard(&mutex_); | 2669 base::LockGuard<base::Mutex> lock_guard(&mutex_); |
| 2670 queue_.Clear(); | 2670 queue_.Clear(); |
| 2671 } | 2671 } |
| 2672 | 2672 |
| 2673 } // namespace internal | 2673 } // namespace internal |
| 2674 } // namespace v8 | 2674 } // namespace v8 |
| OLD | NEW |