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

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

Issue 2295743002: [wasm] Refactor BuildWasmToJSWrapper to clearly separate direct calls from Call-codestub calls (Closed)
Patch Set: factor out loop Created 4 years, 3 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 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 Node* BuildI32AsmjsDivU(Node* left, Node* right); 330 Node* BuildI32AsmjsDivU(Node* left, Node* right);
331 Node* BuildI32AsmjsRemU(Node* left, Node* right); 331 Node* BuildI32AsmjsRemU(Node* left, Node* right);
332 Node* BuildAsmjsLoadMem(MachineType type, Node* index); 332 Node* BuildAsmjsLoadMem(MachineType type, Node* index);
333 Node* BuildAsmjsStoreMem(MachineType type, Node* index, Node* val); 333 Node* BuildAsmjsStoreMem(MachineType type, Node* index, Node* val);
334 334
335 Node** Realloc(Node** buffer, size_t old_count, size_t new_count) { 335 Node** Realloc(Node** buffer, size_t old_count, size_t new_count) {
336 Node** buf = Buffer(new_count); 336 Node** buf = Buffer(new_count);
337 if (buf != buffer) memcpy(buf, buffer, old_count * sizeof(Node*)); 337 if (buf != buffer) memcpy(buf, buffer, old_count * sizeof(Node*));
338 return buf; 338 return buf;
339 } 339 }
340
341 int AddParameterNodes(Node** args, int pos, int param_count,
342 wasm::FunctionSig* sig);
340 }; 343 };
341 } // namespace compiler 344 } // namespace compiler
342 } // namespace internal 345 } // namespace internal
343 } // namespace v8 346 } // namespace v8
344 347
345 #endif // V8_COMPILER_WASM_COMPILER_H_ 348 #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