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

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

Issue 2887053003: MIPS[64]: Reland of `Fix unaligned arguments storage in Wasm-to-interpreter entry` (Closed)
Patch Set: Simplifications. Created 3 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/compiler/wasm-compiler.cc » ('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 #ifndef V8_COMPILER_WASM_COMPILER_H_ 5 #ifndef V8_COMPILER_WASM_COMPILER_H_
6 #define V8_COMPILER_WASM_COMPILER_H_ 6 #define V8_COMPILER_WASM_COMPILER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 // Clients of this interface shouldn't depend on lots of compiler internals. 10 // Clients of this interface shouldn't depend on lots of compiler internals.
(...skipping 10 matching lines...) Expand all
21 namespace v8 { 21 namespace v8 {
22 namespace internal { 22 namespace internal {
23 23
24 namespace compiler { 24 namespace compiler {
25 // Forward declarations for some compiler data structures. 25 // Forward declarations for some compiler data structures.
26 class Node; 26 class Node;
27 class JSGraph; 27 class JSGraph;
28 class Graph; 28 class Graph;
29 class Operator; 29 class Operator;
30 class SourcePositionTable; 30 class SourcePositionTable;
31 class MachineOperatorBuilder;
31 } // namespace compiler 32 } // namespace compiler
32 33
33 namespace wasm { 34 namespace wasm {
34 // Forward declarations for some WASM data structures. 35 // Forward declarations for some WASM data structures.
35 struct ModuleBytesEnv; 36 struct ModuleBytesEnv;
36 struct ModuleEnv; 37 struct ModuleEnv;
37 struct WasmFunction; 38 struct WasmFunction;
38 struct WasmModule; 39 struct WasmModule;
39 class ErrorThrower; 40 class ErrorThrower;
40 struct DecodeStruct; 41 struct DecodeStruct;
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 290
290 // Internal helper methods. 291 // Internal helper methods.
291 JSGraph* jsgraph() { return jsgraph_; } 292 JSGraph* jsgraph() { return jsgraph_; }
292 Graph* graph(); 293 Graph* graph();
293 294
294 Node* String(const char* string); 295 Node* String(const char* string);
295 Node* MemSize(); 296 Node* MemSize();
296 Node* MemBuffer(uint32_t offset); 297 Node* MemBuffer(uint32_t offset);
297 void BoundsCheckMem(MachineType memtype, Node* index, uint32_t offset, 298 void BoundsCheckMem(MachineType memtype, Node* index, uint32_t offset,
298 wasm::WasmCodePosition position); 299 wasm::WasmCodePosition position);
299 300 const Operator* GetSafeStoreOperator(MachineOperatorBuilder* machine,
Clemens Hammacher 2017/05/26 11:02:13 Since this is a method on the WasmGraphBuilder, yo
301 int offset, wasm::ValueType type);
300 Node* BuildChangeEndianness(Node* node, MachineType type, 302 Node* BuildChangeEndianness(Node* node, MachineType type,
301 wasm::ValueType wasmtype = wasm::kWasmStmt); 303 wasm::ValueType wasmtype = wasm::kWasmStmt);
302 304
303 Node* MaskShiftCount32(Node* node); 305 Node* MaskShiftCount32(Node* node);
304 Node* MaskShiftCount64(Node* node); 306 Node* MaskShiftCount64(Node* node);
305 307
306 Node* BuildCCall(MachineSignature* sig, Node** args); 308 Node* BuildCCall(MachineSignature* sig, Node** args);
307 Node* BuildWasmCall(wasm::FunctionSig* sig, Node** args, Node*** rets, 309 Node* BuildWasmCall(wasm::FunctionSig* sig, Node** args, Node*** rets,
308 wasm::WasmCodePosition position); 310 wasm::WasmCodePosition position);
309 311
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 } 407 }
406 408
407 int AddParameterNodes(Node** args, int pos, int param_count, 409 int AddParameterNodes(Node** args, int pos, int param_count,
408 wasm::FunctionSig* sig); 410 wasm::FunctionSig* sig);
409 }; 411 };
410 } // namespace compiler 412 } // namespace compiler
411 } // namespace internal 413 } // namespace internal
412 } // namespace v8 414 } // namespace v8
413 415
414 #endif // V8_COMPILER_WASM_COMPILER_H_ 416 #endif // V8_COMPILER_WASM_COMPILER_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler/wasm-compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698