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

Side by Side Diff: src/runtime-profiler.h

Issue 6532091: Merge bleeding_edge revision (5922, 5934] to isolates branch.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/isolates/
Patch Set: Created 9 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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 Isolate* isolate_; 107 Isolate* isolate_;
108 108
109 int sampler_threshold_; 109 int sampler_threshold_;
110 int sampler_threshold_size_factor_; 110 int sampler_threshold_size_factor_;
111 111
112 // The JSFunctions in the sampler window are not GC safe. Old-space 112 // The JSFunctions in the sampler window are not GC safe. Old-space
113 // pointers are not cleared during mark-sweep collection and therefore 113 // pointers are not cleared during mark-sweep collection and therefore
114 // the window might contain stale pointers. The window is updated on 114 // the window might contain stale pointers. The window is updated on
115 // scavenges and (parts of it) cleared on mark-sweep and 115 // scavenges and (parts of it) cleared on mark-sweep and
116 // mark-sweep-compact. 116 // mark-sweep-compact.
117 JSFunction* sampler_window_[kSamplerWindowSize]; 117 Object* sampler_window_[kSamplerWindowSize];
118 int sampler_window_position_; 118 int sampler_window_position_;
119 int sampler_window_weight_[kSamplerWindowSize]; 119 int sampler_window_weight_[kSamplerWindowSize];
120 120
121 // Support for pending 'optimize soon' requests. 121 // Support for pending 'optimize soon' requests.
122 PendingListNode* optimize_soon_list_; 122 PendingListNode* optimize_soon_list_;
123 123
124 // Possible state values: 124 // Possible state values:
125 // -1 => the profiler thread is waiting on the semaphore 125 // -1 => the profiler thread is waiting on the semaphore
126 // 0 or positive => the number of isolates running JavaScript code. 126 // 0 or positive => the number of isolates running JavaScript code.
127 static Atomic32 state_; 127 static Atomic32 state_;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 165
166 void RuntimeProfiler::IsolateExitedJS(Isolate* isolate) { 166 void RuntimeProfiler::IsolateExitedJS(Isolate* isolate) {
167 Atomic32 new_state = NoBarrier_AtomicIncrement(&state_, -1); 167 Atomic32 new_state = NoBarrier_AtomicIncrement(&state_, -1);
168 ASSERT(new_state >= 0); 168 ASSERT(new_state >= 0);
169 USE(new_state); 169 USE(new_state);
170 } 170 }
171 171
172 } } // namespace v8::internal 172 } } // namespace v8::internal
173 173
174 #endif // V8_RUNTIME_PROFILER_H_ 174 #endif // V8_RUNTIME_PROFILER_H_
OLDNEW
« src/log.cc ('K') | « src/runtime.cc ('k') | src/runtime-profiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698