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

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

Issue 6250105: Partial fix for V8 issue 1079. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge/build/ia32
Patch Set: Fix a typo I spotted. 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
« no previous file with comments | « src/ia32/lithium-ia32.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 2010 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
11 // with the distribution. 11 // with the distribution.
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 SafepointTableBuilder() 208 SafepointTableBuilder()
209 : deoptimization_info_(32), 209 : deoptimization_info_(32),
210 indexes_(32), 210 indexes_(32),
211 registers_(32), 211 registers_(32),
212 emitted_(false) { } 212 emitted_(false) { }
213 213
214 // Get the offset of the emitted safepoint table in the code. 214 // Get the offset of the emitted safepoint table in the code.
215 unsigned GetCodeOffset() const; 215 unsigned GetCodeOffset() const;
216 216
217 // Define a new safepoint for the current position in the body. 217 // Define a new safepoint for the current position in the body.
218 Safepoint DefineSafepoint( 218 Safepoint DefineSafepoint(Assembler* assembler,
219 Assembler* assembler, 219 Safepoint::Kind kind,
220 Safepoint::Kind kind, 220 int arguments,
221 int arguments, 221 int deoptimization_index);
222 int deoptimization_index = Safepoint::kNoDeoptimizationIndex);
223 222
224 // Update the last safepoint with the size of the code generated for the gap 223 // Update the last safepoint with the size of the code generated for the gap
225 // following it. 224 // following it.
226 void SetPcAfterGap(int pc) { 225 void SetPcAfterGap(int pc) {
227 ASSERT(!deoptimization_info_.is_empty()); 226 ASSERT(!deoptimization_info_.is_empty());
228 int index = deoptimization_info_.length() - 1; 227 int index = deoptimization_info_.length() - 1;
229 deoptimization_info_[index].pc_after_gap = pc; 228 deoptimization_info_[index].pc_after_gap = pc;
230 } 229 }
231 230
232 // Emit the safepoint table after the body. The number of bits per 231 // Emit the safepoint table after the body. The number of bits per
(...skipping 17 matching lines...) Expand all
250 249
251 bool emitted_; 250 bool emitted_;
252 unsigned offset_; 251 unsigned offset_;
253 252
254 DISALLOW_COPY_AND_ASSIGN(SafepointTableBuilder); 253 DISALLOW_COPY_AND_ASSIGN(SafepointTableBuilder);
255 }; 254 };
256 255
257 } } // namespace v8::internal 256 } } // namespace v8::internal
258 257
259 #endif // V8_SAFEPOINT_TABLE_H_ 258 #endif // V8_SAFEPOINT_TABLE_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | src/safepoint-table.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698