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

Unified Diff: src/compiler/wasm-compiler.h

Issue 2262103002: [wasm] Pass the context to ToJS. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@fix-imports-context
Patch Set: Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/compiler/wasm-compiler.cc » ('j') | src/compiler/wasm-compiler.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/wasm-compiler.h
diff --git a/src/compiler/wasm-compiler.h b/src/compiler/wasm-compiler.h
index 4e832aea310fe8c148e45efd37d159fd62163247..8d0269c90b3b03095e669df2b184318dd1d3d6ea 100644
--- a/src/compiler/wasm-compiler.h
+++ b/src/compiler/wasm-compiler.h
@@ -88,7 +88,8 @@ Handle<Code> CompileWasmToJSWrapper(Isolate* isolate, Handle<Context> context,
MaybeHandle<String> import_function);
// Wraps a given wasm code object, producing a code object.
-Handle<Code> CompileJSToWasmWrapper(Isolate* isolate, wasm::ModuleEnv* module,
+Handle<Code> CompileJSToWasmWrapper(Isolate* isolate, Handle<Context> context,
+ wasm::ModuleEnv* module,
Handle<Code> wasm_code, uint32_t index);
// Abstracts details of building TurboFan graph nodes for WASM to separate
@@ -157,11 +158,12 @@ class WasmGraphBuilder {
wasm::WasmCodePosition position);
Node* CallIndirect(uint32_t index, Node** args,
wasm::WasmCodePosition position);
- void BuildJSToWasmWrapper(Handle<Code> wasm_code, wasm::FunctionSig* sig);
+ void BuildJSToWasmWrapper(Handle<Context> context, Handle<Code> wasm_code,
+ wasm::FunctionSig* sig);
void BuildWasmToJSWrapper(Handle<Context> context, Handle<JSReceiver> target,
wasm::FunctionSig* sig);
- Node* ToJS(Node* node, wasm::LocalType type);
+ Node* ToJS(Node* node, Handle<Context> context, wasm::LocalType type);
Node* FromJS(Node* node, Node* context, wasm::LocalType type);
Node* Invert(Node* node);
Node* FunctionTable(uint32_t index);
« no previous file with comments | « no previous file | src/compiler/wasm-compiler.cc » ('j') | src/compiler/wasm-compiler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698