| Index: src/hydrogen.h
|
| diff --git a/src/hydrogen.h b/src/hydrogen.h
|
| index 872ae98ead2a5c8723b6b2576c6e35d98ab4b6d5..35165ae97aea4a37b75ed41270bc1a4a5d0d7528 100644
|
| --- a/src/hydrogen.h
|
| +++ b/src/hydrogen.h
|
| @@ -1,4 +1,4 @@
|
| -// Copyright 2010 the V8 project authors. All rights reserved.
|
| +// Copyright 2011 the V8 project authors. All rights reserved.
|
| // Redistribution and use in source and binary forms, with or without
|
| // modification, are permitted provided that the following conditions are
|
| // met:
|
| @@ -906,7 +906,7 @@ class HValueMap: public ZoneObject {
|
| class HStatistics: public Malloced {
|
| public:
|
| void Print();
|
| - void SaveTiming(const char* name, int64_t ticks);
|
| + void SaveTiming(const char* name, int64_t ticks, unsigned size);
|
| static HStatistics* Instance() {
|
| static SetOncePointer<HStatistics> instance;
|
| if (!instance.is_set()) {
|
| @@ -917,11 +917,19 @@ class HStatistics: public Malloced {
|
|
|
| private:
|
|
|
| - HStatistics() : timing_(5), names_(5), total_(0), full_code_gen_(0) { }
|
| + HStatistics()
|
| + : timing_(5),
|
| + names_(5),
|
| + sizes_(5),
|
| + total_(0),
|
| + total_size_(0),
|
| + full_code_gen_(0) { }
|
|
|
| List<int64_t> timing_;
|
| List<const char*> names_;
|
| + List<unsigned> sizes_;
|
| int64_t total_;
|
| + unsigned total_size_;
|
| int64_t full_code_gen_;
|
| };
|
|
|
| @@ -958,6 +966,7 @@ class HPhase BASE_EMBEDDED {
|
| HGraph* graph_;
|
| LChunk* chunk_;
|
| LAllocator* allocator_;
|
| + unsigned start_allocation_size_;
|
| };
|
|
|
|
|
|
|