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

Unified Diff: src/compiler/pipeline.h

Issue 2500443004: [wasm] OOB traps: build protected instruction list during codegen (Closed)
Patch Set: Merging with master Created 4 years, 1 month 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
Index: src/compiler/pipeline.h
diff --git a/src/compiler/pipeline.h b/src/compiler/pipeline.h
index 0c0a57b28605a53b39c11a45c43395d15da2191e..7799bf835f57e854da0ac00e133d1ece18cc4a5d 100644
--- a/src/compiler/pipeline.h
+++ b/src/compiler/pipeline.h
@@ -17,6 +17,11 @@ class CompilationInfo;
class CompilationJob;
class RegisterConfiguration;
+namespace trap_handler {
+struct ProtectedInstructionData;
+typedef std::vector<ProtectedInstructionData> ProtectedInstructionList;
titzer 2016/11/30 17:31:12 Do you want to use a ZoneVector?
Eric Holk 2016/11/30 20:16:19 Yes. Done.
+} // namespace trap_handler
+
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,
+ trap_handler::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.

Powered by Google App Engine
This is Rietveld 408576698