OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |