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

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

Issue 194703008: Fix lazy deopt after tagged binary ops (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: address comment Created 6 years, 9 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/mips/lithium-mips.cc ('k') | src/x64/lithium-codegen-x64.h » ('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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 212
213 // Define a new safepoint for the current position in the body. 213 // Define a new safepoint for the current position in the body.
214 Safepoint DefineSafepoint(Assembler* assembler, 214 Safepoint DefineSafepoint(Assembler* assembler,
215 Safepoint::Kind kind, 215 Safepoint::Kind kind,
216 int arguments, 216 int arguments,
217 Safepoint::DeoptMode mode); 217 Safepoint::DeoptMode mode);
218 218
219 // Record deoptimization index for lazy deoptimization for the last 219 // Record deoptimization index for lazy deoptimization for the last
220 // outstanding safepoints. 220 // outstanding safepoints.
221 void RecordLazyDeoptimizationIndex(int index); 221 void RecordLazyDeoptimizationIndex(int index);
222 void BumpLastLazySafepointIndex() {
223 last_lazy_safepoint_ = deopt_index_list_.length();
224 }
222 225
223 // Emit the safepoint table after the body. The number of bits per 226 // Emit the safepoint table after the body. The number of bits per
224 // entry must be enough to hold all the pointer indexes. 227 // entry must be enough to hold all the pointer indexes.
225 void Emit(Assembler* assembler, int bits_per_entry); 228 void Emit(Assembler* assembler, int bits_per_entry);
226 229
227 230
228 private: 231 private:
229 struct DeoptimizationInfo { 232 struct DeoptimizationInfo {
230 unsigned pc; 233 unsigned pc;
231 unsigned arguments; 234 unsigned arguments;
(...skipping 12 matching lines...) Expand all
244 int last_lazy_safepoint_; 247 int last_lazy_safepoint_;
245 248
246 Zone* zone_; 249 Zone* zone_;
247 250
248 DISALLOW_COPY_AND_ASSIGN(SafepointTableBuilder); 251 DISALLOW_COPY_AND_ASSIGN(SafepointTableBuilder);
249 }; 252 };
250 253
251 } } // namespace v8::internal 254 } } // namespace v8::internal
252 255
253 #endif // V8_SAFEPOINT_TABLE_H_ 256 #endif // V8_SAFEPOINT_TABLE_H_
OLDNEW
« no previous file with comments | « src/mips/lithium-mips.cc ('k') | src/x64/lithium-codegen-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698