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

Side by Side Diff: src/wasm/function-body-decoder.cc

Issue 2719483002: [V8] Rename SIMD Create methods and add initialization operators. (Closed)
Patch Set: Created 3 years, 10 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/signature.h" 5 #include "src/signature.h"
6 6
7 #include "src/base/platform/elapsed-timer.h" 7 #include "src/base/platform/elapsed-timer.h"
8 #include "src/bit-vector.h" 8 #include "src/bit-vector.h"
9 #include "src/flags.h" 9 #include "src/flags.h"
10 #include "src/handles.h" 10 #include "src/handles.h"
(...skipping 642 matching lines...) Expand 10 before | Expand all | Expand 10 after
653 switch (type) { 653 switch (type) {
654 case kWasmI32: 654 case kWasmI32:
655 return builder_->Int32Constant(0); 655 return builder_->Int32Constant(0);
656 case kWasmI64: 656 case kWasmI64:
657 return builder_->Int64Constant(0); 657 return builder_->Int64Constant(0);
658 case kWasmF32: 658 case kWasmF32:
659 return builder_->Float32Constant(0); 659 return builder_->Float32Constant(0);
660 case kWasmF64: 660 case kWasmF64:
661 return builder_->Float64Constant(0); 661 return builder_->Float64Constant(0);
662 case kWasmS128: 662 case kWasmS128:
663 return builder_->CreateS128Value(0); 663 return builder_->Simd128Zero();
664 case kWasmS1x4:
665 return builder_->Simd1x4Zero();
666 case kWasmS1x8:
667 return builder_->Simd1x8Zero();
668 case kWasmS1x16:
669 return builder_->Simd1x16Zero();
664 default: 670 default:
665 UNREACHABLE(); 671 UNREACHABLE();
666 return nullptr; 672 return nullptr;
667 } 673 }
668 } 674 }
669 675
670 char* indentation() { 676 char* indentation() {
671 static const int kMaxIndent = 64; 677 static const int kMaxIndent = 64;
672 static char bytes[kMaxIndent + 1]; 678 static char bytes[kMaxIndent + 1];
673 for (int i = 0; i < kMaxIndent; ++i) bytes[i] = ' '; 679 for (int i = 0; i < kMaxIndent; ++i) bytes[i] = ' ';
(...skipping 1486 matching lines...) Expand 10 before | Expand all | Expand 10 after
2160 BitVector* AnalyzeLoopAssignmentForTesting(Zone* zone, size_t num_locals, 2166 BitVector* AnalyzeLoopAssignmentForTesting(Zone* zone, size_t num_locals,
2161 const byte* start, const byte* end) { 2167 const byte* start, const byte* end) {
2162 Decoder decoder(start, end); 2168 Decoder decoder(start, end);
2163 return WasmDecoder::AnalyzeLoopAssignment(&decoder, start, 2169 return WasmDecoder::AnalyzeLoopAssignment(&decoder, start,
2164 static_cast<int>(num_locals), zone); 2170 static_cast<int>(num_locals), zone);
2165 } 2171 }
2166 2172
2167 } // namespace wasm 2173 } // namespace wasm
2168 } // namespace internal 2174 } // namespace internal
2169 } // namespace v8 2175 } // namespace v8
OLDNEW
« src/compiler/wasm-compiler.cc ('K') | « src/compiler/x64/instruction-selector-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698