Chromium Code Reviews| Index: src/wasm/asm-wasm-builder.cc |
| diff --git a/src/wasm/asm-wasm-builder.cc b/src/wasm/asm-wasm-builder.cc |
| index fe6abdaaf8bb110e06b434b868d016f6e27ad624..4c7410d7e004c612e809db7f3ccc06da5da3188e 100644 |
| --- a/src/wasm/asm-wasm-builder.cc |
| +++ b/src/wasm/asm-wasm-builder.cc |
| @@ -997,6 +997,22 @@ class AsmWasmBuilderImpl : public AstVisitor { |
| return true; |
| } |
| } |
| + switch (TypeIndexOf(args->at(0))) { |
| + case kInt32: |
| + case kFixnum: |
| + current_function_builder_->Emit(kExprF32SConvertI32); |
|
titzer
2016/03/21 07:59:44
These won't be semantically correct due to WASM, s
bradn
2016/03/21 20:31:08
I think these are ok as is (or have I forgotten so
|
| + break; |
| + case kUint32: |
| + current_function_builder_->Emit(kExprF32UConvertI32); |
| + break; |
| + case kFloat32: |
| + break; |
| + case kFloat64: |
| + current_function_builder_->Emit(kExprF32ConvertF64); |
| + break; |
| + default: |
| + UNREACHABLE(); |
| + } |
| break; |
| } |
| default: { |