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

Side by Side Diff: src/compiler/wasm-compiler.cc

Issue 2726453003: [wasm]implement simd lowering for simple F32x4 and I32x4 unops (Closed)
Patch Set: Created 3 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/compiler/wasm-compiler.h" 5 #include "src/compiler/wasm-compiler.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "src/assembler-inl.h" 9 #include "src/assembler-inl.h"
10 #include "src/base/platform/elapsed-timer.h" 10 #include "src/base/platform/elapsed-timer.h"
(...skipping 3356 matching lines...) Expand 10 before | Expand all | Expand 10 after
3367 case wasm::kExprF32x4SConvertI32x4: 3367 case wasm::kExprF32x4SConvertI32x4:
3368 return graph()->NewNode(jsgraph()->machine()->Float32x4FromInt32x4(), 3368 return graph()->NewNode(jsgraph()->machine()->Float32x4FromInt32x4(),
3369 inputs[0]); 3369 inputs[0]);
3370 case wasm::kExprF32x4UConvertI32x4: 3370 case wasm::kExprF32x4UConvertI32x4:
3371 return graph()->NewNode(jsgraph()->machine()->Float32x4FromUint32x4(), 3371 return graph()->NewNode(jsgraph()->machine()->Float32x4FromUint32x4(),
3372 inputs[0]); 3372 inputs[0]);
3373 case wasm::kExprF32x4Abs: 3373 case wasm::kExprF32x4Abs:
3374 return graph()->NewNode(jsgraph()->machine()->Float32x4Abs(), inputs[0]); 3374 return graph()->NewNode(jsgraph()->machine()->Float32x4Abs(), inputs[0]);
3375 case wasm::kExprF32x4Neg: 3375 case wasm::kExprF32x4Neg:
3376 return graph()->NewNode(jsgraph()->machine()->Float32x4Neg(), inputs[0]); 3376 return graph()->NewNode(jsgraph()->machine()->Float32x4Neg(), inputs[0]);
3377 case wasm::kExprF32x4Sqrt:
3378 return graph()->NewNode(jsgraph()->machine()->Float32x4Sqrt(), inputs[0]);
3377 case wasm::kExprF32x4Add: 3379 case wasm::kExprF32x4Add:
3378 return graph()->NewNode(jsgraph()->machine()->Float32x4Add(), inputs[0], 3380 return graph()->NewNode(jsgraph()->machine()->Float32x4Add(), inputs[0],
3379 inputs[1]); 3381 inputs[1]);
3380 case wasm::kExprF32x4Sub: 3382 case wasm::kExprF32x4Sub:
3381 return graph()->NewNode(jsgraph()->machine()->Float32x4Sub(), inputs[0], 3383 return graph()->NewNode(jsgraph()->machine()->Float32x4Sub(), inputs[0],
3382 inputs[1]); 3384 inputs[1]);
3383 case wasm::kExprF32x4Mul: 3385 case wasm::kExprF32x4Mul:
3384 return graph()->NewNode(jsgraph()->machine()->Float32x4Mul(), inputs[0], 3386 return graph()->NewNode(jsgraph()->machine()->Float32x4Mul(), inputs[0],
3385 inputs[1]); 3387 inputs[1]);
3386 case wasm::kExprF32x4Div: 3388 case wasm::kExprF32x4Div:
(...skipping 764 matching lines...) Expand 10 before | Expand all | Expand 10 after
4151 function_->code_end_offset - function_->code_start_offset, 4153 function_->code_end_offset - function_->code_start_offset,
4152 codegen_ms); 4154 codegen_ms);
4153 } 4155 }
4154 4156
4155 return code; 4157 return code;
4156 } 4158 }
4157 4159
4158 } // namespace compiler 4160 } // namespace compiler
4159 } // namespace internal 4161 } // namespace internal
4160 } // namespace v8 4162 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698