Commit fb35717f authored by Michael Starzinger's avatar Michael Starzinger Committed by Commit Bot

[asm.js] Remove dead code for calling Math.fround directly.

R=clemensh@chromium.org

Change-Id: I03fb9ae37a7950fdb8a819383b114dfc2c13d618
Reviewed-on: https://chromium-review.googlesource.com/686914Reviewed-by: 's avatarClemens Hammacher <clemensh@chromium.org>
Commit-Queue: Michael Starzinger <mstarzinger@chromium.org>
Cr-Commit-Position: refs/heads/master@{#48180}
parent 38b17673
......@@ -2312,12 +2312,9 @@ AsmType* AsmJsParser::ValidateCall() {
break;
case VarKind::kMathFround:
if (param_specific_types[0]->IsA(AsmType::DoubleQ())) {
current_function_builder_->Emit(kExprF32ConvertF64);
} else {
DCHECK(param_specific_types[0]->IsA(AsmType::FloatQ()));
}
break;
// NOTE: Handled in {AsmJsParser::CallExpression} specially and treated
// as a coercion to "float" type. Cannot be reached as a call here.
UNREACHABLE();
default:
UNREACHABLE();
......
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