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 1875 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1886 reinterpret_cast<intptr_t>(new_code->instruction_start()) + | 1886 reinterpret_cast<intptr_t>(new_code->instruction_start()) + |
1887 new_code->instruction_size(), | 1887 new_code->instruction_size(), |
1888 new_code->instruction_size(), | 1888 new_code->instruction_size(), |
1889 reinterpret_cast<intptr_t>(frame->pc()), | 1889 reinterpret_cast<intptr_t>(frame->pc()), |
1890 reinterpret_cast<intptr_t>(new_pc)); | 1890 reinterpret_cast<intptr_t>(new_pc)); |
1891 } | 1891 } |
1892 | 1892 |
1893 // Patch the return address to return into the code with | 1893 // Patch the return address to return into the code with |
1894 // debug break slots. | 1894 // debug break slots. |
1895 frame->set_pc(new_pc); | 1895 frame->set_pc(new_pc); |
| 1896 if (FLAG_enable_ool_constant_pool) { |
| 1897 frame->set_constant_pool(new_code->constant_pool()); |
| 1898 } |
1896 } | 1899 } |
1897 } | 1900 } |
1898 | 1901 |
1899 | 1902 |
1900 class ActiveFunctionsCollector : public ThreadVisitor { | 1903 class ActiveFunctionsCollector : public ThreadVisitor { |
1901 public: | 1904 public: |
1902 explicit ActiveFunctionsCollector(List<Handle<JSFunction> >* active_functions, | 1905 explicit ActiveFunctionsCollector(List<Handle<JSFunction> >* active_functions, |
1903 Object* active_code_marker) | 1906 Object* active_code_marker) |
1904 : active_functions_(active_functions), | 1907 : active_functions_(active_functions), |
1905 active_code_marker_(active_code_marker) { } | 1908 active_code_marker_(active_code_marker) { } |
(...skipping 1491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3397 logger_->DebugEvent("Put", message.text()); | 3400 logger_->DebugEvent("Put", message.text()); |
3398 } | 3401 } |
3399 | 3402 |
3400 | 3403 |
3401 void LockingCommandMessageQueue::Clear() { | 3404 void LockingCommandMessageQueue::Clear() { |
3402 base::LockGuard<base::Mutex> lock_guard(&mutex_); | 3405 base::LockGuard<base::Mutex> lock_guard(&mutex_); |
3403 queue_.Clear(); | 3406 queue_.Clear(); |
3404 } | 3407 } |
3405 | 3408 |
3406 } } // namespace v8::internal | 3409 } } // namespace v8::internal |
OLD | NEW |