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

Side by Side Diff: src/incremental-marking.h

Issue 7329049: Patch RecordWriteStub after adding it to the stub cache not during generation. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/gc
Patch Set: Created 9 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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 } 155 }
156 156
157 inline void SetNewSpacePageFlags(NewSpacePage* chunk) { 157 inline void SetNewSpacePageFlags(NewSpacePage* chunk) {
158 SetNewSpacePageFlags(chunk, IsMarking()); 158 SetNewSpacePageFlags(chunk, IsMarking());
159 } 159 }
160 160
161 MarkingDeque* marking_deque() { return &marking_deque_; } 161 MarkingDeque* marking_deque() { return &marking_deque_; }
162 162
163 bool IsCompacting() { return IsMarking() && is_compacting_; } 163 bool IsCompacting() { return IsMarking() && is_compacting_; }
164 164
165 void ActivateGeneratedStub(Code* stub);
166
165 private: 167 private:
166 void set_should_hurry(bool val) { 168 void set_should_hurry(bool val) {
167 should_hurry_ = val; 169 should_hurry_ = val;
168 } 170 }
169 171
170 void ResetStepCounters() { 172 void ResetStepCounters() {
171 steps_count_ = 0; 173 steps_count_ = 0;
172 steps_took_ = 0; 174 steps_took_ = 0;
173 steps_count_since_last_gc_ = 0; 175 steps_count_since_last_gc_ = 0;
174 steps_took_since_last_gc_ = 0; 176 steps_took_since_last_gc_ = 0;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 int steps_count_since_last_gc_; 211 int steps_count_since_last_gc_;
210 double steps_took_since_last_gc_; 212 double steps_took_since_last_gc_;
211 bool should_hurry_; 213 bool should_hurry_;
212 int allocation_marking_factor_; 214 int allocation_marking_factor_;
213 intptr_t allocated_; 215 intptr_t allocated_;
214 }; 216 };
215 217
216 } } // namespace v8::internal 218 } } // namespace v8::internal
217 219
218 #endif // V8_INCREMENTAL_MARKING_H_ 220 #endif // V8_INCREMENTAL_MARKING_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698