~ubuntu-branches/ubuntu/trusty/libv8/trusty

« back to all changes in this revision

Viewing changes to src/profile-generator.h

  • Committer: Package Import Robot
  • Author(s): Jérémy Lal
  • Date: 2012-02-20 14:08:17 UTC
  • mfrom: (15.1.24 sid)
  • Revision ID: package-import@ubuntu.com-20120220140817-bsvmeoa4sxsj5hbz
Tags: 3.7.12.22-3
Fix mipsel build, allow test debug-step-3 to fail (non-crucial)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// Copyright 2010 the V8 project authors. All rights reserved.
 
1
// Copyright 2011 the V8 project authors. All rights reserved.
2
2
// Redistribution and use in source and binary forms, with or without
3
3
// modification, are permitted provided that the following conditions are
4
4
// met:
74
74
  inline const char* GetFunctionName(const char* name);
75
75
 
76
76
 private:
 
77
  static const int kMaxNameSize = 1024;
 
78
 
77
79
  INLINE(static bool StringsMatch(void* key1, void* key2)) {
78
80
    return strcmp(reinterpret_cast<char*>(key1),
79
81
                  reinterpret_cast<char*>(key2)) == 0;
257
259
    typedef Address Key;
258
260
    typedef CodeEntryInfo Value;
259
261
    static const Key kNoKey;
260
 
    static const Value kNoValue;
 
262
    static const Value NoValue() { return CodeEntryInfo(NULL, 0); }
261
263
    static int Compare(const Key& a, const Key& b) {
262
264
      return a < b ? -1 : (a > b ? 1 : 0);
263
265
    }
550
552
  Vector<HeapGraphEdge*> retainers() {
551
553
    return Vector<HeapGraphEdge*>(retainers_arr(), retainers_count_); }
552
554
  HeapEntry* dominator() { return dominator_; }
553
 
  void set_dominator(HeapEntry* entry) { dominator_ = entry; }
 
555
  void set_dominator(HeapEntry* entry) {
 
556
    ASSERT(entry != NULL);
 
557
    dominator_ = entry;
 
558
  }
554
559
 
555
560
  void clear_paint() { painted_ = kUnpainted; }
556
561
  bool painted_reachable() { return painted_ == kPainted; }
920
925
  virtual HeapEntry* AllocateEntry(
921
926
      HeapThing ptr, int children_count, int retainers_count);
922
927
  void AddRootEntries(SnapshotFillerInterface* filler);
923
 
  int EstimateObjectsCount();
 
928
  int EstimateObjectsCount(HeapIterator* iterator);
924
929
  bool IterateAndExtractReferences(SnapshotFillerInterface* filler);
925
930
  void TagGlobalObjects();
926
931
 
968
973
                            HeapEntry* parent,
969
974
                            String* reference_name,
970
975
                            Object* child,
 
976
                            const char* name_format_string = NULL,
971
977
                            int field_offset = -1);
972
978
  void SetPropertyShortcutReference(HeapObject* parent_obj,
973
979
                                    HeapEntry* parent,