Commit 55feb110 authored by Jaroslav Sevcik's avatar Jaroslav Sevcik Committed by Commit Bot

[turbofan] Put serializing standard objects into an own phase

Bug: v8:7790
Change-Id: I864a7541b7ff37b750fc73cd6614feca98e57c77
Reviewed-on: https://chromium-review.googlesource.com/1233758Reviewed-by: 's avatarGeorg Neis <neis@chromium.org>
Commit-Queue: Jaroslav Sevcik <jarin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#56058}
parent 2461b84d
......@@ -1297,10 +1297,16 @@ struct UntyperPhase {
}
};
struct CopyMetadataForConcurrentCompilePhase {
static const char* phase_name() {
return "copy metadata for concurrent compile";
struct SerializeStandardObjectsPhase {
static const char* phase_name() { return "serialize standard objects"; }
void Run(PipelineData* data, Zone* temp_zone) {
data->js_heap_broker()->SerializeStandardObjects();
}
};
struct CopyMetadataForConcurrentCompilePhase {
static const char* phase_name() { return "serialize metadata"; }
void Run(PipelineData* data, Zone* temp_zone) {
GraphReducer graph_reducer(temp_zone, data->graph(),
......@@ -2016,7 +2022,7 @@ bool PipelineImpl::CreateGraph() {
data->node_origins()->AddDecorator();
}
data->js_heap_broker()->SerializeStandardObjects();
Run<SerializeStandardObjectsPhase>();
Run<GraphBuilderPhase>();
RunPrintAndVerify(GraphBuilderPhase::phase_name(), true);
......
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