Index: src/profile-generator.cc |
diff --git a/src/profile-generator.cc b/src/profile-generator.cc |
index d8e8c127bf3949ad586e48822ae7a3d2610226dd..cf268afc9b41e18f0b763816df783a1f0008798d 100644 |
--- a/src/profile-generator.cc |
+++ b/src/profile-generator.cc |
@@ -141,15 +141,6 @@ CodeEntry::~CodeEntry() { |
} |
-void CodeEntry::CopyData(const CodeEntry& source) { |
- tag_ = source.tag_; |
- name_prefix_ = source.name_prefix_; |
- name_ = source.name_; |
- resource_name_ = source.resource_name_; |
- line_number_ = source.line_number_; |
-} |
- |
- |
uint32_t CodeEntry::GetCallUid() const { |
uint32_t hash = ComputeIntegerHash(tag_, v8::internal::kZeroHashSeed); |
if (shared_id_ != 0) { |
@@ -662,4 +653,22 @@ void ProfileGenerator::RecordTickSample(const TickSample& sample) { |
} |
+CodeEntry* ProfileGenerator::EntryForVMState(StateTag tag) { |
+ switch (tag) { |
+ case GC: |
+ return gc_entry_; |
+ case JS: |
+ case COMPILER: |
+ // DOM events handlers are reported as OTHER / EXTERNAL entries. |
+ // To avoid confusing people, let's put all these entries into |
+ // one bucket. |
+ case OTHER: |
+ case EXTERNAL: |
+ return program_entry_; |
+ case IDLE: |
+ return idle_entry_; |
+ default: return NULL; |
+ } |
+} |
+ |
} } // namespace v8::internal |