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

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

Issue 9374015: Split experimental profiler flags (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: updated comment Created 8 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
« no previous file with comments | « src/mark-compact.cc ('k') | src/runtime-profiler.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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 void SetUp(); 57 void SetUp();
58 void Reset(); 58 void Reset();
59 void TearDown(); 59 void TearDown();
60 60
61 Object** SamplerWindowAddress(); 61 Object** SamplerWindowAddress();
62 int SamplerWindowSize(); 62 int SamplerWindowSize();
63 63
64 void NotifyICChanged() { any_ic_changed_ = true; } 64 void NotifyICChanged() { any_ic_changed_ = true; }
65 65
66 void NotifyCodeGenerated(int generated_code_size) { 66 void NotifyCodeGenerated(int generated_code_size) {
67 if (FLAG_counting_profiler) { 67 if (FLAG_watch_ic_patching) {
68 code_generated_ = true; 68 code_generated_ = true;
69 total_code_generated_ += generated_code_size; 69 total_code_generated_ += generated_code_size;
70 } 70 }
71 } 71 }
72 72
73 // Rate limiting support. 73 // Rate limiting support.
74 74
75 // VM thread interface. 75 // VM thread interface.
76 // 76 //
77 // Called by isolates when their states change. 77 // Called by isolates when their states change.
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 179
180 void RuntimeProfiler::IsolateExitedJS(Isolate* isolate) { 180 void RuntimeProfiler::IsolateExitedJS(Isolate* isolate) {
181 Atomic32 new_state = NoBarrier_AtomicIncrement(&state_, -1); 181 Atomic32 new_state = NoBarrier_AtomicIncrement(&state_, -1);
182 ASSERT(new_state >= 0); 182 ASSERT(new_state >= 0);
183 USE(new_state); 183 USE(new_state);
184 } 184 }
185 185
186 } } // namespace v8::internal 186 } } // namespace v8::internal
187 187
188 #endif // V8_RUNTIME_PROFILER_H_ 188 #endif // V8_RUNTIME_PROFILER_H_
OLDNEW
« no previous file with comments | « src/mark-compact.cc ('k') | src/runtime-profiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698