Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(121)

Side by Side Diff: src/isolate.h

Issue 12207207: Added system thread manager class. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
301
290 #ifdef ENABLE_DEBUGGER_SUPPORT 302 #ifdef ENABLE_DEBUGGER_SUPPORT
291 303
292 #define ISOLATE_DEBUGGER_INIT_LIST(V) \ 304 #define ISOLATE_DEBUGGER_INIT_LIST(V) \
293 V(v8::Debug::EventCallback, debug_event_callback, NULL) \ 305 V(v8::Debug::EventCallback, debug_event_callback, NULL) \
294 V(DebuggerAgent*, debugger_agent_instance, NULL) 306 V(DebuggerAgent*, debugger_agent_instance, NULL)
295 #else 307 #else
296 308
297 #define ISOLATE_DEBUGGER_INIT_LIST(V) 309 #define ISOLATE_DEBUGGER_INIT_LIST(V)
298 310
299 #endif 311 #endif
(...skipping 1161 matching lines...) Expand 10 before | Expand all | Expand 10 after
1461 1473
1462 // Mark the native context with out of memory. 1474 // Mark the native context with out of memory.
1463 inline void Context::mark_out_of_memory() { 1475 inline void Context::mark_out_of_memory() {
1464 native_context()->set_out_of_memory(HEAP->true_value()); 1476 native_context()->set_out_of_memory(HEAP->true_value());
1465 } 1477 }
1466 1478
1467 1479
1468 } } // namespace v8::internal 1480 } } // namespace v8::internal
1469 1481
1470 #endif // V8_ISOLATE_H_ 1482 #endif // V8_ISOLATE_H_
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/isolate.cc » ('j') | src/isolate.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698