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

Unified Diff: src/runtime/runtime-test.cc

Issue 2216813002: [wasm] Fix build error on MIPS (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/runtime/runtime-test.cc
diff --git a/src/runtime/runtime-test.cc b/src/runtime/runtime-test.cc
index 2e934403d9521e3fc385d118d0ae49437cd8f365..7475ddac87888c66c335f28c29230ecea2bf88d4 100644
--- a/src/runtime/runtime-test.cc
+++ b/src/runtime/runtime-test.cc
@@ -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();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698