Commit 0d9ed950 authored by Clemens Hammacher's avatar Clemens Hammacher Committed by Commit Bot

[iwyu] Fix jsregexp.h

R=jgruber@chromium.org

Bug: v8:7965
Change-Id: Icad6d0f2e43d8c5bb62ad160a186b1d3dbd57781
Reviewed-on: https://chromium-review.googlesource.com/c/1303298
Commit-Queue: Clemens Hammacher <clemensh@chromium.org>
Reviewed-by: 's avatarJakob Gruber <jgruber@chromium.org>
Cr-Commit-Position: refs/heads/master@{#57079}
parent 4b94fab9
......@@ -75,6 +75,10 @@ int32_t* RegExpImpl::GlobalCache::LastSuccessfulMatch() {
return &register_array_[index];
}
RegExpEngine::CompilationResult::CompilationResult(Isolate* isolate,
const char* error_message)
: error_message(error_message),
code(ReadOnlyRoots(isolate).the_hole_value()) {}
} // namespace internal
} // namespace v8
......
......@@ -1504,15 +1504,12 @@ struct RegExpCompileData {
class RegExpEngine: public AllStatic {
public:
struct CompilationResult {
CompilationResult(Isolate* isolate, const char* error_message)
: error_message(error_message),
code(ReadOnlyRoots(isolate).the_hole_value()),
num_registers(0) {}
inline CompilationResult(Isolate* isolate, const char* error_message);
CompilationResult(Object* code, int registers)
: error_message(nullptr), code(code), num_registers(registers) {}
const char* error_message;
Object* code;
int num_registers;
: code(code), num_registers(registers) {}
const char* const error_message = nullptr;
Object* const code;
int const num_registers = 0;
};
static CompilationResult Compile(Isolate* isolate, Zone* zone,
......
......@@ -29,7 +29,6 @@ AUTO_EXCLUDE = [
# flag-definitions.h needs a mode set for being included.
'src/flag-definitions.h',
# blacklist of headers we need to fix (https://crbug.com/v8/7965).
'src/regexp/jsregexp.h',
'src/transitions.h',
]
AUTO_EXCLUDE_PATTERNS = [
......
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