-
Seth Brenith authored
This is a reland of ef808d3b Original change's description: > [torque] Protect against printing Type* pointers > > I've noticed a frequent mistake within Torque is to use Type* pointers > with ostream's operator<<, which causes it to print a hex pointer rather > than a descriptive string. This can cause confusing error messages for > users of the Torque compiler. This change is an idea to prevent future > incidences of that problem by adding a template overload that will cause > a compilation failure if anybody tries to use Type* in this way. It > found two incorrect uses of Type*, which I've corrected. > > Bug: v8:7793 > Change-Id: I85fafb333a89f8a3fed4346bdd154d70846a63d1 > Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2748936 > Reviewed-by: Clemens Backes <clemensb@chromium.org> > Reviewed-by: Nico Hartmann <nicohartmann@chromium.org> > Commit-Queue: Seth Brenith <seth.brenith@microsoft.com> > Cr-Commit-Position: refs/heads/master@{#73574} Bug: v8:7793 Change-Id: Id775c88d67c2fb4fbef38ef889c39dff3b6ff6b7 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2778727Reviewed-by:
Clemens Backes <clemensb@chromium.org> Reviewed-by:
Deepti Gandluri <gdeepti@chromium.org> Reviewed-by:
Nico Hartmann <nicohartmann@chromium.org> Commit-Queue: Seth Brenith <seth.brenith@microsoft.com> Cr-Commit-Position: refs/heads/master@{#73608}
11ebb0c4
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
api | Loading commit data... | |
asmjs | ||
ast | ||
base | ||
baseline | ||
builtins | ||
codegen | ||
common | ||
compiler | ||
compiler-dispatcher | ||
d8 | ||
date | ||
debug | ||
deoptimizer | ||
diagnostics | ||
execution | ||
extensions | ||
flags | ||
handles | ||
heap | ||
ic | ||
init | ||
inspector | ||
interpreter | ||
json | ||
libplatform | ||
libsampler | ||
logging | ||
numbers | ||
objects | ||
parsing | ||
profiler | ||
protobuf | ||
regexp | ||
roots | ||
runtime | ||
sanitizer | ||
snapshot | ||
strings | ||
tasks | ||
third_party | ||
torque | ||
tracing | ||
trap-handler | ||
utils | ||
wasm | ||
web-snapshot | ||
zone | ||
DEPS | ||
DIR_METADATA | ||
OWNERS |