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

Unified Diff: src/perf-jit.cc

Issue 430503007: Rename ASSERT* to DCHECK*. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE and fixes Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/parser.cc ('k') | src/preparse-data.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/perf-jit.cc
diff --git a/src/perf-jit.cc b/src/perf-jit.cc
index 687e929c387419b44de42c32c682506abc1f1669..5e7fd4cf4ac09991882af58175e52b1d71243baf 100644
--- a/src/perf-jit.cc
+++ b/src/perf-jit.cc
@@ -78,8 +78,8 @@ uint64_t PerfJitLogger::GetTimestamp() {
void PerfJitLogger::LogRecordedBuffer(Code* code, SharedFunctionInfo*,
const char* name, int length) {
- ASSERT(code->instruction_start() == code->address() + Code::kHeaderSize);
- ASSERT(perf_output_handle_ != NULL);
+ DCHECK(code->instruction_start() == code->address() + Code::kHeaderSize);
+ DCHECK(perf_output_handle_ != NULL);
const char* code_name = name;
uint8_t* code_pointer = reinterpret_cast<uint8_t*>(code->instruction_start());
@@ -123,13 +123,13 @@ void PerfJitLogger::SnapshotPositionEvent(Address addr, int pos) {}
void PerfJitLogger::LogWriteBytes(const char* bytes, int size) {
size_t rv = fwrite(bytes, 1, size, perf_output_handle_);
- ASSERT(static_cast<size_t>(size) == rv);
+ DCHECK(static_cast<size_t>(size) == rv);
USE(rv);
}
void PerfJitLogger::LogWriteHeader() {
- ASSERT(perf_output_handle_ != NULL);
+ DCHECK(perf_output_handle_ != NULL);
jitheader header;
header.magic = JITHEADER_MAGIC;
header.version = JITHEADER_VERSION;
« no previous file with comments | « src/parser.cc ('k') | src/preparse-data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698