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 1090 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1101 max_available_threads_ = value; | 1101 max_available_threads_ = value; |
1102 } | 1102 } |
1103 | 1103 |
1104 bool concurrent_recompilation_enabled() { | 1104 bool concurrent_recompilation_enabled() { |
1105 // Thread is only available with flag enabled. | 1105 // Thread is only available with flag enabled. |
1106 ASSERT(optimizing_compiler_thread_ == NULL || | 1106 ASSERT(optimizing_compiler_thread_ == NULL || |
1107 FLAG_concurrent_recompilation); | 1107 FLAG_concurrent_recompilation); |
1108 return optimizing_compiler_thread_ != NULL; | 1108 return optimizing_compiler_thread_ != NULL; |
1109 } | 1109 } |
1110 | 1110 |
1111 bool concurrent_osr_enabled() { | 1111 bool concurrent_osr_enabled() const { |
1112 // Thread is only available with flag enabled. | 1112 // Thread is only available with flag enabled. |
1113 ASSERT(optimizing_compiler_thread_ == NULL || | 1113 ASSERT(optimizing_compiler_thread_ == NULL || |
1114 FLAG_concurrent_recompilation); | 1114 FLAG_concurrent_recompilation); |
1115 return optimizing_compiler_thread_ != NULL && FLAG_concurrent_osr; | 1115 return optimizing_compiler_thread_ != NULL && FLAG_concurrent_osr; |
1116 } | 1116 } |
1117 | 1117 |
1118 OptimizingCompilerThread* optimizing_compiler_thread() { | 1118 OptimizingCompilerThread* optimizing_compiler_thread() { |
1119 return optimizing_compiler_thread_; | 1119 return optimizing_compiler_thread_; |
1120 } | 1120 } |
1121 | 1121 |
1122 bool num_sweeper_threads() { | 1122 int num_sweeper_threads() const { |
1123 return num_sweeper_threads_; | 1123 return num_sweeper_threads_; |
1124 } | 1124 } |
1125 | 1125 |
1126 SweeperThread** sweeper_threads() { | 1126 SweeperThread** sweeper_threads() { |
1127 return sweeper_thread_; | 1127 return sweeper_thread_; |
1128 } | 1128 } |
1129 | 1129 |
1130 // PreInits and returns a default isolate. Needed when a new thread tries | 1130 // PreInits and returns a default isolate. Needed when a new thread tries |
1131 // to create a Locker for the first time (the lock itself is in the isolate). | 1131 // to create a Locker for the first time (the lock itself is in the isolate). |
1132 // TODO(svenpanne) This method is on death row... | 1132 // TODO(svenpanne) This method is on death row... |
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1587 } | 1587 } |
1588 | 1588 |
1589 EmbeddedVector<char, 128> filename_; | 1589 EmbeddedVector<char, 128> filename_; |
1590 FILE* file_; | 1590 FILE* file_; |
1591 int scope_depth_; | 1591 int scope_depth_; |
1592 }; | 1592 }; |
1593 | 1593 |
1594 } } // namespace v8::internal | 1594 } } // namespace v8::internal |
1595 | 1595 |
1596 #endif // V8_ISOLATE_H_ | 1596 #endif // V8_ISOLATE_H_ |
OLD | NEW |