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

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

Issue 2776753004: [wasm] Make Opcode names consistent across architectures, implementations (Closed)
Patch Set: Fix Saturates Created 3 years, 8 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
« no previous file with comments | « src/compiler/x64/instruction-selector-x64.cc ('k') | test/cctest/wasm/test-run-wasm-simd.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 639 matching lines...) Expand 10 before | Expand all | Expand 10 after
650 switch (type) { 650 switch (type) {
651 case kWasmI32: 651 case kWasmI32:
652 return builder_->Int32Constant(0); 652 return builder_->Int32Constant(0);
653 case kWasmI64: 653 case kWasmI64:
654 return builder_->Int64Constant(0); 654 return builder_->Int64Constant(0);
655 case kWasmF32: 655 case kWasmF32:
656 return builder_->Float32Constant(0); 656 return builder_->Float32Constant(0);
657 case kWasmF64: 657 case kWasmF64:
658 return builder_->Float64Constant(0); 658 return builder_->Float64Constant(0);
659 case kWasmS128: 659 case kWasmS128:
660 return builder_->Simd128Zero(); 660 return builder_->S128Zero();
661 case kWasmS1x4: 661 case kWasmS1x4:
662 return builder_->Simd1x4Zero(); 662 return builder_->S1x4Zero();
663 case kWasmS1x8: 663 case kWasmS1x8:
664 return builder_->Simd1x8Zero(); 664 return builder_->S1x8Zero();
665 case kWasmS1x16: 665 case kWasmS1x16:
666 return builder_->Simd1x16Zero(); 666 return builder_->S1x16Zero();
667 default: 667 default:
668 UNREACHABLE(); 668 UNREACHABLE();
669 return nullptr; 669 return nullptr;
670 } 670 }
671 } 671 }
672 672
673 char* indentation() { 673 char* indentation() {
674 static const int kMaxIndent = 64; 674 static const int kMaxIndent = 64;
675 static char bytes[kMaxIndent + 1]; 675 static char bytes[kMaxIndent + 1];
676 for (int i = 0; i < kMaxIndent; ++i) bytes[i] = ' '; 676 for (int i = 0; i < kMaxIndent; ++i) bytes[i] = ' ';
(...skipping 1490 matching lines...) Expand 10 before | Expand all | Expand 10 after
2167 BitVector* AnalyzeLoopAssignmentForTesting(Zone* zone, size_t num_locals, 2167 BitVector* AnalyzeLoopAssignmentForTesting(Zone* zone, size_t num_locals,
2168 const byte* start, const byte* end) { 2168 const byte* start, const byte* end) {
2169 Decoder decoder(start, end); 2169 Decoder decoder(start, end);
2170 return WasmDecoder::AnalyzeLoopAssignment(&decoder, start, 2170 return WasmDecoder::AnalyzeLoopAssignment(&decoder, start,
2171 static_cast<int>(num_locals), zone); 2171 static_cast<int>(num_locals), zone);
2172 } 2172 }
2173 2173
2174 } // namespace wasm 2174 } // namespace wasm
2175 } // namespace internal 2175 } // namespace internal
2176 } // namespace v8 2176 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/x64/instruction-selector-x64.cc ('k') | test/cctest/wasm/test-run-wasm-simd.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698