Commit 4789c93c authored by Michael Starzinger's avatar Michael Starzinger Committed by Commit Bot

[wasm] Make {WasmCode::trap_handler_index} private.

R=clemensh@chromium.org

Change-Id: Ib399e6beb1f643ed58d46a19fcaa0e9bf44ba2ea
Reviewed-on: https://chromium-review.googlesource.com/998161Reviewed-by: 's avatarClemens Hammacher <clemensh@chromium.org>
Commit-Queue: Michael Starzinger <mstarzinger@chromium.org>
Cr-Commit-Position: refs/heads/master@{#52480}
parent 7e0aae9b
......@@ -117,13 +117,6 @@ class V8_EXPORT_PRIVATE WasmCode final {
uint32_t stack_slots() const { return stack_slots_; }
bool is_liftoff() const { return tier_ == kLiftoff; }
// TODO(mstarzinger): Make the next four methods private once wasm-to-wasm
// wrappers are gone. All uses are in {NativeModule} by now.
size_t trap_handler_index() const;
void set_trap_handler_index(size_t);
bool HasTrapHandlerIndex() const;
void ResetTrapHandlerIndex();
const ProtectedInstructions& protected_instructions() const {
// TODO(mstarzinger): Code that doesn't have trapping instruction should
// not be required to have this vector, make it possible to be null.
......@@ -177,6 +170,13 @@ class V8_EXPORT_PRIVATE WasmCode final {
DCHECK_EQ(kInstructionStartOffset, OFFSET_OF(WasmCode, instructions_));
}
// Code objects that have been registered with the global trap handler within
// this process, will have a {trap_handler_index} associated with them.
size_t trap_handler_index() const;
void set_trap_handler_index(size_t);
bool HasTrapHandlerIndex() const;
void ResetTrapHandlerIndex();
Vector<byte> instructions_;
std::unique_ptr<const byte[]> reloc_info_;
size_t reloc_size_ = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment