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

[iwyu] Fix allocation-site-scopes.h

R=marja@chromium.org

Bug: v8:7965
Change-Id: I596712f55266c245f4df9e2fc7670e518f3e9d52
Reviewed-on: https://chromium-review.googlesource.com/c/1303294Reviewed-by: 's avatarMarja Hölttä <marja@chromium.org>
Commit-Queue: Clemens Hammacher <clemensh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#57060}
parent 104d7521
......@@ -12,6 +12,13 @@
namespace v8 {
namespace internal {
void AllocationSiteContext::InitializeTraversal(Handle<AllocationSite> site) {
top_ = site;
// {current_} is updated in place to not create unnecessary Handles, hence
// we initially need a separate handle.
current_ = Handle<AllocationSite>::New(*top_, isolate());
}
Handle<AllocationSite> AllocationSiteUsageContext::EnterNewScope() {
if (top().is_null()) {
InitializeTraversal(top_site_);
......
......@@ -33,12 +33,7 @@ class AllocationSiteContext {
*(current_.location()) = site;
}
void InitializeTraversal(Handle<AllocationSite> site) {
top_ = site;
// {current_} is updated in place to not create unnecessary Handles, hence
// we initially need a separate handle.
current_ = Handle<AllocationSite>::New(*top_, isolate());
}
inline void InitializeTraversal(Handle<AllocationSite> site);
private:
Isolate* isolate_;
......
......@@ -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/allocation-site-scopes.h',
'src/compiler/allocation-builder.h',
'src/compiler/js-context-specialization.h',
'src/compiler/raw-machine-assembler.h',
......
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