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 1068 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1079 code_stub_interface_descriptor(int index); | 1079 code_stub_interface_descriptor(int index); |
1080 | 1080 |
1081 void IterateDeferredHandles(ObjectVisitor* visitor); | 1081 void IterateDeferredHandles(ObjectVisitor* visitor); |
1082 void LinkDeferredHandles(DeferredHandles* deferred_handles); | 1082 void LinkDeferredHandles(DeferredHandles* deferred_handles); |
1083 void UnlinkDeferredHandles(DeferredHandles* deferred_handles); | 1083 void UnlinkDeferredHandles(DeferredHandles* deferred_handles); |
1084 | 1084 |
1085 #ifdef DEBUG | 1085 #ifdef DEBUG |
1086 bool IsDeferredHandle(Object** location); | 1086 bool IsDeferredHandle(Object** location); |
1087 #endif // DEBUG | 1087 #endif // DEBUG |
1088 | 1088 |
| 1089 int max_available_threads() const { |
| 1090 return max_available_threads_; |
| 1091 } |
| 1092 |
1089 void set_max_available_threads(int value) { | 1093 void set_max_available_threads(int value) { |
1090 max_available_threads_ = value; | 1094 max_available_threads_ = value; |
1091 } | 1095 } |
1092 | 1096 |
1093 bool concurrent_recompilation_enabled() { | 1097 bool concurrent_recompilation_enabled() { |
1094 // Thread is only available with flag enabled. | 1098 // Thread is only available with flag enabled. |
1095 ASSERT(optimizing_compiler_thread_ == NULL || | 1099 ASSERT(optimizing_compiler_thread_ == NULL || |
1096 FLAG_concurrent_recompilation); | 1100 FLAG_concurrent_recompilation); |
1097 return optimizing_compiler_thread_ != NULL; | 1101 return optimizing_compiler_thread_ != NULL; |
1098 } | 1102 } |
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1566 } | 1570 } |
1567 | 1571 |
1568 EmbeddedVector<char, 128> filename_; | 1572 EmbeddedVector<char, 128> filename_; |
1569 FILE* file_; | 1573 FILE* file_; |
1570 int scope_depth_; | 1574 int scope_depth_; |
1571 }; | 1575 }; |
1572 | 1576 |
1573 } } // namespace v8::internal | 1577 } } // namespace v8::internal |
1574 | 1578 |
1575 #endif // V8_ISOLATE_H_ | 1579 #endif // V8_ISOLATE_H_ |
OLD | NEW |