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 #ifndef V8_WASM_AST_DECODER_H_ | 5 #ifndef V8_WASM_AST_DECODER_H_ |
6 #define V8_WASM_AST_DECODER_H_ | 6 #define V8_WASM_AST_DECODER_H_ |
7 | 7 |
8 #include "src/signature.h" | 8 #include "src/signature.h" |
9 #include "src/wasm/decoder.h" | 9 #include "src/wasm/decoder.h" |
10 #include "src/wasm/wasm-opcodes.h" | 10 #include "src/wasm/wasm-opcodes.h" |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 }; | 255 }; |
256 | 256 |
257 bool DecodeLocalDecls(AstLocalDecls& decls, const byte* start, const byte* end); | 257 bool DecodeLocalDecls(AstLocalDecls& decls, const byte* start, const byte* end); |
258 BitVector* AnalyzeLoopAssignmentForTesting(Zone* zone, size_t num_locals, | 258 BitVector* AnalyzeLoopAssignmentForTesting(Zone* zone, size_t num_locals, |
259 const byte* start, const byte* end); | 259 const byte* start, const byte* end); |
260 | 260 |
261 // Computes the length of the opcode at the given address. | 261 // Computes the length of the opcode at the given address. |
262 int OpcodeLength(const byte* pc, const byte* end); | 262 int OpcodeLength(const byte* pc, const byte* end); |
263 | 263 |
264 // Computes the arity (number of sub-nodes) of the opcode at the given address. | 264 // Computes the arity (number of sub-nodes) of the opcode at the given address. |
265 int OpcodeArity(ModuleEnv* module, FunctionSig* sig, const byte* pc, | 265 int OpcodeArity(const byte* pc, const byte* end); |
266 const byte* end); | 266 |
267 } // namespace wasm | 267 } // namespace wasm |
268 } // namespace internal | 268 } // namespace internal |
269 } // namespace v8 | 269 } // namespace v8 |
270 | 270 |
271 #endif // V8_WASM_AST_DECODER_H_ | 271 #endif // V8_WASM_AST_DECODER_H_ |
OLD | NEW |