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) { ...@@ -327,12 +327,10 @@ RUNTIME_FUNCTION(Runtime_CheckWasmWrapperElision) {
// check the type of the imported exported function, it should be also a WASM // check the type of the imported exported function, it should be also a WASM
// function in our case // function in our case
Handle<Code> imported_fct; Handle<Code> imported_fct;
Code::Kind target_kind; CHECK(type->value() == 0 || type->value() == 1);
if (type->value() == 0) {
target_kind = Code::WASM_FUNCTION; Code::Kind target_kind =
} else if (type->value() == 1) { type->value() == 0 ? Code::WASM_FUNCTION : Code::WASM_TO_JS_FUNCTION;
target_kind = Code::WASM_TO_JS_FUNCTION;
}
count = 0; count = 0;
for (RelocIterator it(*intermediate_fct, mask); !it.done(); it.next()) { for (RelocIterator it(*intermediate_fct, mask); !it.done(); it.next()) {
RelocInfo* rinfo = it.rinfo(); 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