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

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

Issue 2959963002: [wasm] Move the CallDescriptor creation methods out of ModuleEnv into the compiler. (Closed)
Patch Set: Include wasm-compiler.h from wasm-linkage.cc Created 3 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
« no previous file with comments | « src/compiler/simd-scalar-lowering.cc ('k') | 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 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 if (buf != buffer) memcpy(buf, buffer, old_count * sizeof(Node*)); 404 if (buf != buffer) memcpy(buf, buffer, old_count * sizeof(Node*));
405 return buf; 405 return buf;
406 } 406 }
407 407
408 int AddParameterNodes(Node** args, int pos, int param_count, 408 int AddParameterNodes(Node** args, int pos, int param_count,
409 wasm::FunctionSig* sig); 409 wasm::FunctionSig* sig);
410 410
411 void SetNeedsStackCheck() { needs_stack_check_ = true; } 411 void SetNeedsStackCheck() { needs_stack_check_ = true; }
412 }; 412 };
413 413
414 V8_EXPORT_PRIVATE CallDescriptor* GetWasmCallDescriptor(Zone* zone,
415 wasm::FunctionSig* sig);
416 V8_EXPORT_PRIVATE CallDescriptor* GetI32WasmCallDescriptor(
417 Zone* zone, CallDescriptor* descriptor);
418 V8_EXPORT_PRIVATE CallDescriptor* GetI32WasmCallDescriptorForSimd(
419 Zone* zone, CallDescriptor* descriptor);
420
414 } // namespace compiler 421 } // namespace compiler
415 } // namespace internal 422 } // namespace internal
416 } // namespace v8 423 } // namespace v8
417 424
418 #endif // V8_COMPILER_WASM_COMPILER_H_ 425 #endif // V8_COMPILER_WASM_COMPILER_H_
OLDNEW
« no previous file with comments | « src/compiler/simd-scalar-lowering.cc ('k') | src/compiler/wasm-compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698