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:
parent
22fab0bad8
commit
80bcd96b3f
@ -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_;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user