OLD | NEW |
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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 int func_index_; | 82 int func_index_; |
83 wasm::Result<wasm::DecodeStruct*> graph_construction_result_; | 83 wasm::Result<wasm::DecodeStruct*> graph_construction_result_; |
84 bool ok_ = true; | 84 bool ok_ = true; |
85 #if DEBUG | 85 #if DEBUG |
86 bool handles_initialized_ = false; | 86 bool handles_initialized_ = false; |
87 #endif // DEBUG | 87 #endif // DEBUG |
88 ZoneVector<trap_handler::ProtectedInstructionData> | 88 ZoneVector<trap_handler::ProtectedInstructionData> |
89 protected_instructions_; // Instructions that are protected by the signal | 89 protected_instructions_; // Instructions that are protected by the signal |
90 // handler. | 90 // handler. |
91 | 91 |
92 void ExecuteCompilationInternal(); | |
93 | |
94 DISALLOW_COPY_AND_ASSIGN(WasmCompilationUnit); | 92 DISALLOW_COPY_AND_ASSIGN(WasmCompilationUnit); |
95 }; | 93 }; |
96 | 94 |
97 // Wraps a JS function, producing a code object that can be called from WASM. | 95 // Wraps a JS function, producing a code object that can be called from WASM. |
98 Handle<Code> CompileWasmToJSWrapper(Isolate* isolate, Handle<JSReceiver> target, | 96 Handle<Code> CompileWasmToJSWrapper(Isolate* isolate, Handle<JSReceiver> target, |
99 wasm::FunctionSig* sig, uint32_t index, | 97 wasm::FunctionSig* sig, uint32_t index, |
100 Handle<String> module_name, | 98 Handle<String> module_name, |
101 MaybeHandle<String> import_name, | 99 MaybeHandle<String> import_name, |
102 wasm::ModuleOrigin origin); | 100 wasm::ModuleOrigin origin); |
103 | 101 |
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
405 } | 403 } |
406 | 404 |
407 int AddParameterNodes(Node** args, int pos, int param_count, | 405 int AddParameterNodes(Node** args, int pos, int param_count, |
408 wasm::FunctionSig* sig); | 406 wasm::FunctionSig* sig); |
409 }; | 407 }; |
410 } // namespace compiler | 408 } // namespace compiler |
411 } // namespace internal | 409 } // namespace internal |
412 } // namespace v8 | 410 } // namespace v8 |
413 | 411 |
414 #endif // V8_COMPILER_WASM_COMPILER_H_ | 412 #endif // V8_COMPILER_WASM_COMPILER_H_ |
OLD | NEW |