Commit e1a58dc4 authored by clarkchenwang's avatar clarkchenwang Committed by Commit bot

[wasm] Fix build error on MIPS

BUG=

Review-Url: https://codereview.chromium.org/2216813002
Cr-Commit-Position: refs/heads/master@{#38352}
parent 32148868
......@@ -327,12 +327,10 @@ RUNTIME_FUNCTION(Runtime_CheckWasmWrapperElision) {
// check the type of the imported exported function, it should be also a WASM
// function in our case
Handle<Code> imported_fct;
Code::Kind target_kind;
if (type->value() == 0) {
target_kind = Code::WASM_FUNCTION;
} else if (type->value() == 1) {
target_kind = Code::WASM_TO_JS_FUNCTION;
}
CHECK(type->value() == 0 || type->value() == 1);
Code::Kind target_kind =
type->value() == 0 ? Code::WASM_FUNCTION : Code::WASM_TO_JS_FUNCTION;
count = 0;
for (RelocIterator it(*intermediate_fct, mask); !it.done(); it.next()) {
RelocInfo* rinfo = it.rinfo();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment