Reviewers: dcarney,
Description:
[turbofan] Add a PhaseScope for initialization.
[email protected]
BUG=
Please review this at https://codereview.chromium.org/773443002/
Base URL: https://chromium.googlesource.com/v8/v8.git@master
Affected files (+5, -1 lines):
M src/compiler/pipeline.cc
Index: src/compiler/pipeline.cc
diff --git a/src/compiler/pipeline.cc b/src/compiler/pipeline.cc
index
b5185b8f2a938782ab5fbfdaefff79b8119af067..38858a987056adabea5002a2cad2c43ff1d28eb0
100644
--- a/src/compiler/pipeline.cc
+++ b/src/compiler/pipeline.cc
@@ -76,8 +76,12 @@ class PipelineData {
// For main entry point.
void Initialize(PipelineStatistics* pipeline_statistics) {
- outer_zone_ = info()->zone();
pipeline_statistics_ = pipeline_statistics;
+ if (pipeline_statistics != NULL) {
+ pipeline_statistics->BeginPhaseKind("initializing");
+ }
+ PhaseScope scope(pipeline_statistics, "initializing");
+ outer_zone_ = info()->zone();
graph_zone_ = graph_zone_scope_.zone();
graph_ = new (graph_zone()) Graph(graph_zone());
source_positions_.Reset(new SourcePositionTable(graph()));
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.