| Auto-Submit | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
if (V8_UNLIKELY(v8_flags.trace_regexp_bytecodes)) {
PrintF(
"Warning: --trace-regexp-bytecodes is enabled but does nothing without "
"`v8_enable_disassembler = true`\n");
}Could we define the flag read-only in that case instead to avoid the runtime check? That's also how we already handle this case for tracing/graph-printing in other parts of the code (maglev, turboshaft, etc).
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Auto-Submit | +1 |
| Commit-Queue | +2 |
if (V8_UNLIKELY(v8_flags.trace_regexp_bytecodes)) {
PrintF(
"Warning: --trace-regexp-bytecodes is enabled but does nothing without "
"`v8_enable_disassembler = true`\n");
}Could we define the flag read-only in that case instead to avoid the runtime check? That's also how we already handle this case for tracing/graph-printing in other parts of the code (maglev, turboshaft, etc).
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Commit-Queue | +2 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
3 is the latest approved patch-set.
The change was submitted with unreviewed changes in the following files:
```
The name of the file: src/regexp/regexp.cc
Insertions: 3, Deletions: 1.
@@ -1015,8 +1015,10 @@
PrintF("\n\nRegexp match: /%s/\n\n",
regexp_data->source()->ToCString().get());
static constexpr uint32_t kMaxSubjectStringLength = 64;
+ uint32_t printed_string_length =
+ std::min(subject->length(), kMaxSubjectStringLength);
PrintF("\n\nSubject string: '%s'\n\n",
- subject->ToCString(0, kMaxSubjectStringLength).get());
+ subject->ToCString(0, printed_string_length).get());
}
#endif
```
[regexp] Gate --trace-regexp-bytecodes behind disassembler
.. instead of debug, since tracing is useful in release builds.
tracing.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |