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 1730 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1741 frame_code->instruction_size(), | 1741 frame_code->instruction_size(), |
1742 frame_code->instruction_size(), | 1742 frame_code->instruction_size(), |
1743 reinterpret_cast<intptr_t>(new_code->instruction_start()), | 1743 reinterpret_cast<intptr_t>(new_code->instruction_start()), |
1744 reinterpret_cast<intptr_t>(new_code->instruction_start()) + | 1744 reinterpret_cast<intptr_t>(new_code->instruction_start()) + |
1745 new_code->instruction_size(), | 1745 new_code->instruction_size(), |
1746 new_code->instruction_size(), | 1746 new_code->instruction_size(), |
1747 reinterpret_cast<intptr_t>(frame->pc()), | 1747 reinterpret_cast<intptr_t>(frame->pc()), |
1748 reinterpret_cast<intptr_t>(new_pc)); | 1748 reinterpret_cast<intptr_t>(new_pc)); |
1749 } | 1749 } |
1750 | 1750 |
1751 if (FLAG_enable_ool_constant_pool) { | 1751 if (FLAG_enable_embedded_constant_pool) { |
1752 // Update constant pool pointer for new code. | 1752 // Update constant pool pointer for new code. |
1753 frame->set_constant_pool(new_code->constant_pool()); | 1753 frame->set_constant_pool(new_code->constant_pool()); |
1754 } | 1754 } |
1755 | 1755 |
1756 // Patch the return address to return into the code with | 1756 // Patch the return address to return into the code with |
1757 // debug break slots. | 1757 // debug break slots. |
1758 frame->set_pc(new_pc); | 1758 frame->set_pc(new_pc); |
1759 } | 1759 } |
1760 } | 1760 } |
1761 | 1761 |
(...skipping 1637 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3399 logger_->DebugEvent("Put", message.text()); | 3399 logger_->DebugEvent("Put", message.text()); |
3400 } | 3400 } |
3401 | 3401 |
3402 | 3402 |
3403 void LockingCommandMessageQueue::Clear() { | 3403 void LockingCommandMessageQueue::Clear() { |
3404 base::LockGuard<base::Mutex> lock_guard(&mutex_); | 3404 base::LockGuard<base::Mutex> lock_guard(&mutex_); |
3405 queue_.Clear(); | 3405 queue_.Clear(); |
3406 } | 3406 } |
3407 | 3407 |
3408 } } // namespace v8::internal | 3408 } } // namespace v8::internal |
OLD | NEW |