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

Side by Side Diff: src/isolate.h

Issue 615933003: Remove sweeper threads (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 2 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
« no previous file with comments | « src/heap/sweeper-thread.cc ('k') | src/isolate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "include/v8-debug.h" 8 #include "include/v8-debug.h"
9 #include "src/allocation.h" 9 #include "src/allocation.h"
10 #include "src/assert-scope.h" 10 #include "src/assert-scope.h"
(...skipping 1042 matching lines...) Expand 10 before | Expand all | Expand 10 after
1053 // Thread is only available with flag enabled. 1053 // Thread is only available with flag enabled.
1054 DCHECK(optimizing_compiler_thread_ == NULL || 1054 DCHECK(optimizing_compiler_thread_ == NULL ||
1055 FLAG_concurrent_recompilation); 1055 FLAG_concurrent_recompilation);
1056 return optimizing_compiler_thread_ != NULL && FLAG_concurrent_osr; 1056 return optimizing_compiler_thread_ != NULL && FLAG_concurrent_osr;
1057 } 1057 }
1058 1058
1059 OptimizingCompilerThread* optimizing_compiler_thread() { 1059 OptimizingCompilerThread* optimizing_compiler_thread() {
1060 return optimizing_compiler_thread_; 1060 return optimizing_compiler_thread_;
1061 } 1061 }
1062 1062
1063 int num_sweeper_threads() const {
1064 return num_sweeper_threads_;
1065 }
1066
1067 SweeperThread** sweeper_threads() {
1068 return sweeper_thread_;
1069 }
1070
1071 int id() const { return static_cast<int>(id_); } 1063 int id() const { return static_cast<int>(id_); }
1072 1064
1073 HStatistics* GetHStatistics(); 1065 HStatistics* GetHStatistics();
1074 HStatistics* GetTStatistics(); 1066 HStatistics* GetTStatistics();
1075 HTracer* GetHTracer(); 1067 HTracer* GetHTracer();
1076 CodeTracer* GetCodeTracer(); 1068 CodeTracer* GetCodeTracer();
1077 1069
1078 FunctionEntryHook function_entry_hook() { return function_entry_hook_; } 1070 FunctionEntryHook function_entry_hook() { return function_entry_hook_; }
1079 void set_function_entry_hook(FunctionEntryHook function_entry_hook) { 1071 void set_function_entry_hook(FunctionEntryHook function_entry_hook) {
1080 function_entry_hook_ = function_entry_hook; 1072 function_entry_hook_ = function_entry_hook;
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
1312 // between compilation units. 1304 // between compilation units.
1313 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \ 1305 #define ISOLATE_FIELD_OFFSET(type, name, ignored) \
1314 static const intptr_t name##_debug_offset_; 1306 static const intptr_t name##_debug_offset_;
1315 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET) 1307 ISOLATE_INIT_LIST(ISOLATE_FIELD_OFFSET)
1316 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) 1308 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET)
1317 #undef ISOLATE_FIELD_OFFSET 1309 #undef ISOLATE_FIELD_OFFSET
1318 #endif 1310 #endif
1319 1311
1320 DeferredHandles* deferred_handles_head_; 1312 DeferredHandles* deferred_handles_head_;
1321 OptimizingCompilerThread* optimizing_compiler_thread_; 1313 OptimizingCompilerThread* optimizing_compiler_thread_;
1322 SweeperThread** sweeper_thread_;
1323 int num_sweeper_threads_;
1324 1314
1325 // Counts deopt points if deopt_every_n_times is enabled. 1315 // Counts deopt points if deopt_every_n_times is enabled.
1326 unsigned int stress_deopt_count_; 1316 unsigned int stress_deopt_count_;
1327 1317
1328 int next_optimization_id_; 1318 int next_optimization_id_;
1329 1319
1330 // List of callbacks when a Call completes. 1320 // List of callbacks when a Call completes.
1331 List<CallCompletedCallback> call_completed_callbacks_; 1321 List<CallCompletedCallback> call_completed_callbacks_;
1332 1322
1333 v8::Isolate::UseCounterCallback use_counter_callback_; 1323 v8::Isolate::UseCounterCallback use_counter_callback_;
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
1554 } 1544 }
1555 1545
1556 EmbeddedVector<char, 128> filename_; 1546 EmbeddedVector<char, 128> filename_;
1557 FILE* file_; 1547 FILE* file_;
1558 int scope_depth_; 1548 int scope_depth_;
1559 }; 1549 };
1560 1550
1561 } } // namespace v8::internal 1551 } } // namespace v8::internal
1562 1552
1563 #endif // V8_ISOLATE_H_ 1553 #endif // V8_ISOLATE_H_
OLDNEW
« no previous file with comments | « src/heap/sweeper-thread.cc ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698