| 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/v8.h" | 5 #include "src/v8.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 1529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1540 | 1540 |
| 1541 // Fill the current function with one-shot break points even for step in on | 1541 // Fill the current function with one-shot break points even for step in on |
| 1542 // a call target as the function called might be a native function for | 1542 // a call target as the function called might be a native function for |
| 1543 // which step in will not stop. It also prepares for stepping in | 1543 // which step in will not stop. It also prepares for stepping in |
| 1544 // getters/setters. | 1544 // getters/setters. |
| 1545 FloodWithOneShot(function); | 1545 FloodWithOneShot(function); |
| 1546 | 1546 |
| 1547 if (is_load_or_store) { | 1547 if (is_load_or_store) { |
| 1548 // Remember source position and frame to handle step in getter/setter. If | 1548 // Remember source position and frame to handle step in getter/setter. If |
| 1549 // there is a custom getter/setter it will be handled in | 1549 // there is a custom getter/setter it will be handled in |
| 1550 // Object::Get/SetPropertyWithCallback, otherwise the step action will be | 1550 // Object::Get/SetPropertyWithAccessor, otherwise the step action will be |
| 1551 // propagated on the next Debug::Break. | 1551 // propagated on the next Debug::Break. |
| 1552 thread_local_.last_statement_position_ = | 1552 thread_local_.last_statement_position_ = |
| 1553 debug_info->code()->SourceStatementPosition(frame->pc()); | 1553 debug_info->code()->SourceStatementPosition(frame->pc()); |
| 1554 thread_local_.last_fp_ = frame->UnpaddedFP(); | 1554 thread_local_.last_fp_ = frame->UnpaddedFP(); |
| 1555 } | 1555 } |
| 1556 | 1556 |
| 1557 // Step in or Step in min | 1557 // Step in or Step in min |
| 1558 it.PrepareStepIn(isolate_); | 1558 it.PrepareStepIn(isolate_); |
| 1559 ActivateStepIn(frame); | 1559 ActivateStepIn(frame); |
| 1560 } | 1560 } |
| (...skipping 1836 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3397 logger_->DebugEvent("Put", message.text()); | 3397 logger_->DebugEvent("Put", message.text()); |
| 3398 } | 3398 } |
| 3399 | 3399 |
| 3400 | 3400 |
| 3401 void LockingCommandMessageQueue::Clear() { | 3401 void LockingCommandMessageQueue::Clear() { |
| 3402 base::LockGuard<base::Mutex> lock_guard(&mutex_); | 3402 base::LockGuard<base::Mutex> lock_guard(&mutex_); |
| 3403 queue_.Clear(); | 3403 queue_.Clear(); |
| 3404 } | 3404 } |
| 3405 | 3405 |
| 3406 } } // namespace v8::internal | 3406 } } // namespace v8::internal |
| OLD | NEW |