| 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 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 // Whether out of memory exceptions should be ignored. | 280 // Whether out of memory exceptions should be ignored. |
| 281 bool ignore_out_of_memory_; | 281 bool ignore_out_of_memory_; |
| 282 | 282 |
| 283 private: | 283 private: |
| 284 void InitializeInternal(); | 284 void InitializeInternal(); |
| 285 | 285 |
| 286 Address try_catch_handler_address_; | 286 Address try_catch_handler_address_; |
| 287 }; | 287 }; |
| 288 | 288 |
| 289 | 289 |
| 290 class SystemThreadManager { |
| 291 public: |
| 292 enum ParallelSystemComponent { |
| 293 PARALLEL_SWEEPING, |
| 294 CONCURRENT_SWEEPING, |
| 295 PARALLEL_MARKING |
| 296 }; |
| 297 |
| 298 static int NumberOfParallelSystemThreads(ParallelSystemComponent type); |
| 299 |
| 300 static const int kMaxThreads = 4; |
| 301 }; |
| 302 |
| 303 |
| 290 #ifdef ENABLE_DEBUGGER_SUPPORT | 304 #ifdef ENABLE_DEBUGGER_SUPPORT |
| 291 | 305 |
| 292 #define ISOLATE_DEBUGGER_INIT_LIST(V) \ | 306 #define ISOLATE_DEBUGGER_INIT_LIST(V) \ |
| 293 V(v8::Debug::EventCallback, debug_event_callback, NULL) \ | 307 V(v8::Debug::EventCallback, debug_event_callback, NULL) \ |
| 294 V(DebuggerAgent*, debugger_agent_instance, NULL) | 308 V(DebuggerAgent*, debugger_agent_instance, NULL) |
| 295 #else | 309 #else |
| 296 | 310 |
| 297 #define ISOLATE_DEBUGGER_INIT_LIST(V) | 311 #define ISOLATE_DEBUGGER_INIT_LIST(V) |
| 298 | 312 |
| 299 #endif | 313 #endif |
| (...skipping 1161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1461 | 1475 |
| 1462 // Mark the native context with out of memory. | 1476 // Mark the native context with out of memory. |
| 1463 inline void Context::mark_out_of_memory() { | 1477 inline void Context::mark_out_of_memory() { |
| 1464 native_context()->set_out_of_memory(HEAP->true_value()); | 1478 native_context()->set_out_of_memory(HEAP->true_value()); |
| 1465 } | 1479 } |
| 1466 | 1480 |
| 1467 | 1481 |
| 1468 } } // namespace v8::internal | 1482 } } // namespace v8::internal |
| 1469 | 1483 |
| 1470 #endif // V8_ISOLATE_H_ | 1484 #endif // V8_ISOLATE_H_ |
| OLD | NEW |