Chromium Code Reviews

Unified Diff: src/compiler/pipeline.h

Issue 2500443004: [wasm] OOB traps: build protected instruction list during codegen (Closed)
Patch Set: Fixing Windows better Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: src/compiler/pipeline.h
diff --git a/src/compiler/pipeline.h b/src/compiler/pipeline.h
index 0c0a57b28605a53b39c11a45c43395d15da2191e..6846667d39266b9674d0bc0ff21ad24b22ca54ed 100644
--- a/src/compiler/pipeline.h
+++ b/src/compiler/pipeline.h
@@ -17,6 +17,11 @@ class CompilationInfo;
class CompilationJob;
class RegisterConfiguration;
+namespace wasm {
+struct ProtectedInstructionData;
+typedef std::vector<ProtectedInstructionData> ProtectedInstructionList;
+} // namespace wasm
+
namespace compiler {
class CallDescriptor;
@@ -33,7 +38,8 @@ class Pipeline : public AllStatic {
// Returns a new compilation job for the WebAssembly compilation info.
static CompilationJob* NewWasmCompilationJob(
CompilationInfo* info, Graph* graph, CallDescriptor* descriptor,
- SourcePositionTable* source_positions);
+ SourcePositionTable* source_positions,
+ wasm::ProtectedInstructionList* protected_instructions);
// Run the pipeline on a machine graph and generate code. The {schedule} must
// be valid, hence the given {graph} does not need to be schedulable.
« no previous file with comments | « src/compiler/code-generator.cc ('k') | src/compiler/pipeline.cc » ('j') | src/wasm/wasm-module.h » ('J')

Powered by Google App Engine