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

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

Issue 2946303002: [wasm] Remove double check for --experimental-wasm-simd flag (Closed)
Patch Set: Created 3 years, 6 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 | « no previous file | no next file » | 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 1597 matching lines...) Expand 10 before | Expand all | Expand 10 after
1608 case kExprI8x16ShrS: 1608 case kExprI8x16ShrS:
1609 case kExprI8x16ShrU: { 1609 case kExprI8x16ShrU: {
1610 len = SimdShiftOp(opcode); 1610 len = SimdShiftOp(opcode);
1611 break; 1611 break;
1612 } 1612 }
1613 case kExprS8x16Shuffle: { 1613 case kExprS8x16Shuffle: {
1614 len = Simd8x16ShuffleOp(); 1614 len = Simd8x16ShuffleOp();
1615 break; 1615 break;
1616 } 1616 }
1617 case kExprS128LoadMem: 1617 case kExprS128LoadMem:
1618 CHECK_PROTOTYPE_OPCODE(simd);
1619 len = DecodePrefixedLoadMem(kWasmS128, MachineType::Simd128()); 1618 len = DecodePrefixedLoadMem(kWasmS128, MachineType::Simd128());
1620 break; 1619 break;
1621 case kExprS128StoreMem: 1620 case kExprS128StoreMem:
1622 CHECK_PROTOTYPE_OPCODE(simd);
1623 len = DecodePrefixedStoreMem(kWasmS128, MachineType::Simd128()); 1621 len = DecodePrefixedStoreMem(kWasmS128, MachineType::Simd128());
1624 break; 1622 break;
1625 default: { 1623 default: {
1626 FunctionSig* sig = WasmOpcodes::Signature(opcode); 1624 FunctionSig* sig = WasmOpcodes::Signature(opcode);
1627 if (sig != nullptr) { 1625 if (sig != nullptr) {
1628 compiler::NodeVector inputs(sig->parameter_count(), zone_); 1626 compiler::NodeVector inputs(sig->parameter_count(), zone_);
1629 for (size_t i = sig->parameter_count(); i > 0; i--) { 1627 for (size_t i = sig->parameter_count(); i > 0; i--) {
1630 Value val = Pop(static_cast<int>(i - 1), sig->GetParam(i - 1)); 1628 Value val = Pop(static_cast<int>(i - 1), sig->GetParam(i - 1));
1631 inputs[i - 1] = val.node; 1629 inputs[i - 1] = val.node;
1632 } 1630 }
(...skipping 661 matching lines...) Expand 10 before | Expand all | Expand 10 after
2294 BitVector* AnalyzeLoopAssignmentForTesting(Zone* zone, size_t num_locals, 2292 BitVector* AnalyzeLoopAssignmentForTesting(Zone* zone, size_t num_locals,
2295 const byte* start, const byte* end) { 2293 const byte* start, const byte* end) {
2296 Decoder decoder(start, end); 2294 Decoder decoder(start, end);
2297 return WasmDecoder::AnalyzeLoopAssignment(&decoder, start, 2295 return WasmDecoder::AnalyzeLoopAssignment(&decoder, start,
2298 static_cast<int>(num_locals), zone); 2296 static_cast<int>(num_locals), zone);
2299 } 2297 }
2300 2298
2301 } // namespace wasm 2299 } // namespace wasm
2302 } // namespace internal 2300 } // namespace internal
2303 } // namespace v8 2301 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698