| 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 <memory> | 8 #include <memory> |
| 9 #include <queue> | 9 #include <queue> |
| 10 | 10 |
| (...skipping 1146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1157 } | 1157 } |
| 1158 | 1158 |
| 1159 interpreter::Interpreter* interpreter() const { return interpreter_; } | 1159 interpreter::Interpreter* interpreter() const { return interpreter_; } |
| 1160 | 1160 |
| 1161 AccountingAllocator* allocator() { return allocator_; } | 1161 AccountingAllocator* allocator() { return allocator_; } |
| 1162 | 1162 |
| 1163 CompilerDispatcherTracer* compiler_dispatcher_tracer() const { | 1163 CompilerDispatcherTracer* compiler_dispatcher_tracer() const { |
| 1164 return compiler_dispatcher_tracer_; | 1164 return compiler_dispatcher_tracer_; |
| 1165 } | 1165 } |
| 1166 | 1166 |
| 1167 // Clear all optimized code stored in native contexts. | |
| 1168 void ClearOSROptimizedCode(); | |
| 1169 | |
| 1170 // Ensure that a particular optimized code is evicted. | |
| 1171 void EvictOSROptimizedCode(Code* code, const char* reason); | |
| 1172 | |
| 1173 bool IsInAnyContext(Object* object, uint32_t index); | 1167 bool IsInAnyContext(Object* object, uint32_t index); |
| 1174 | 1168 |
| 1175 void SetRAILMode(RAILMode rail_mode); | 1169 void SetRAILMode(RAILMode rail_mode); |
| 1176 | 1170 |
| 1177 void IsolateInForegroundNotification(); | 1171 void IsolateInForegroundNotification(); |
| 1178 | 1172 |
| 1179 void IsolateInBackgroundNotification(); | 1173 void IsolateInBackgroundNotification(); |
| 1180 | 1174 |
| 1181 bool IsIsolateInBackground() { return is_isolate_in_background_; } | 1175 bool IsIsolateInBackground() { return is_isolate_in_background_; } |
| 1182 | 1176 |
| (...skipping 505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1688 | 1682 |
| 1689 EmbeddedVector<char, 128> filename_; | 1683 EmbeddedVector<char, 128> filename_; |
| 1690 FILE* file_; | 1684 FILE* file_; |
| 1691 int scope_depth_; | 1685 int scope_depth_; |
| 1692 }; | 1686 }; |
| 1693 | 1687 |
| 1694 } // namespace internal | 1688 } // namespace internal |
| 1695 } // namespace v8 | 1689 } // namespace v8 |
| 1696 | 1690 |
| 1697 #endif // V8_ISOLATE_H_ | 1691 #endif // V8_ISOLATE_H_ |
| OLD | NEW |