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

Side by Side Diff: src/ia32/assembler-ia32.h

Issue 874323003: Externalize deoptimization reasons. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: arm64 Created 5 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
OLDNEW
1 // Copyright (c) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 1242 matching lines...) Expand 10 before | Expand all | Expand 10 after
1253 void RecordJSReturn(); 1253 void RecordJSReturn();
1254 1254
1255 // Mark address of a debug break slot. 1255 // Mark address of a debug break slot.
1256 void RecordDebugBreakSlot(); 1256 void RecordDebugBreakSlot();
1257 1257
1258 // Record a comment relocation entry that can be used by a disassembler. 1258 // Record a comment relocation entry that can be used by a disassembler.
1259 // Use --code-comments to enable, or provide "force = true" flag to always 1259 // Use --code-comments to enable, or provide "force = true" flag to always
1260 // write a comment. 1260 // write a comment.
1261 void RecordComment(const char* msg, bool force = false); 1261 void RecordComment(const char* msg, bool force = false);
1262 1262
1263 // Record a deoptimization reason that can be used by a log or cpu profiler.
1264 // Use --trace-deopt to enable, or provide "force = true" flag to always
Michael Starzinger 2015/02/04 11:30:51 nit: There doesn't seem to be a "force" flag, let'
loislo 2015/02/04 14:38:50 done
1265 // write it.
1266 void RecordDeoptReason(const int reason, const int raw_position);
1267
1263 // Writes a single byte or word of data in the code stream. Used for 1268 // Writes a single byte or word of data in the code stream. Used for
1264 // inline tables, e.g., jump-tables. 1269 // inline tables, e.g., jump-tables.
1265 void db(uint8_t data); 1270 void db(uint8_t data);
1266 void dd(uint32_t data); 1271 void dd(uint32_t data);
1267 1272
1268 // Check if there is less than kGap bytes available in the buffer. 1273 // Check if there is less than kGap bytes available in the buffer.
1269 // If this is the case, we need to grow the buffer before emitting 1274 // If this is the case, we need to grow the buffer before emitting
1270 // an instruction or relocation information. 1275 // an instruction or relocation information.
1271 inline bool buffer_overflow() const { 1276 inline bool buffer_overflow() const {
1272 return pc_ >= reloc_info_writer.pos() - kGap; 1277 return pc_ >= reloc_info_writer.pos() - kGap;
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
1396 private: 1401 private:
1397 Assembler* assembler_; 1402 Assembler* assembler_;
1398 #ifdef DEBUG 1403 #ifdef DEBUG
1399 int space_before_; 1404 int space_before_;
1400 #endif 1405 #endif
1401 }; 1406 };
1402 1407
1403 } } // namespace v8::internal 1408 } } // namespace v8::internal
1404 1409
1405 #endif // V8_IA32_ASSEMBLER_IA32_H_ 1410 #endif // V8_IA32_ASSEMBLER_IA32_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698