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 #ifndef V8_ISOLATE_H_ | 5 #ifndef V8_ISOLATE_H_ |
6 #define V8_ISOLATE_H_ | 6 #define V8_ISOLATE_H_ |
7 | 7 |
8 #include <queue> | 8 #include <queue> |
9 #include <set> | 9 #include <set> |
10 | 10 |
(...skipping 978 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
989 bool IsDeferredHandle(Object** location); | 989 bool IsDeferredHandle(Object** location); |
990 #endif // DEBUG | 990 #endif // DEBUG |
991 | 991 |
992 bool concurrent_recompilation_enabled() { | 992 bool concurrent_recompilation_enabled() { |
993 // Thread is only available with flag enabled. | 993 // Thread is only available with flag enabled. |
994 DCHECK(optimizing_compile_dispatcher_ == NULL || | 994 DCHECK(optimizing_compile_dispatcher_ == NULL || |
995 FLAG_concurrent_recompilation); | 995 FLAG_concurrent_recompilation); |
996 return optimizing_compile_dispatcher_ != NULL; | 996 return optimizing_compile_dispatcher_ != NULL; |
997 } | 997 } |
998 | 998 |
999 bool concurrent_osr_enabled() const { | |
1000 // Thread is only available with flag enabled. | |
1001 DCHECK(optimizing_compile_dispatcher_ == NULL || | |
1002 FLAG_concurrent_recompilation); | |
1003 return optimizing_compile_dispatcher_ != NULL && FLAG_concurrent_osr; | |
1004 } | |
1005 | |
1006 OptimizingCompileDispatcher* optimizing_compile_dispatcher() { | 999 OptimizingCompileDispatcher* optimizing_compile_dispatcher() { |
1007 return optimizing_compile_dispatcher_; | 1000 return optimizing_compile_dispatcher_; |
1008 } | 1001 } |
1009 | 1002 |
1010 int id() const { return static_cast<int>(id_); } | 1003 int id() const { return static_cast<int>(id_); } |
1011 | 1004 |
1012 HStatistics* GetHStatistics(); | 1005 HStatistics* GetHStatistics(); |
1013 CompilationStatistics* GetTurboStatistics(); | 1006 CompilationStatistics* GetTurboStatistics(); |
1014 HTracer* GetHTracer(); | 1007 HTracer* GetHTracer(); |
1015 CodeTracer* GetCodeTracer(); | 1008 CodeTracer* GetCodeTracer(); |
(...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1573 | 1566 |
1574 EmbeddedVector<char, 128> filename_; | 1567 EmbeddedVector<char, 128> filename_; |
1575 FILE* file_; | 1568 FILE* file_; |
1576 int scope_depth_; | 1569 int scope_depth_; |
1577 }; | 1570 }; |
1578 | 1571 |
1579 } // namespace internal | 1572 } // namespace internal |
1580 } // namespace v8 | 1573 } // namespace v8 |
1581 | 1574 |
1582 #endif // V8_ISOLATE_H_ | 1575 #endif // V8_ISOLATE_H_ |
OLD | NEW |