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

Side by Side Diff: src/wasm/ast-decoder.h

Issue 1937083002: [wasm] Remove the module environment and signature as arguments to OpcodeArity. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 7 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 | src/wasm/ast-decoder.cc » ('j') | src/wasm/ast-decoder.cc » ('J')
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 #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
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_
OLDNEW
« no previous file with comments | « no previous file | src/wasm/ast-decoder.cc » ('j') | src/wasm/ast-decoder.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698