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

Side by Side Diff: src/wasm/module-decoder.cc

Issue 2264533002: [wasm] Add native x64 implementations for I32x4Splat, I32x4ExtractLane (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@macroize_runtime
Patch Set: Review changes Created 4 years, 4 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/wasm/ast-decoder.cc ('k') | src/wasm/wasm-opcodes.h » ('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/wasm/module-decoder.h" 5 #include "src/wasm/module-decoder.h"
6 6
7 #include "src/base/functional.h" 7 #include "src/base/functional.h"
8 #include "src/base/platform/platform.h" 8 #include "src/base/platform/platform.h"
9 #include "src/macro-assembler.h" 9 #include "src/macro-assembler.h"
10 #include "src/objects.h" 10 #include "src/objects.h"
(...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after
627 case kLocalVoid: 627 case kLocalVoid:
628 return kAstStmt; 628 return kAstStmt;
629 case kLocalI32: 629 case kLocalI32:
630 return kAstI32; 630 return kAstI32;
631 case kLocalI64: 631 case kLocalI64:
632 return kAstI64; 632 return kAstI64;
633 case kLocalF32: 633 case kLocalF32:
634 return kAstF32; 634 return kAstF32;
635 case kLocalF64: 635 case kLocalF64:
636 return kAstF64; 636 return kAstF64;
637 case kLocalS128:
638 return kAstS128;
637 default: 639 default:
638 error(pc_ - 1, "invalid local type"); 640 error(pc_ - 1, "invalid local type");
639 return kAstStmt; 641 return kAstStmt;
640 } 642 }
641 } 643 }
642 644
643 // Parses a type entry, which is currently limited to functions only. 645 // Parses a type entry, which is currently limited to functions only.
644 FunctionSig* consume_sig() { 646 FunctionSig* consume_sig() {
645 const byte* pos = pc_; 647 const byte* pos = pc_;
646 byte form = consume_u8("type form"); 648 byte form = consume_u8("type form");
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
811 decoder.consume_bytes(size); 813 decoder.consume_bytes(size);
812 } 814 }
813 if (decoder.more()) decoder.error("unexpected additional bytes"); 815 if (decoder.more()) decoder.error("unexpected additional bytes");
814 816
815 return decoder.toResult(std::move(table)); 817 return decoder.toResult(std::move(table));
816 } 818 }
817 819
818 } // namespace wasm 820 } // namespace wasm
819 } // namespace internal 821 } // namespace internal
820 } // namespace v8 822 } // namespace v8
OLDNEW
« no previous file with comments | « src/wasm/ast-decoder.cc ('k') | src/wasm/wasm-opcodes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698