| 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 1724 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1735 frame_code->instruction_size(), | 1735 frame_code->instruction_size(), |
| 1736 frame_code->instruction_size(), | 1736 frame_code->instruction_size(), |
| 1737 reinterpret_cast<intptr_t>(new_code->instruction_start()), | 1737 reinterpret_cast<intptr_t>(new_code->instruction_start()), |
| 1738 reinterpret_cast<intptr_t>(new_code->instruction_start()) + | 1738 reinterpret_cast<intptr_t>(new_code->instruction_start()) + |
| 1739 new_code->instruction_size(), | 1739 new_code->instruction_size(), |
| 1740 new_code->instruction_size(), | 1740 new_code->instruction_size(), |
| 1741 reinterpret_cast<intptr_t>(frame->pc()), | 1741 reinterpret_cast<intptr_t>(frame->pc()), |
| 1742 reinterpret_cast<intptr_t>(new_pc)); | 1742 reinterpret_cast<intptr_t>(new_pc)); |
| 1743 } | 1743 } |
| 1744 | 1744 |
| 1745 if (FLAG_enable_ool_constant_pool) { | 1745 if (FLAG_enable_ool_constant_pool || FLAG_enable_embedded_constant_pool) { |
| 1746 // Update constant pool pointer for new code. | 1746 // Update constant pool pointer for new code. |
| 1747 frame->set_constant_pool(new_code->constant_pool()); | 1747 frame->set_constant_pool(new_code->constant_pool()); |
| 1748 } | 1748 } |
| 1749 | 1749 |
| 1750 // Patch the return address to return into the code with | 1750 // Patch the return address to return into the code with |
| 1751 // debug break slots. | 1751 // debug break slots. |
| 1752 frame->set_pc(new_pc); | 1752 frame->set_pc(new_pc); |
| 1753 } | 1753 } |
| 1754 } | 1754 } |
| 1755 | 1755 |
| (...skipping 1636 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3392 logger_->DebugEvent("Put", message.text()); | 3392 logger_->DebugEvent("Put", message.text()); |
| 3393 } | 3393 } |
| 3394 | 3394 |
| 3395 | 3395 |
| 3396 void LockingCommandMessageQueue::Clear() { | 3396 void LockingCommandMessageQueue::Clear() { |
| 3397 base::LockGuard<base::Mutex> lock_guard(&mutex_); | 3397 base::LockGuard<base::Mutex> lock_guard(&mutex_); |
| 3398 queue_.Clear(); | 3398 queue_.Clear(); |
| 3399 } | 3399 } |
| 3400 | 3400 |
| 3401 } } // namespace v8::internal | 3401 } } // namespace v8::internal |
| OLD | NEW |