OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 2027 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2038 void VisitThread(Isolate* isolate, ThreadLocalTop* top) { | 2038 void VisitThread(Isolate* isolate, ThreadLocalTop* top) { |
2039 RedirectActivationsToRecompiledCodeOnThread(isolate, top); | 2039 RedirectActivationsToRecompiledCodeOnThread(isolate, top); |
2040 } | 2040 } |
2041 }; | 2041 }; |
2042 | 2042 |
2043 | 2043 |
2044 void Debug::PrepareForBreakPoints() { | 2044 void Debug::PrepareForBreakPoints() { |
2045 // If preparing for the first break point make sure to deoptimize all | 2045 // If preparing for the first break point make sure to deoptimize all |
2046 // functions as debugging does not work with optimized code. | 2046 // functions as debugging does not work with optimized code. |
2047 if (!has_break_points_) { | 2047 if (!has_break_points_) { |
| 2048 if (FLAG_parallel_recompilation) { |
| 2049 isolate_->optimizing_compiler_thread()->Flush(); |
| 2050 } |
| 2051 |
2048 Deoptimizer::DeoptimizeAll(isolate_); | 2052 Deoptimizer::DeoptimizeAll(isolate_); |
2049 | 2053 |
2050 Handle<Code> lazy_compile = | 2054 Handle<Code> lazy_compile = |
2051 Handle<Code>(isolate_->builtins()->builtin(Builtins::kLazyCompile)); | 2055 Handle<Code>(isolate_->builtins()->builtin(Builtins::kLazyCompile)); |
2052 | 2056 |
2053 // There will be at least one break point when we are done. | 2057 // There will be at least one break point when we are done. |
2054 has_break_points_ = true; | 2058 has_break_points_ = true; |
2055 | 2059 |
2056 // Keep the list of activated functions in a handlified list as it | 2060 // Keep the list of activated functions in a handlified list as it |
2057 // is used both in GC and non-GC code. | 2061 // is used both in GC and non-GC code. |
(...skipping 1801 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3859 { | 3863 { |
3860 Locker locker(reinterpret_cast<v8::Isolate*>(isolate_)); | 3864 Locker locker(reinterpret_cast<v8::Isolate*>(isolate_)); |
3861 isolate_->debugger()->CallMessageDispatchHandler(); | 3865 isolate_->debugger()->CallMessageDispatchHandler(); |
3862 } | 3866 } |
3863 } | 3867 } |
3864 } | 3868 } |
3865 | 3869 |
3866 #endif // ENABLE_DEBUGGER_SUPPORT | 3870 #endif // ENABLE_DEBUGGER_SUPPORT |
3867 | 3871 |
3868 } } // namespace v8::internal | 3872 } } // namespace v8::internal |
OLD | NEW |