Use DCHECK instead of CHECK in CodeReference

Using DCHECK seems to be the common V8 style.

Change-Id: I6dab91e5225a222cbfe07ebeeec4ed1b274fe5bd
Reviewed-on: https://chromium-review.googlesource.com/1088698
Reviewed-by: Michael Starzinger <mstarzinger@chromium.org>
Reviewed-by: Clemens Hammacher <clemensh@chromium.org>
Commit-Queue: Stephan Herhut <herhut@chromium.org>
Cr-Commit-Position: refs/heads/master@{#53554}
This commit is contained in:
Stephan Herhut 2018-06-06 14:41:47 +02:00 committed by Commit Bot
parent 22fab0bad8
commit 80bcd96b3f

View File

@ -36,12 +36,12 @@ class CodeReference {
}
Handle<Code> as_js_code() const {
CHECK_EQ(JS, kind_);
DCHECK_EQ(JS, kind_);
return js_code_;
}
const wasm::WasmCode* as_wasm_code() const {
CHECK_EQ(WASM, kind_);
DCHECK_EQ(WASM, kind_);
return wasm_code_;
}