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

Side by Side Diff: src/safepoint-table.h

Issue 7374002: Refactor allocation policies. Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
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
« no previous file with comments | « src/runtime.cc ('k') | src/safepoint-table.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 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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 indexes_(indexes), registers_(registers) { } 197 indexes_(indexes), registers_(registers) { }
198 ZoneList<int>* indexes_; 198 ZoneList<int>* indexes_;
199 ZoneList<int>* registers_; 199 ZoneList<int>* registers_;
200 200
201 friend class SafepointTableBuilder; 201 friend class SafepointTableBuilder;
202 }; 202 };
203 203
204 204
205 class SafepointTableBuilder BASE_EMBEDDED { 205 class SafepointTableBuilder BASE_EMBEDDED {
206 public: 206 public:
207 SafepointTableBuilder() 207 SafepointTableBuilder();
208 : deoptimization_info_(32),
209 indexes_(32),
210 registers_(32),
211 emitted_(false) { }
212 208
213 // Get the offset of the emitted safepoint table in the code. 209 // Get the offset of the emitted safepoint table in the code.
214 unsigned GetCodeOffset() const; 210 unsigned GetCodeOffset() const;
215 211
216 // Define a new safepoint for the current position in the body. 212 // Define a new safepoint for the current position in the body.
217 Safepoint DefineSafepoint(Assembler* assembler, 213 Safepoint DefineSafepoint(Assembler* assembler,
218 Safepoint::Kind kind, 214 Safepoint::Kind kind,
219 int arguments, 215 int arguments,
220 int deoptimization_index); 216 int deoptimization_index);
221 217
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 257
262 unsigned offset_; 258 unsigned offset_;
263 bool emitted_; 259 bool emitted_;
264 260
265 DISALLOW_COPY_AND_ASSIGN(SafepointTableBuilder); 261 DISALLOW_COPY_AND_ASSIGN(SafepointTableBuilder);
266 }; 262 };
267 263
268 } } // namespace v8::internal 264 } } // namespace v8::internal
269 265
270 #endif // V8_SAFEPOINT_TABLE_H_ 266 #endif // V8_SAFEPOINT_TABLE_H_
OLDNEW
« no previous file with comments | « src/runtime.cc ('k') | src/safepoint-table.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698