| 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 "src/api.h" | 7 #include "src/api.h" |
| 8 #include "src/arguments.h" | 8 #include "src/arguments.h" |
| 9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
| 10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
| (...skipping 1485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1496 DCHECK(shared->HasDebugCode()); | 1496 DCHECK(shared->HasDebugCode()); |
| 1497 } else if (!Compiler::Compile(function, CLEAR_EXCEPTION)) { | 1497 } else if (!Compiler::Compile(function, CLEAR_EXCEPTION)) { |
| 1498 return false; | 1498 return false; |
| 1499 } | 1499 } |
| 1500 | 1500 |
| 1501 if (!PrepareFunctionForBreakPoints(shared)) return false; | 1501 if (!PrepareFunctionForBreakPoints(shared)) return false; |
| 1502 | 1502 |
| 1503 // Make sure IC state is clean. This is so that we correctly flood | 1503 // Make sure IC state is clean. This is so that we correctly flood |
| 1504 // accessor pairs when stepping in. | 1504 // accessor pairs when stepping in. |
| 1505 shared->code()->ClearInlineCaches(); | 1505 shared->code()->ClearInlineCaches(); |
| 1506 shared->feedback_vector()->ClearICSlots(*shared); | 1506 shared->ClearTypeFeedbackInfo(); |
| 1507 | 1507 |
| 1508 // Create the debug info object. | 1508 // Create the debug info object. |
| 1509 DCHECK(shared->HasDebugCode()); | 1509 DCHECK(shared->HasDebugCode()); |
| 1510 Handle<DebugInfo> debug_info = isolate_->factory()->NewDebugInfo(shared); | 1510 Handle<DebugInfo> debug_info = isolate_->factory()->NewDebugInfo(shared); |
| 1511 | 1511 |
| 1512 // Add debug info to the list. | 1512 // Add debug info to the list. |
| 1513 DebugInfoListNode* node = new DebugInfoListNode(*debug_info); | 1513 DebugInfoListNode* node = new DebugInfoListNode(*debug_info); |
| 1514 node->set_next(debug_info_list_); | 1514 node->set_next(debug_info_list_); |
| 1515 debug_info_list_ = node; | 1515 debug_info_list_ = node; |
| 1516 | 1516 |
| (...skipping 1063 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2580 } | 2580 } |
| 2581 | 2581 |
| 2582 | 2582 |
| 2583 void LockingCommandMessageQueue::Clear() { | 2583 void LockingCommandMessageQueue::Clear() { |
| 2584 base::LockGuard<base::Mutex> lock_guard(&mutex_); | 2584 base::LockGuard<base::Mutex> lock_guard(&mutex_); |
| 2585 queue_.Clear(); | 2585 queue_.Clear(); |
| 2586 } | 2586 } |
| 2587 | 2587 |
| 2588 } // namespace internal | 2588 } // namespace internal |
| 2589 } // namespace v8 | 2589 } // namespace v8 |
| OLD | NEW |