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

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

Issue 2651833003: [wasm] Move protected instruction info to RelocInfo (Closed)
Patch Set: Merge branch 'master' of https://chromium.googlesource.com/v8/v8 into trap-relocinfo Created 3 years, 11 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 | « src/compiler/wasm-compiler.h ('k') | src/compiler/x64/code-generator-x64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/wasm-compiler.cc
diff --git a/src/compiler/wasm-compiler.cc b/src/compiler/wasm-compiler.cc
index b463544e20d52abd4b8d5d38608f0c27e845b248..08ab36dc1ab6a64a59e45a2312e13e038f0b80f3 100644
--- a/src/compiler/wasm-compiler.cc
+++ b/src/compiler/wasm-compiler.cc
@@ -4020,27 +4020,9 @@ Handle<Code> WasmCompilationUnit::FinishCompilation() {
compile_ms);
}
- Handle<FixedArray> protected_instructions = PackProtectedInstructions();
- code->set_protected_instructions(*protected_instructions);
-
return code;
}
-Handle<FixedArray> WasmCompilationUnit::PackProtectedInstructions() const {
- const int num_instructions = static_cast<int>(protected_instructions_.size());
- Handle<FixedArray> fn_protected = isolate_->factory()->NewFixedArray(
- num_instructions * Code::kTrapDataSize, TENURED);
- for (unsigned i = 0; i < protected_instructions_.size(); ++i) {
- const trap_handler::ProtectedInstructionData& instruction =
- protected_instructions_[i];
- fn_protected->set(Code::kTrapDataSize * i + Code::kTrapCodeOffset,
- Smi::FromInt(instruction.instr_offset));
- fn_protected->set(Code::kTrapDataSize * i + Code::kTrapLandingOffset,
- Smi::FromInt(instruction.landing_offset));
- }
- return fn_protected;
-}
-
} // namespace compiler
} // namespace internal
} // namespace v8
« no previous file with comments | « src/compiler/wasm-compiler.h ('k') | src/compiler/x64/code-generator-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698