Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(176)

Side by Side Diff: src/debug/debug.cc

Issue 2649873002: Split some SharedFunctionInfo's compiler hints off into debugger hints. (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/builtins/x64/builtins-x64.cc ('k') | src/factory.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/builtins/x64/builtins-x64.cc ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698