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

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: 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
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 1103 matching lines...) Expand 10 before | Expand all | Expand 10 after
1114 int id() const { return static_cast<int>(id_); } 1114 int id() const { return static_cast<int>(id_); }
1115 1115
1116 HStatistics* GetHStatistics(); 1116 HStatistics* GetHStatistics();
1117 HTracer* GetHTracer(); 1117 HTracer* GetHTracer();
1118 1118
1119 FunctionEntryHook function_entry_hook() { return function_entry_hook_; } 1119 FunctionEntryHook function_entry_hook() { return function_entry_hook_; }
1120 void set_function_entry_hook(FunctionEntryHook function_entry_hook) { 1120 void set_function_entry_hook(FunctionEntryHook function_entry_hook) {
1121 function_entry_hook_ = function_entry_hook; 1121 function_entry_hook_ = function_entry_hook;
1122 } 1122 }
1123 1123
1124 void* stress_deopt_count_address() { return &stress_deopt_count_; }
1125
1124 private: 1126 private:
1125 Isolate(); 1127 Isolate();
1126 1128
1127 friend struct GlobalState; 1129 friend struct GlobalState;
1128 friend struct InitializeGlobalState; 1130 friend struct InitializeGlobalState;
1129 1131
1130 enum State { 1132 enum State {
1131 UNINITIALIZED, // Some components may not have been allocated. 1133 UNINITIALIZED, // Some components may not have been allocated.
1132 INITIALIZED // All components are fully initialized. 1134 INITIALIZED // All components are fully initialized.
1133 }; 1135 };
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
1349 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET) 1351 ISOLATE_INIT_ARRAY_LIST(ISOLATE_FIELD_OFFSET)
1350 #undef ISOLATE_FIELD_OFFSET 1352 #undef ISOLATE_FIELD_OFFSET
1351 #endif 1353 #endif
1352 1354
1353 DeferredHandles* deferred_handles_head_; 1355 DeferredHandles* deferred_handles_head_;
1354 OptimizingCompilerThread optimizing_compiler_thread_; 1356 OptimizingCompilerThread optimizing_compiler_thread_;
1355 MarkingThread** marking_thread_; 1357 MarkingThread** marking_thread_;
1356 SweeperThread** sweeper_thread_; 1358 SweeperThread** sweeper_thread_;
1357 CallbackTable* callback_table_; 1359 CallbackTable* callback_table_;
1358 1360
1361 // Counts deopt points if deopt_every_n_times is enabled.
1362 unsigned int stress_deopt_count_;
1363
1359 friend class ExecutionAccess; 1364 friend class ExecutionAccess;
1360 friend class HandleScopeImplementer; 1365 friend class HandleScopeImplementer;
1361 friend class IsolateInitializer; 1366 friend class IsolateInitializer;
1362 friend class MarkingThread; 1367 friend class MarkingThread;
1363 friend class OptimizingCompilerThread; 1368 friend class OptimizingCompilerThread;
1364 friend class SweeperThread; 1369 friend class SweeperThread;
1365 friend class ThreadManager; 1370 friend class ThreadManager;
1366 friend class Simulator; 1371 friend class Simulator;
1367 friend class StackGuard; 1372 friend class StackGuard;
1368 friend class ThreadId; 1373 friend class ThreadId;
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
1504 1509
1505 // Mark the native context with out of memory. 1510 // Mark the native context with out of memory.
1506 inline void Context::mark_out_of_memory() { 1511 inline void Context::mark_out_of_memory() {
1507 native_context()->set_out_of_memory(HEAP->true_value()); 1512 native_context()->set_out_of_memory(HEAP->true_value());
1508 } 1513 }
1509 1514
1510 1515
1511 } } // namespace v8::internal 1516 } } // namespace v8::internal
1512 1517
1513 #endif // V8_ISOLATE_H_ 1518 #endif // V8_ISOLATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698