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

Side by Side Diff: src/isolate.h

Issue 19383002: Make deoptimization stress count global. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebase. Created 7 years, 5 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/ia32/lithium-codegen-ia32.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 // 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 1112 matching lines...) Expand 10 before | Expand all | Expand 10 after
1123 int id() const { return static_cast<int>(id_); } 1123 int id() const { return static_cast<int>(id_); }
1124 1124
1125 HStatistics* GetHStatistics(); 1125 HStatistics* GetHStatistics();
1126 HTracer* GetHTracer(); 1126 HTracer* GetHTracer();
1127 1127
1128 FunctionEntryHook function_entry_hook() { return function_entry_hook_; } 1128 FunctionEntryHook function_entry_hook() { return function_entry_hook_; }
1129 void set_function_entry_hook(FunctionEntryHook function_entry_hook) { 1129 void set_function_entry_hook(FunctionEntryHook function_entry_hook) {
1130 function_entry_hook_ = function_entry_hook; 1130 function_entry_hook_ = function_entry_hook;
1131 } 1131 }
1132 1132
1133 void* stress_deopt_count_address() { return &stress_deopt_count_; }
1134
1133 private: 1135 private:
1134 Isolate(); 1136 Isolate();
1135 1137
1136 friend struct GlobalState; 1138 friend struct GlobalState;
1137 friend struct InitializeGlobalState; 1139 friend struct InitializeGlobalState;
1138 1140
1139 enum State { 1141 enum State {
1140 UNINITIALIZED, // Some components may not have been allocated. 1142 UNINITIALIZED, // Some components may not have been allocated.
1141 INITIALIZED // All components are fully initialized. 1143 INITIALIZED // All components are fully initialized.
1142 }; 1144 };
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
1358 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) 1360 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET)
1359 #undef ISOLATE_FIELD_OFFSET 1361 #undef ISOLATE_FIELD_OFFSET
1360 #endif 1362 #endif
1361 1363
1362 DeferredHandles* deferred_handles_head_; 1364 DeferredHandles* deferred_handles_head_;
1363 OptimizingCompilerThread optimizing_compiler_thread_; 1365 OptimizingCompilerThread optimizing_compiler_thread_;
1364 MarkingThread** marking_thread_; 1366 MarkingThread** marking_thread_;
1365 SweeperThread** sweeper_thread_; 1367 SweeperThread** sweeper_thread_;
1366 CallbackTable* callback_table_; 1368 CallbackTable* callback_table_;
1367 1369
1370 // Counts deopt points if deopt_every_n_times is enabled.
1371 unsigned int stress_deopt_count_;
1372
1368 friend class ExecutionAccess; 1373 friend class ExecutionAccess;
1369 friend class HandleScopeImplementer; 1374 friend class HandleScopeImplementer;
1370 friend class IsolateInitializer; 1375 friend class IsolateInitializer;
1371 friend class MarkingThread; 1376 friend class MarkingThread;
1372 friend class OptimizingCompilerThread; 1377 friend class OptimizingCompilerThread;
1373 friend class SweeperThread; 1378 friend class SweeperThread;
1374 friend class ThreadManager; 1379 friend class ThreadManager;
1375 friend class Simulator; 1380 friend class Simulator;
1376 friend class StackGuard; 1381 friend class StackGuard;
1377 friend class ThreadId; 1382 friend class ThreadId;
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
1513 1518
1514 // Mark the native context with out of memory. 1519 // Mark the native context with out of memory.
1515 inline void Context::mark_out_of_memory() { 1520 inline void Context::mark_out_of_memory() {
1516 native_context()->set_out_of_memory(HEAP->true_value()); 1521 native_context()->set_out_of_memory(HEAP->true_value());
1517 } 1522 }
1518 1523
1519 1524
1520 } } // namespace v8::internal 1525 } } // namespace v8::internal
1521 1526
1522 #endif // V8_ISOLATE_H_ 1527 #endif // V8_ISOLATE_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698