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

Side by Side Diff: src/wasm/wasm-opcodes.h

Issue 1991143002: Convert SIMD wasm ops to runtime function calls (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Cleanup Created 4 years, 5 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 #ifndef V8_WASM_OPCODES_H_ 5 #ifndef V8_WASM_OPCODES_H_
6 #define V8_WASM_OPCODES_H_ 6 #define V8_WASM_OPCODES_H_
7 7
8 #include "src/machine-type.h" 8 #include "src/machine-type.h"
9 #include "src/signature.h" 9 #include "src/signature.h"
10 10
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 const LocalType kAstEnd = MachineRepresentation::kTagged; 50 const LocalType kAstEnd = MachineRepresentation::kTagged;
51 51
52 typedef Signature<LocalType> FunctionSig; 52 typedef Signature<LocalType> FunctionSig;
53 std::ostream& operator<<(std::ostream& os, const FunctionSig& function); 53 std::ostream& operator<<(std::ostream& os, const FunctionSig& function);
54 54
55 typedef Vector<const char> WasmName; 55 typedef Vector<const char> WasmName;
56 56
57 typedef int WasmCodePosition; 57 typedef int WasmCodePosition;
58 const WasmCodePosition kNoCodePosition = -1; 58 const WasmCodePosition kNoCodePosition = -1;
59 59
60 static const byte kSimdPrefix = 0xe5;
61
60 // Control expressions and blocks. 62 // Control expressions and blocks.
61 #define FOREACH_CONTROL_OPCODE(V) \ 63 #define FOREACH_CONTROL_OPCODE(V) \
62 V(Nop, 0x00, _) \ 64 V(Nop, 0x00, _) \
63 V(Block, 0x01, _) \ 65 V(Block, 0x01, _) \
64 V(Loop, 0x02, _) \ 66 V(Loop, 0x02, _) \
65 V(If, 0x03, _) \ 67 V(If, 0x03, _) \
66 V(Else, 0x04, _) \ 68 V(Else, 0x04, _) \
67 V(Select, 0x05, _) \ 69 V(Select, 0x05, _) \
68 V(Br, 0x06, _) \ 70 V(Br, 0x06, _) \
69 V(BrIf, 0x07, _) \ 71 V(BrIf, 0x07, _) \
(...skipping 597 matching lines...) Expand 10 before | Expand all | Expand 10 after
667 default: 669 default:
668 return "<unknown>"; 670 return "<unknown>";
669 } 671 }
670 } 672 }
671 }; 673 };
672 } // namespace wasm 674 } // namespace wasm
673 } // namespace internal 675 } // namespace internal
674 } // namespace v8 676 } // namespace v8
675 677
676 #endif // V8_WASM_OPCODES_H_ 678 #endif // V8_WASM_OPCODES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698