Commit eeead50c authored by Georg Neis's avatar Georg Neis Committed by V8 LUCI CQ

Instrument JSObject::GetHeaderSize to track down Chrome crashes

Bug: chromium:1211264
Change-Id: If47e40e82d79707c7032837f56450790c089cf4b
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2976659
Commit-Queue: Georg Neis <neis@chromium.org>
Reviewed-by: 's avatarLeszek Swirski <leszeks@chromium.org>
Cr-Commit-Position: refs/heads/master@{#75309}
parent 9010201c
...@@ -2330,8 +2330,11 @@ int JSObject::GetHeaderSize(InstanceType type, ...@@ -2330,8 +2330,11 @@ int JSObject::GetHeaderSize(InstanceType type,
case WASM_EXCEPTION_OBJECT_TYPE: case WASM_EXCEPTION_OBJECT_TYPE:
return WasmExceptionObject::kHeaderSize; return WasmExceptionObject::kHeaderSize;
#endif // V8_ENABLE_WEBASSEMBLY #endif // V8_ENABLE_WEBASSEMBLY
default: default: {
UNREACHABLE(); std::stringstream ss;
ss << type;
FATAL("unexpected instance type: %s\n", ss.str().c_str());
}
} }
} }
......
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